3ca0e4491314aa3315466c6e902ed7bd200a0edf
[pspp] / ChangeLog
1 2011-01-20  Bruno Haible  <bruno@clisp.org>
2
3         Allow the user to avoid the GNULIB_TEST_* macros.
4         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5         Suggested by Paul Eggert.
6
7 2011-01-14  Jim Meyering  <meyering@redhat.com>
8
9         bootstrap: avoid failure when there is no .gitmodules file
10         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11         has been assigned to, even when its value is the empty string.
12         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14         Reported by John W. Eaton <jwe@gnu.org>.
15
16 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17
18         assume <ctype.h>, ..., <time.h> exist
19         For years gnulib has been assuming the existence of the headers
20         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22         them, since they don't appear to be needed.
23         * README (Portability guidelines): Document this.
24         * lib/flock.c: Assume <fcntl.h> exists.
25         * lib/regex_internal.h: Assume <locale.h> exists.
26         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
27         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
28         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
29         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
30         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
31         * m4/regex.m4 (gl_REGEX): Likewise.
32         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
33         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
34         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
35         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
36         * tests/test-argp.c: Likewise.
37         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
38
39         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
40         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
41         AA_APPLE_UNIVERSAL_BUILD.  See
42         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
43         * NEWS: Document this.
44
45 2011-01-19  Eric Blake  <eblake@redhat.com>
46
47         c-stack: assume stack overflow if SA_SIGINFO unsupported
48         * lib/c-stack.c (SIGACTION_WORKS): Rename...
49         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
50         sigaction will work.
51         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
52         behavior match Linux.
53         * tests/test-c-stack.c (main): Prefer NULL for pointers.
54
55         stdbool-tests: accomodate Haiku
56         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
57
58         binary-io: fix O_TEXT on Haiku
59         * modules/binary-io (Depends-on): Add fcntl-h.
60         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
61         than blindly undefining O_TEXT.
62         Reported by Scott McCreary.
63
64 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65
66         include_next: do not check for standard headers like stddef.h
67
68         I found this problem when modifying Emacs to use gnulib.
69         I noticed that it added HAVE_STDDEF_H to config.h, even though
70         gnulib always assumes <stddef.h> exists as per README and this
71         symbol is unnecessary.
72         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
73         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
74         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
75         faster for headers like stddef.h that are known to exist.
76         (gl_CHECK_NEXT_HEADERS): Use it.
77         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
78         rather than gl_CHECK_NEXT_HEADERS.
79         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
80         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
81
82 2011-01-18  Eric Blake  <eblake@redhat.com>
83
84         ansi-c++-opt: skip C++ dependency style if C++ is unused
85         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
86         tests when we know C++ compilation is not desired.
87         Reported by Scott McCreary.
88
89 2011-01-18  Bruno Haible  <bruno@clisp.org>
90
91         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
92         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
93         (main): Perform test also when getrlimit and setrlimit don't exist or
94         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
95         limiting the address space size using setrlimit, compare the address
96         space size before and after the the test.
97         * tests/test-dprintf-posix2.c: Likewise.
98         * tests/test-fprintf-posix3.sh: Update skip messages.
99         * tests/test-dprintf-posix2.sh: Likewise.
100         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
101         * modules/dprintf-posix-tests (Depends-on): Likewise.
102         Reported by Bruce Korb <bkorb@gnu.org> and
103         Gary V. Vaughan <gary@gnu.org>.
104
105 2011-01-18  Bruno Haible  <bruno@clisp.org>
106
107         get-rusage-as: Improvement for Cygwin.
108         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
109         areas that are merely reserved.
110
111 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
112
113         strftime: remove dependencies on multibyte modules
114
115         strftime depended on mbrlen, mbsinit, and wchar, but these modules
116         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
117         only if __osf__ is defined, and I suspect OSF doesn't need these
118         other modules.  If my guess is wrong, we'll need to come up with a
119         variant of strftime that doesn't need the multibyte modules.
120
121         I discovered this problem when attempting modify Emacs to use the
122         strftime module.  With the previous gnulib, this caused Emacs to
123         need 31 new files, ranging from lib/config.charset to
124         m4/wint_t.m4.  This was overkill and I expect would be offputting
125         to the Emacs maintainers.  After this change, only 6 new files are
126         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
127         stdbool.m4, and tm_gmtoff.m4.
128
129         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
130         Suggested by Bruno Haible in
131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
132         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
133         and do not check for wchar.h.
134         * modules/strftime (Files): Remove m4/mbstate_t.m4.
135         (Depends-on): Remove mbrlen, mbsinit, wchar.
136
137 2011-01-18  Bruno Haible  <bruno@clisp.org>
138
139         Tests for module 'get-rusage-as'.
140         * modules/get-rusage-as-tests: New file.
141         * tests/test-get-rusage-as.c: New file.
142
143         New module 'get-rusage-as'.
144         * modules/get-rusage-as: New file.
145         * lib/resource-ext.h: New file.
146         * lib/get-rusage-as.c: New file.
147
148 2011-01-17  Eric Blake  <eblake@redhat.com>
149
150         sigaction: relax license from LGPLv3+ to LGPLv2+
151         * modules/sigaction (License): Relax to LGPLv2+.
152
153 2011-01-14  Bruno Haible  <bruno@clisp.org>
154
155         filemode: Make function declarations usable in C++ mode.
156         * lib/filemode.h: Enclose function declarations in extern "C" block.
157         Reported by John W. Eaton <jwe@gnu.org>.
158
159 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
160
161         save-cwd: no longer include "xgetcwd.h"
162         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
163         This avoids a compilation failure in projects that use save-cwd
164         without also using the xgetcwd module.
165
166 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
167
168         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
169         This is so that a program like Emacs, which needs only dtoastr,
170         does not have to bother with distributing and compiling ftoastr
171         and ldtoastr.
172         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
173         * modules/dtoastr, modules/ldtoastr: New files.
174         * modules/ftoastr: Now works just for 'float'.
175         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
176         (Makefile.am): Remove ftoastr.h (not needed and no effect),
177         dtoastr.c, ldtoastr.c.
178
179 2011-01-11  Jim Meyering  <meyering@redhat.com>
180
181         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
182         There is no need to work around the lack of the fchdir function,
183         since gnulib can now provide a replacement when required.
184         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
185         * modules/save-cwd (Depends-on): Add fchdir.
186
187 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
188
189         openat, save-cwd: avoid xmalloc
190
191         This removes a direct (but undocumented) dependency of openat on
192         xalloc, along with an indirect dependency via save-cwd.  It also
193         removes a dependency of save-cwd on xgetcwd, and thereby
194         indirectly on xalloc.  This change causes the openat substitute
195         to fall back on save_cwd when memory is tight, and for save_cwd to
196         fail instead of dying when memory is tight, but that's good enough.
197
198         * lib/openat-proc.c: Include stdlib.h (for malloc), not
199         xalloc.h (for xmalloc).
200         (openat_proc_name): Use malloc, not xmalloc.
201         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
202         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
203
204         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
205         This avoids heap allocation for file names whose lengths are in
206         the range 512..1023, with the upper bound increasing to at most
207         4031 depending on the platform's PATH_MAX.  (We do not want
208         pathmax.h here as it might supply a non-constant PATH_MAX.)
209         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
210         Perhaps they should be moved to malloca.h?
211         (OPENAT_BUFFER_SIZE): Use them.
212
213 2011-01-10  Bruno Haible  <bruno@clisp.org>
214
215         doc: Update users.txt.
216         * users.txt: Add recutils.
217
218 2011-01-09  Karl Berry  <karl@gnu.org>
219
220         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
221
222         * doc/configmake.texi: New file.
223         * doc/gnulib.texi: Include it.
224         * modules/configmake: Move documentation from here.
225
226 2011-01-09  Bruno Haible  <bruno@clisp.org>
227
228         Update to Unicode 6.0.0.
229         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
230         (get_lbp): Update for Unicode 6.0.0.
231         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
232         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
233         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
234         U+11001, U+11038..U+11046. Remove U+06DE.
235         (uc_width): Fix bounds of planes.
236         * tests/uniwidth/test-uc_width2.sh: Same updates as in
237         lib/uniwidth/width.c.
238         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
239         trailing whitespace removed.
240         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
241         without comments, but with the original copyright notice.
242         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
243         * lib/unicase/ignorable.h: Likewise.
244         * lib/unicase/tocasefold.h: Likewise.
245         * lib/unicase/tolower.h: Likewise.
246         * lib/unicase/totitle.h: Likewise.
247         * lib/unicase/toupper.h: Likewise.
248         * lib/unictype/bidi_of.h: Likewise.
249         * lib/unictype/blocks.h: Likewise.
250         * lib/unictype/categ_C.h: Likewise.
251         * lib/unictype/categ_Cn.h: Likewise.
252         * lib/unictype/categ_L.h: Likewise.
253         * lib/unictype/categ_Ll.h: Likewise.
254         * lib/unictype/categ_Lm.h: Likewise.
255         * lib/unictype/categ_Lo.h: Likewise.
256         * lib/unictype/categ_Lu.h: Likewise.
257         * lib/unictype/categ_M.h: Likewise.
258         * lib/unictype/categ_Mc.h: Likewise.
259         * lib/unictype/categ_Me.h: Likewise.
260         * lib/unictype/categ_Mn.h: Likewise.
261         * lib/unictype/categ_N.h: Likewise.
262         * lib/unictype/categ_Nd.h: Likewise.
263         * lib/unictype/categ_No.h: Likewise.
264         * lib/unictype/categ_P.h: Likewise.
265         * lib/unictype/categ_Po.h: Likewise.
266         * lib/unictype/categ_S.h: Likewise.
267         * lib/unictype/categ_Sc.h: Likewise.
268         * lib/unictype/categ_Sk.h: Likewise.
269         * lib/unictype/categ_Sm.h: Likewise.
270         * lib/unictype/categ_So.h: Likewise.
271         * lib/unictype/categ_of.h: Likewise.
272         * lib/unictype/combining.h: Likewise.
273         * lib/unictype/ctype_alnum.h: Likewise.
274         * lib/unictype/ctype_alpha.h: Likewise.
275         * lib/unictype/ctype_graph.h: Likewise.
276         * lib/unictype/ctype_lower.h: Likewise.
277         * lib/unictype/ctype_print.h: Likewise.
278         * lib/unictype/ctype_punct.h: Likewise.
279         * lib/unictype/ctype_upper.h: Likewise.
280         * lib/unictype/decdigit.h: Likewise.
281         * lib/unictype/digit.h: Likewise.
282         * lib/unictype/numeric.h: Likewise.
283         * lib/unictype/pr_alphabetic.h: Likewise.
284         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
285         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
286         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
287         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
288         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
289         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
290         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
291         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
292         * lib/unictype/pr_case_ignorable.h: Likewise.
293         * lib/unictype/pr_cased.h: Likewise.
294         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
295         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
296         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
297         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
298         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
299         * lib/unictype/pr_combining.h: Likewise.
300         * lib/unictype/pr_composite.h: Likewise.
301         * lib/unictype/pr_currency_symbol.h: Likewise.
302         * lib/unictype/pr_decimal_digit.h: Likewise.
303         * lib/unictype/pr_deprecated.h: Likewise.
304         * lib/unictype/pr_format_control.h: Likewise.
305         * lib/unictype/pr_grapheme_base.h: Likewise.
306         * lib/unictype/pr_grapheme_extend.h: Likewise.
307         * lib/unictype/pr_grapheme_link.h: Likewise.
308         * lib/unictype/pr_id_continue.h: Likewise.
309         * lib/unictype/pr_id_start.h: Likewise.
310         * lib/unictype/pr_ideographic.h: Likewise.
311         * lib/unictype/pr_lowercase.h: Likewise.
312         * lib/unictype/pr_math.h: Likewise.
313         * lib/unictype/pr_numeric.h: Likewise.
314         * lib/unictype/pr_other_alphabetic.h: Likewise.
315         * lib/unictype/pr_other_id_continue.h: Likewise.
316         * lib/unictype/pr_other_math.h: Likewise.
317         * lib/unictype/pr_punctuation.h: Likewise.
318         * lib/unictype/pr_sentence_terminal.h: Likewise.
319         * lib/unictype/pr_terminal_punctuation.h: Likewise.
320         * lib/unictype/pr_unassigned_code_value.h: Likewise.
321         * lib/unictype/pr_unified_ideograph.h: Likewise.
322         * lib/unictype/pr_uppercase.h: Likewise.
323         * lib/unictype/pr_xid_continue.h: Likewise.
324         * lib/unictype/pr_xid_start.h: Likewise.
325         * lib/unictype/scripts.h: Likewise.
326         * lib/unictype/scripts_byname.gperf: Likewise.
327         * lib/unictype/sy_java_ident.h: Likewise.
328         * lib/unigbrk/gbrkprop.h: Likewise.
329         * lib/unilbrk/lbrkprop1.h: Likewise.
330         * lib/unilbrk/lbrkprop2.h: Likewise.
331         * lib/uninorm/decomposition-table2.h: Likewise.
332         * lib/uniwbrk/wbrkprop.h: Likewise.
333         * tests/unicase/test-cased.c: Likewise.
334         * tests/unicase/test-ignorable.c: Likewise.
335         * tests/unicase/test-uc_tolower.c: Likewise.
336         * tests/unicase/test-uc_totitle.c: Likewise.
337         * tests/unicase/test-uc_toupper.c: Likewise.
338         * tests/unictype/test-categ_C.c: Likewise.
339         * tests/unictype/test-categ_Cn.c: Likewise.
340         * tests/unictype/test-categ_L.c: Likewise.
341         * tests/unictype/test-categ_Ll.c: Likewise.
342         * tests/unictype/test-categ_Lm.c: Likewise.
343         * tests/unictype/test-categ_Lo.c: Likewise.
344         * tests/unictype/test-categ_Lu.c: Likewise.
345         * tests/unictype/test-categ_M.c: Likewise.
346         * tests/unictype/test-categ_Mc.c: Likewise.
347         * tests/unictype/test-categ_Me.c: Likewise.
348         * tests/unictype/test-categ_Mn.c: Likewise.
349         * tests/unictype/test-categ_N.c: Likewise.
350         * tests/unictype/test-categ_Nd.c: Likewise.
351         * tests/unictype/test-categ_No.c: Likewise.
352         * tests/unictype/test-categ_P.c: Likewise.
353         * tests/unictype/test-categ_Po.c: Likewise.
354         * tests/unictype/test-categ_S.c: Likewise.
355         * tests/unictype/test-categ_Sc.c: Likewise.
356         * tests/unictype/test-categ_Sk.c: Likewise.
357         * tests/unictype/test-categ_Sm.c: Likewise.
358         * tests/unictype/test-categ_So.c: Likewise.
359         * tests/unictype/test-ctype_alnum.c: Likewise.
360         * tests/unictype/test-ctype_alpha.c: Likewise.
361         * tests/unictype/test-ctype_graph.c: Likewise.
362         * tests/unictype/test-ctype_lower.c: Likewise.
363         * tests/unictype/test-ctype_print.c: Likewise.
364         * tests/unictype/test-ctype_punct.c: Likewise.
365         * tests/unictype/test-ctype_upper.c: Likewise.
366         * tests/unictype/test-decdigit.h: Likewise.
367         * tests/unictype/test-digit.h: Likewise.
368         * tests/unictype/test-numeric.h: Likewise.
369         * tests/unictype/test-pr_alphabetic.c: Likewise.
370         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
371         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
372         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
373         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
374         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
375         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
376         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
377         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
378         * tests/unictype/test-pr_case_ignorable.c: Likewise.
379         * tests/unictype/test-pr_cased.c: Likewise.
380         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
381         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
382         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
383         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
384         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
385         * tests/unictype/test-pr_combining.c: Likewise.
386         * tests/unictype/test-pr_composite.c: Likewise.
387         * tests/unictype/test-pr_currency_symbol.c: Likewise.
388         * tests/unictype/test-pr_decimal_digit.c: Likewise.
389         * tests/unictype/test-pr_deprecated.c: Likewise.
390         * tests/unictype/test-pr_format_control.c: Likewise.
391         * tests/unictype/test-pr_grapheme_base.c: Likewise.
392         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
393         * tests/unictype/test-pr_grapheme_link.c: Likewise.
394         * tests/unictype/test-pr_id_continue.c: Likewise.
395         * tests/unictype/test-pr_id_start.c: Likewise.
396         * tests/unictype/test-pr_ideographic.c: Likewise.
397         * tests/unictype/test-pr_lowercase.c: Likewise.
398         * tests/unictype/test-pr_math.c: Likewise.
399         * tests/unictype/test-pr_numeric.c: Likewise.
400         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
401         * tests/unictype/test-pr_other_id_continue.c: Likewise.
402         * tests/unictype/test-pr_other_math.c: Likewise.
403         * tests/unictype/test-pr_punctuation.c: Likewise.
404         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
405         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
406         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
407         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
408         * tests/unictype/test-pr_uppercase.c: Likewise.
409         * tests/unictype/test-pr_xid_continue.c: Likewise.
410         * tests/unictype/test-pr_xid_start.c: Likewise.
411         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
412         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
413         changes.
414         * lib/unictype/categ_Cc.h: Likewise.
415         * lib/unictype/categ_Cf.h: Likewise.
416         * lib/unictype/categ_Co.h: Likewise.
417         * lib/unictype/categ_Cs.h: Likewise.
418         * lib/unictype/categ_Lt.h: Likewise.
419         * lib/unictype/categ_Nl.h: Likewise.
420         * lib/unictype/categ_Pc.h: Likewise.
421         * lib/unictype/categ_Pd.h: Likewise.
422         * lib/unictype/categ_Pe.h: Likewise.
423         * lib/unictype/categ_Pf.h: Likewise.
424         * lib/unictype/categ_Pi.h: Likewise.
425         * lib/unictype/categ_Ps.h: Likewise.
426         * lib/unictype/categ_Z.h: Likewise.
427         * lib/unictype/categ_Zl.h: Likewise.
428         * lib/unictype/categ_Zp.h: Likewise.
429         * lib/unictype/categ_Zs.h: Likewise.
430         * lib/unictype/ctype_blank.h: Likewise.
431         * lib/unictype/ctype_cntrl.h: Likewise.
432         * lib/unictype/ctype_digit.h: Likewise.
433         * lib/unictype/ctype_space.h: Likewise.
434         * lib/unictype/ctype_xdigit.h: Likewise.
435         * lib/unictype/mirror.h: Likewise.
436         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
437         * lib/unictype/pr_bidi_block_separator.h: Likewise.
438         * lib/unictype/pr_bidi_common_separator.h: Likewise.
439         * lib/unictype/pr_bidi_control.h: Likewise.
440         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
441         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
442         * lib/unictype/pr_bidi_european_digit.h: Likewise.
443         * lib/unictype/pr_bidi_pdf.h: Likewise.
444         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
445         * lib/unictype/pr_bidi_whitespace.h: Likewise.
446         * lib/unictype/pr_dash.h: Likewise.
447         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
448         * lib/unictype/pr_diacritic.h: Likewise.
449         * lib/unictype/pr_extender.h: Likewise.
450         * lib/unictype/pr_hex_digit.h: Likewise.
451         * lib/unictype/pr_hyphen.h: Likewise.
452         * lib/unictype/pr_ids_binary_operator.h: Likewise.
453         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
454         * lib/unictype/pr_ignorable_control.h: Likewise.
455         * lib/unictype/pr_iso_control.h: Likewise.
456         * lib/unictype/pr_join_control.h: Likewise.
457         * lib/unictype/pr_left_of_pair.h: Likewise.
458         * lib/unictype/pr_line_separator.h: Likewise.
459         * lib/unictype/pr_logical_order_exception.h: Likewise.
460         * lib/unictype/pr_non_break.h: Likewise.
461         * lib/unictype/pr_not_a_character.h: Likewise.
462         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
463         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
464         * lib/unictype/pr_other_id_start.h: Likewise.
465         * lib/unictype/pr_other_lowercase.h: Likewise.
466         * lib/unictype/pr_other_uppercase.h: Likewise.
467         * lib/unictype/pr_paired_punctuation.h: Likewise.
468         * lib/unictype/pr_paragraph_separator.h: Likewise.
469         * lib/unictype/pr_pattern_syntax.h: Likewise.
470         * lib/unictype/pr_pattern_white_space.h: Likewise.
471         * lib/unictype/pr_private_use.h: Likewise.
472         * lib/unictype/pr_quotation_mark.h: Likewise.
473         * lib/unictype/pr_radical.h: Likewise.
474         * lib/unictype/pr_soft_dotted.h: Likewise.
475         * lib/unictype/pr_space.h: Likewise.
476         * lib/unictype/pr_titlecase.h: Likewise.
477         * lib/unictype/pr_variation_selector.h: Likewise.
478         * lib/unictype/pr_white_space.h: Likewise.
479         * lib/unictype/pr_zero_width.h: Likewise.
480         * lib/unictype/sy_c_ident.h: Likewise.
481         * lib/unictype/sy_c_whitespace.h: Likewise.
482         * lib/unictype/sy_java_whitespace.h: Likewise.
483         * lib/uninorm/composition-table.gperf: Likewise.
484         * lib/uninorm/decomposition-table1.h: Likewise.
485         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
486         LB8.
487         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
488         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
489         * modules/unictype/*: Bump version number of expected libunistring
490         version.
491
492 2011-01-09  Bruno Haible  <bruno@clisp.org>
493
494         Update to Unicode 5.2.0.
495         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
496         trailing whitespace removed.
497
498 2011-01-09  Bruno Haible  <bruno@clisp.org>
499
500         New Unicode character properties, from Unicode 5.2.0.
501         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
502         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
503         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
504         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
505         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
506         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
507         uc_is_property_cased, uc_is_property_case_ignorable,
508         uc_is_property_changes_when_lowercased,
509         uc_is_property_changes_when_uppercased,
510         uc_is_property_changes_when_titlecased,
511         uc_is_property_changes_when_casefolded,
512         uc_is_property_changes_when_casemapped): New declarations.
513         * lib/unictype/pr_byname.gperf: Add the new properties.
514         * modules/unictype/property-byname (Depends-on): Depend on the new
515         properties modules.
516         * modules/unictype/property-all (Depends-on): Likewise.
517         * MODULES.html.sh (Unicode string functions): Add
518         unictype/property-case-ignorable, unictype/property-cased,
519         unictype/property-changes-when-casefolded,
520         unictype/property-changes-when-casemapped,
521         unictype/property-changes-when-lowercased,
522         unictype/property-changes-when-titlecased,
523         unictype/property-changes-when-uppercased.
524
525         New module 'unictype/property-changes-when-casemapped'.
526         * modules/unictype/property-changes-when-casemapped: New file.
527         * lib/unictype/pr_changes_when_casemapped.c: New file.
528         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
529         generated by gen-uni-tables.
530         * modules/unictype/property-changes-when-casemapped-tests: New file.
531         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
532         automatically generated by gen-uni-tables.
533
534         New module 'unictype/property-changes-when-casefolded'.
535         * modules/unictype/property-changes-when-casefolded: New file.
536         * lib/unictype/pr_changes_when_casefolded.c: New file.
537         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
538         generated by gen-uni-tables.
539         * modules/unictype/property-changes-when-casefolded-tests: New file.
540         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
541         automatically generated by gen-uni-tables.
542
543         New module 'unictype/property-changes-when-titlecased'.
544         * modules/unictype/property-changes-when-titlecased: New file.
545         * lib/unictype/pr_changes_when_titlecased.c: New file.
546         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
547         generated by gen-uni-tables.
548         * modules/unictype/property-changes-when-titlecased-tests: New file.
549         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
550         automatically generated by gen-uni-tables.
551
552         New module 'unictype/property-changes-when-uppercased'.
553         * modules/unictype/property-changes-when-uppercased: New file.
554         * lib/unictype/pr_changes_when_uppercased.c: New file.
555         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
556         generated by gen-uni-tables.
557         * modules/unictype/property-changes-when-uppercased-tests: New file.
558         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
559         automatically generated by gen-uni-tables.
560
561         New module 'unictype/property-changes-when-lowercased'.
562         * modules/unictype/property-changes-when-lowercased: New file.
563         * lib/unictype/pr_changes_when_lowercased.c: New file.
564         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
565         generated by gen-uni-tables.
566         * modules/unictype/property-changes-when-lowercased-tests: New file.
567         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
568         automatically generated by gen-uni-tables.
569
570         New module 'unictype/property-case-ignorable'.
571         * modules/unictype/property-case-ignorable: New file.
572         * lib/unictype/pr_case_ignorable.c: New file.
573         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
574         by gen-uni-tables.
575         * modules/unictype/property-case-ignorable-tests: New file.
576         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
577         generated by gen-uni-tables.
578
579         New module 'unictype/property-cased'.
580         * modules/unictype/property-cased: New file.
581         * lib/unictype/pr_cased.c: New file.
582         * lib/unictype/pr_cased.h: New file, automatically generated by
583         gen-uni-tables.
584         * modules/unictype/property-cased-tests: New file.
585         * tests/unictype/test-pr_cased.c: New file, automatically generated by
586         gen-uni-tables.
587
588 2011-01-09  Bruno Haible  <bruno@clisp.org>
589
590         Update to Unicode 5.2.0.
591         * lib/gen-uni-tables.c (output_predicate, output_category,
592         output_combclass, output_bidi_category, output_decimal_digit_test,
593         output_decimal_digit, output_digit_test, output_digit,
594         output_numeric_test, output_numeric, output_mirror, output_scripts,
595         output_scripts_byname, output_blocks, output_ident_category): Fix
596         comment header.
597         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
598         get_wbp.
599         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
600         items.
601         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
602         Changes_When_Lowercased, Changes_When_Uppercased,
603         Changes_When_Titlecased, Changes_When_Casefolded,
604         Changes_When_Casemapped.
605         (is_property_alphabetic, is_property_default_ignorable_code_point):
606         Update for Unicode 5.2.0.
607         (is_property_cased, is_property_case_ignorable,
608         is_property_changes_when_lowercased,
609         is_property_changes_when_uppercased,
610         is_property_changes_when_titlecased,
611         is_property_changes_when_casefolded,
612         is_property_changes_when_casemapped): New functions.
613         (output_properties): Output also the properties cased, case_ignorable,
614         changes_when_lowercased, changes_when_uppercased,
615         changes_when_titlecased, changes_when_casefolded,
616         changes_when_casemapped.
617         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
618         Unicode TR#11 revision 17 -> 19.
619         (LBP_CP): New enumeration value.
620         (LBP_*): Adjust values accordingly.
621         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
622         TR#14 revision 22 -> 24.
623         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
624         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
625         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
626         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
627         is_WBP_MIDLETTER.
628         (output_composition_tables): Allow for 24 bits instead of 16 bits in
629         the code1 and code2 of each composition rule.
630         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
631         * lib/unicase/ignorable.h: Likewise.
632         * lib/unicase/tocasefold.h: Likewise.
633         * lib/unicase/tolower.h: Likewise.
634         * lib/unicase/totitle.h: Likewise.
635         * lib/unicase/toupper.h: Likewise.
636         * lib/unictype/bidi_of.h: Likewise.
637         * lib/unictype/blocks.h: Likewise.
638         * lib/unictype/categ_C.h: Likewise.
639         * lib/unictype/categ_Cf.h: Likewise.
640         * lib/unictype/categ_Cn.h: Likewise.
641         * lib/unictype/categ_L.h: Likewise.
642         * lib/unictype/categ_Ll.h: Likewise.
643         * lib/unictype/categ_Lm.h: Likewise.
644         * lib/unictype/categ_Lo.h: Likewise.
645         * lib/unictype/categ_Lu.h: Likewise.
646         * lib/unictype/categ_M.h: Likewise.
647         * lib/unictype/categ_Mc.h: Likewise.
648         * lib/unictype/categ_Mn.h: Likewise.
649         * lib/unictype/categ_N.h: Likewise.
650         * lib/unictype/categ_Nd.h: Likewise.
651         * lib/unictype/categ_Nl.h: Likewise.
652         * lib/unictype/categ_No.h: Likewise.
653         * lib/unictype/categ_P.h: Likewise.
654         * lib/unictype/categ_Pd.h: Likewise.
655         * lib/unictype/categ_Po.h: Likewise.
656         * lib/unictype/categ_S.h: Likewise.
657         * lib/unictype/categ_Sc.h: Likewise.
658         * lib/unictype/categ_So.h: Likewise.
659         * lib/unictype/categ_of.h: Likewise.
660         * lib/unictype/combining.h: Likewise.
661         * lib/unictype/ctype_alnum.h: Likewise.
662         * lib/unictype/ctype_alpha.h: Likewise.
663         * lib/unictype/ctype_graph.h: Likewise.
664         * lib/unictype/ctype_lower.h: Likewise.
665         * lib/unictype/ctype_print.h: Likewise.
666         * lib/unictype/ctype_punct.h: Likewise.
667         * lib/unictype/ctype_upper.h: Likewise.
668         * lib/unictype/decdigit.h: Likewise.
669         * lib/unictype/digit.h: Likewise.
670         * lib/unictype/numeric.h: Likewise.
671         * lib/unictype/pr_alphabetic.h: Likewise.
672         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
673         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
674         * lib/unictype/pr_bidi_european_digit.h: Likewise.
675         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
676         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
677         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
678         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
679         * lib/unictype/pr_combining.h: Likewise.
680         * lib/unictype/pr_composite.h: Likewise.
681         * lib/unictype/pr_currency_symbol.h: Likewise.
682         * lib/unictype/pr_dash.h: Likewise.
683         * lib/unictype/pr_decimal_digit.h: Likewise.
684         * lib/unictype/pr_deprecated.h: Likewise.
685         * lib/unictype/pr_diacritic.h: Likewise.
686         * lib/unictype/pr_extender.h: Likewise.
687         * lib/unictype/pr_grapheme_base.h: Likewise.
688         * lib/unictype/pr_grapheme_extend.h: Likewise.
689         * lib/unictype/pr_grapheme_link.h: Likewise.
690         * lib/unictype/pr_id_continue.h: Likewise.
691         * lib/unictype/pr_id_start.h: Likewise.
692         * lib/unictype/pr_ideographic.h: Likewise.
693         * lib/unictype/pr_ignorable_control.h: Likewise.
694         * lib/unictype/pr_logical_order_exception.h: Likewise.
695         * lib/unictype/pr_lowercase.h: Likewise.
696         * lib/unictype/pr_numeric.h: Likewise.
697         * lib/unictype/pr_other_alphabetic.h: Likewise.
698         * lib/unictype/pr_punctuation.h: Likewise.
699         * lib/unictype/pr_sentence_terminal.h: Likewise.
700         * lib/unictype/pr_terminal_punctuation.h: Likewise.
701         * lib/unictype/pr_unassigned_code_value.h: Likewise.
702         * lib/unictype/pr_unified_ideograph.h: Likewise.
703         * lib/unictype/pr_uppercase.h: Likewise.
704         * lib/unictype/pr_xid_continue.h: Likewise.
705         * lib/unictype/pr_xid_start.h: Likewise.
706         * lib/unictype/pr_zero_width.h: Likewise.
707         * lib/unictype/scripts.h: Likewise.
708         * lib/unictype/scripts_byname.gperf: Likewise.
709         * lib/unictype/sy_java_ident.h: Likewise.
710         * lib/unigbrk/gbrkprop.h: Likewise.
711         * lib/unilbrk/lbrkprop1.h: Likewise.
712         * lib/unilbrk/lbrkprop2.h: Likewise.
713         * lib/unilbrk/lbrktables.h: Likewise.
714         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
715         LBP_CP. Implement rule LB30.
716         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
717         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
718         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
719         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
720         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
721         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
722         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
723         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
724         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
725         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
726         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
727         bits instead of 16 bits in the code1 and code2 of each composition
728         rule.
729         (uc_composition): Update for Unicode 5.2.0.
730         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
731         * lib/uninorm/decomposition-table2.h: Likewise.
732         * lib/uniwbrk/wbrkprop.h: Likewise.
733         * tests/unicase/test-cased.c: Likewise.
734         * tests/unicase/test-ignorable.c: Likewise.
735         * tests/unicase/test-uc_tolower.c: Likewise.
736         * tests/unicase/test-uc_totitle.c: Likewise.
737         * tests/unicase/test-uc_toupper.c: Likewise.
738         * tests/unictype/test-categ_C.c: Likewise.
739         * tests/unictype/test-categ_Cf.c: Likewise.
740         * tests/unictype/test-categ_Cn.c: Likewise.
741         * tests/unictype/test-categ_L.c: Likewise.
742         * tests/unictype/test-categ_Ll.c: Likewise.
743         * tests/unictype/test-categ_Lm.c: Likewise.
744         * tests/unictype/test-categ_Lo.c: Likewise.
745         * tests/unictype/test-categ_Lu.c: Likewise.
746         * tests/unictype/test-categ_M.c: Likewise.
747         * tests/unictype/test-categ_Mc.c: Likewise.
748         * tests/unictype/test-categ_Mn.c: Likewise.
749         * tests/unictype/test-categ_N.c: Likewise.
750         * tests/unictype/test-categ_Nd.c: Likewise.
751         * tests/unictype/test-categ_Nl.c: Likewise.
752         * tests/unictype/test-categ_No.c: Likewise.
753         * tests/unictype/test-categ_P.c: Likewise.
754         * tests/unictype/test-categ_Pd.c: Likewise.
755         * tests/unictype/test-categ_Po.c: Likewise.
756         * tests/unictype/test-categ_S.c: Likewise.
757         * tests/unictype/test-categ_Sc.c: Likewise.
758         * tests/unictype/test-categ_So.c: Likewise.
759         * tests/unictype/test-ctype_alnum.c: Likewise.
760         * tests/unictype/test-ctype_alpha.c: Likewise.
761         * tests/unictype/test-ctype_graph.c: Likewise.
762         * tests/unictype/test-ctype_lower.c: Likewise.
763         * tests/unictype/test-ctype_print.c: Likewise.
764         * tests/unictype/test-ctype_punct.c: Likewise.
765         * tests/unictype/test-ctype_upper.c: Likewise.
766         * tests/unictype/test-decdigit.h: Likewise.
767         * tests/unictype/test-digit.h: Likewise.
768         * tests/unictype/test-numeric.h: Likewise.
769         * tests/unictype/test-pr_alphabetic.c: Likewise.
770         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
771         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
772         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
773         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
774         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
775         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
776         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
777         * tests/unictype/test-pr_combining.c: Likewise.
778         * tests/unictype/test-pr_composite.c: Likewise.
779         * tests/unictype/test-pr_currency_symbol.c: Likewise.
780         * tests/unictype/test-pr_dash.c: Likewise.
781         * tests/unictype/test-pr_decimal_digit.c: Likewise.
782         * tests/unictype/test-pr_deprecated.c: Likewise.
783         * tests/unictype/test-pr_diacritic.c: Likewise.
784         * tests/unictype/test-pr_extender.c: Likewise.
785         * tests/unictype/test-pr_grapheme_base.c: Likewise.
786         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
787         * tests/unictype/test-pr_grapheme_link.c: Likewise.
788         * tests/unictype/test-pr_id_continue.c: Likewise.
789         * tests/unictype/test-pr_id_start.c: Likewise.
790         * tests/unictype/test-pr_ideographic.c: Likewise.
791         * tests/unictype/test-pr_ignorable_control.c: Likewise.
792         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
793         * tests/unictype/test-pr_lowercase.c: Likewise.
794         * tests/unictype/test-pr_numeric.c: Likewise.
795         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
796         * tests/unictype/test-pr_punctuation.c: Likewise.
797         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
798         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
799         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
800         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
801         * tests/unictype/test-pr_uppercase.c: Likewise.
802         * tests/unictype/test-pr_xid_continue.c: Likewise.
803         * tests/unictype/test-pr_xid_start.c: Likewise.
804         * tests/unictype/test-pr_zero_width.c: Likewise.
805         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
806         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
807         changed behaviour: line breaking is now disallowed between a letter
808         or '=' and '('.
809         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
810         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
811         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
812         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
813         * tests/uniwidth/test-uc_width2.sh: Same updates as in
814         lib/uniwidth/width.c.
815         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
816         without comments, but with the original copyright notice.
817         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
818         changes.
819         * lib/unictype/categ_Cc.h: Likewise.
820         * lib/unictype/categ_Co.h: Likewise.
821         * lib/unictype/categ_Cs.h: Likewise.
822         * lib/unictype/categ_Lt.h: Likewise.
823         * lib/unictype/categ_Me.h: Likewise.
824         * lib/unictype/categ_Pc.h: Likewise.
825         * lib/unictype/categ_Pe.h: Likewise.
826         * lib/unictype/categ_Pf.h: Likewise.
827         * lib/unictype/categ_Pi.h: Likewise.
828         * lib/unictype/categ_Ps.h: Likewise.
829         * lib/unictype/categ_Sk.h: Likewise.
830         * lib/unictype/categ_Sm.h: Likewise.
831         * lib/unictype/categ_Z.h: Likewise.
832         * lib/unictype/categ_Zl.h: Likewise.
833         * lib/unictype/categ_Zp.h: Likewise.
834         * lib/unictype/categ_Zs.h: Likewise.
835         * lib/unictype/ctype_blank.h: Likewise.
836         * lib/unictype/ctype_cntrl.h: Likewise.
837         * lib/unictype/ctype_digit.h: Likewise.
838         * lib/unictype/ctype_space.h: Likewise.
839         * lib/unictype/ctype_xdigit.h: Likewise.
840         * lib/unictype/mirror.h: Likewise.
841         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
842         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
843         * lib/unictype/pr_bidi_block_separator.h: Likewise.
844         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
845         * lib/unictype/pr_bidi_common_separator.h: Likewise.
846         * lib/unictype/pr_bidi_control.h: Likewise.
847         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
848         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
849         * lib/unictype/pr_bidi_pdf.h: Likewise.
850         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
851         * lib/unictype/pr_bidi_whitespace.h: Likewise.
852         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
853         * lib/unictype/pr_format_control.h: Likewise.
854         * lib/unictype/pr_hex_digit.h: Likewise.
855         * lib/unictype/pr_hyphen.h: Likewise.
856         * lib/unictype/pr_ids_binary_operator.h: Likewise.
857         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
858         * lib/unictype/pr_iso_control.h: Likewise.
859         * lib/unictype/pr_join_control.h: Likewise.
860         * lib/unictype/pr_left_of_pair.h: Likewise.
861         * lib/unictype/pr_line_separator.h: Likewise.
862         * lib/unictype/pr_math.h: Likewise.
863         * lib/unictype/pr_non_break.h: Likewise.
864         * lib/unictype/pr_not_a_character.h: Likewise.
865         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
866         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
867         * lib/unictype/pr_other_id_continue.h: Likewise.
868         * lib/unictype/pr_other_id_start.h: Likewise.
869         * lib/unictype/pr_other_lowercase.h: Likewise.
870         * lib/unictype/pr_other_math.h: Likewise.
871         * lib/unictype/pr_other_uppercase.h: Likewise.
872         * lib/unictype/pr_paired_punctuation.h: Likewise.
873         * lib/unictype/pr_paragraph_separator.h: Likewise.
874         * lib/unictype/pr_pattern_syntax.h: Likewise.
875         * lib/unictype/pr_pattern_white_space.h: Likewise.
876         * lib/unictype/pr_private_use.h: Likewise.
877         * lib/unictype/pr_quotation_mark.h: Likewise.
878         * lib/unictype/pr_radical.h: Likewise.
879         * lib/unictype/pr_soft_dotted.h: Likewise.
880         * lib/unictype/pr_space.h: Likewise.
881         * lib/unictype/pr_titlecase.h: Likewise.
882         * lib/unictype/pr_variation_selector.h: Likewise.
883         * lib/unictype/pr_white_space.h: Likewise.
884         * lib/unictype/sy_c_ident.h: Likewise.
885         * lib/unictype/sy_c_whitespace.h: Likewise.
886         * lib/unictype/sy_java_whitespace.h: Likewise.
887         * modules/uni*/*: Bump version number of expected libunistring version.
888         Reported by Simon Josefsson.
889
890 2011-01-09  Karl Heuer  <kwzh@gnu.org>
891
892         useless-if-before-free: fix typo in --help and make the internal,
893         automatic version date update process work once again.
894         --help output contained a NUL character instead of the
895         backslash-zero that was intended.  Also, the "must lie within
896         the first 8 lines" line is on line 9, and hence not getting
897         automatically updated.
898         * build-aux/useless-if-before-free: Fix the former by adding a
899         backslash, and the latter by condensing the three lines of what-it-does
900         to a single line, leaving one line of slack for the future.
901
902 2011-01-09  Bruno Haible  <bruno@clisp.org>
903
904         uniwidth/width: Fix width of U+1D173..U+1D17A.
905         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
906         symbolic_width, output_width_property_test): New functions.
907         (main): Invoke output_nonspacing_property, output_width_property_test.
908         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
909         U+1D173..U+1D17A.
910         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
911         1.
912         * modules/uniwidth/*: Bump version number of expected libunistring
913         version.
914         * modules/unilbrk/*: Likewise.
915
916 2011-01-08  Bruno Haible  <bruno@clisp.org>
917
918         uninorm tests: Preserve copyright of Unicode data file.
919         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
920         Mention modifications.
921
922 2011-01-08  Bruno Haible  <bruno@clisp.org>
923
924         gen-uni-tables: Prepare for Unicode 5.2.0.
925         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
926         (debug_output_lbp, output_lbp): Update.
927
928 2011-01-08  Bruno Haible  <bruno@clisp.org>
929
930         unilbrk: Clarify gen-uni-tables.c code.
931         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
932         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
933         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
934
935 2011-01-07  Bruno Haible  <bruno@clisp.org>
936
937         strtod: Restore errno when successfully parsing Infinity or NaN.
938         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
939         restore the original errno.
940
941 2011-01-07  Bruno Haible  <bruno@clisp.org>
942
943         remove test: Avoid failure on HP-UX 11.
944         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
945
946 2011-01-07  Bruno Haible  <bruno@clisp.org>
947
948         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
949         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
950         error code.
951
952 2011-01-07  Pádraig Brady <P@draigBrady.com>
953
954         ignore-value: fixup comments, and add Eric Blake
955         as an author since he rewrote the macros.
956         * lib/ignore-value.h (ignore_value):  State that
957         we now support aggregates.  Also specify exactly
958         when the GCC warn_unused_result feature was added.
959
960 2011-01-06  Eric Blake  <eblake@redhat.com>
961
962         ignore-value: support aggregate types
963         * lib/ignore-value.h (ignore_value): Provide separate gcc
964         definition.
965         * modules/ignore-value-tests: New test module.
966         * tests/test-ignore-value.c: New test.
967
968         maint.mk: improve sc_prohibit_strcmp regex
969         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
970         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
971         definition of STRNEQ.
972
973         signal: work around Haiku issue with SIGBUS
974         * lib/siglist.h: Add comment.
975         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
976         strsignal's favoring of SIGSEGV.
977         * tests/test-signal.c (main): Avoid test failure.
978         * doc/posix-headers/signal.texi (signal.h): Document the issue.
979         Reported by Scott McCreary.
980
981         maint.mk: add pre-release check to ensure submodule commits are public
982         * top/maint.mk (public-submodule-commit): New rule.
983         (submodule-checks): New variable.
984         (alpha beta stable): Depend on the variable.
985
986 2011-01-05  Pádraig Brady <P@draigBrady.com>
987         and Jim Meyering  <meyering@redhat.com>
988
989         ignore-value: make ignore_value more generic; deprecate ignore_ptr
990         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
991         (ATTRIBUTE_DEPRECATED): Define.
992         (_ignore_case): New function.
993         (ignore_value): New macro, to replace the old function.
994         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
995         * modules/ignore-value (Depends-on): Add stdint.
996
997 2011-01-04  Eric Blake  <eblake@redhat.com>
998
999         doc: regenerate INSTALL
1000         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1001         @firstparagraphindent support, now that autoconf dropped it.
1002         (INSTALL_PRELUDE): Reinstate old macro.
1003         * doc/install.texi: Resync from autoconf.
1004         * doc/INSTALL: Reflect recent autoconf update.
1005         * doc/INSTALL.ISO: Likewise.
1006         * doc/INSTALL.UTF-8: Likewise.
1007         Reported by Karl Berry.
1008
1009 2011-01-04  Bruce Korb  <address@hidden>
1010
1011         git-version-gen: avoid a sub-shell
1012         * build-aux/git-version-gen: Redirect stderr in `...` via
1013         "exec 2>...", rather than via an added sub-shell.
1014
1015 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1016
1017         git-version-gen: use (...) rather than sh -c '...'
1018         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1019         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1020
1021 2011-01-03  Jim Meyering  <meyering@redhat.com>
1022
1023         git-version-gen: convert leading TABs to spaces
1024         * build-aux/git-version-gen: Expand leading TABs.
1025
1026         git-version-gen: handle failed "git rev-list"
1027         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1028         from git and proceeding as if it had succeeded but printed no SHA1
1029         checksums, suppress the diagnostic and handle the failure.
1030         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1031
1032         git-version-gen: include command name in one more diagnostic
1033         * build-aux/git-version-gen: When the required .tarball-version file
1034         was missing or unreadable, you might see the diagnostic from "cat",
1035         but no trace of the name of the invoking script.  Now, you still see
1036         the diagnostic from cat, but also get one from "git-version-gen: ".
1037         Inspired by a patch from Bruce Korb.
1038
1039         update-copyright: adjust test to match changed code
1040         * tests/test-update-copyright.sh: Change test's expected output
1041         to match new actual output.
1042
1043 2011-01-02  Bruno Haible  <bruno@clisp.org>
1044
1045         getlogin_r: Avoid test failure on HP-UX 11.
1046         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1047         ERANGE when the second argument is zero.
1048         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1049         portability problem.
1050
1051 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1052
1053         * build-aux/update-copyright: doc Simon's changes
1054
1055 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1056
1057         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1058         environment variable.
1059
1060 2011-01-02  Bruno Haible  <bruno@clisp.org>
1061
1062         unigbrk: Avoid gcc warnings.
1063         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1064         unused variable.
1065         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1066         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1067         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1068         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1069         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1070         Change type of first argument to 'const char *'.
1071         (main): Remove unused variable.
1072         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1073         type of first argument to 'const char *'.
1074         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1075         Likewise.
1076         (main): Change type of variable 's'.
1077         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1078         to 'int'.
1079
1080 2011-01-02  Bruno Haible  <bruno@clisp.org>
1081
1082         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1083         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1084         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1085         bug.
1086         * lib/pwrite.c: Undo 2010-12-31 patch.
1087         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1088
1089 2011-01-02  Bruno Haible  <bruno@clisp.org>
1090
1091         pread: Fix test whether it works.
1092         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1093
1094 2011-01-02  Bruno Haible  <bruno@clisp.org>
1095
1096         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1097         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1098         ends in "6". Don't require a specific month name. Try also the locale
1099         names found on HP-UX 11 and Solaris 7.
1100
1101 2011-01-02  Bruno Haible  <bruno@clisp.org>
1102
1103         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1104         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1105         C linkage.
1106         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1107
1108 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1109
1110         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1111         for consistency, since the "cluster" term is not used elsewhere.
1112         * lib/unigbrk.in.h: Update name.
1113         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1114         * lib/unigbrk/u16-grapheme-next.c: Update name.
1115         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1116         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1117         * lib/unigbrk/u32-grapheme-next.c: Update name.
1118         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1119         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1120         * lib/unigbrk/u8-grapheme-next.c: Update name.
1121         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1122         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1123         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1124         Suggested by Bruno Haible.
1125
1126 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1127
1128         Remove module 'u8-grapheme-len' as too redundant with
1129         'u8-grapheme-next'.
1130         * modules/unigbrk/u8-grapheme-len: Delete file.
1131         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1132         * lib/unigbrk.in.h: Remove prototype for deleted function.
1133         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1134         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1135
1136         Remove module 'u16-grapheme-len' as too redundant with
1137         'u16-grapheme-next'.
1138         * modules/unigbrk/u16-grapheme-len: Delete file.
1139         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1140         * lib/unigbrk.in.h: Remove prototype for deleted function.
1141         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1142         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1143
1144         Remove module 'u32-grapheme-len' as too redundant with
1145         'u32-grapheme-next'.
1146         * modules/unigbrk/u32-grapheme-len: Delete file.
1147         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1148         * lib/unigbrk.in.h: Remove prototype for deleted function.
1149         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1150         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1151
1152         Suggested by Bruno Haible.
1153
1154 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1155
1156         * unigbrk.in.h: Fix typo: "ben" => "been".
1157         Reported by Bruno Haible.
1158
1159 2011-01-01  Jim Meyering  <meyering@redhat.com>
1160
1161         maint: update almost all copyright ranges to include 2011
1162         Run the new "make update-copyright" rule.
1163
1164 2011-01-01  Jim Meyering  <meyering@redhat.com>
1165
1166         maint: update-copyright: exempt doc/INSTALL*
1167         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1168         since they are generated.  Suggested by Bruno Haible.
1169
1170 2011-01-01  Jim Meyering  <meyering@redhat.com>
1171
1172         maint: refine the update-copyright rule
1173         * Makefile (update-copyright): Also exclude any file that includes
1174         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1175         code that merely generates the comment.
1176
1177 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1178
1179         New module 'u8-grapheme-len'.
1180         * modules/unigbrk/u8-grapheme-len: New file.
1181         * modules/unigbrk/u8-grapheme-len-tests: New file.
1182         * lib/unigbrk.in.h: Add prototype for new function.
1183         * lib/unigbrk/u8-grapheme-len.c: New file.
1184         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1185
1186         New module 'u16-grapheme-len'.
1187         * modules/unigbrk/u16-grapheme-len: New file.
1188         * modules/unigbrk/u16-grapheme-len-tests: New file.
1189         * lib/unigbrk.in.h: Add prototype for new function.
1190         * lib/unigbrk/u16-grapheme-len.c: New file.
1191         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1192
1193         New module 'u32-grapheme-len'.
1194         * modules/unigbrk/u32-grapheme-len: New file.
1195         * modules/unigbrk/u32-grapheme-len-tests: New file.
1196         * lib/unigbrk.in.h: Add prototype for new function.
1197         * lib/unigbrk/u32-grapheme-len.c: New file.
1198         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1199
1200         New module 'u8-grapheme-next'.
1201         * modules/unigbrk/u8-grapheme-next: New file.
1202         * modules/unigbrk/u8-grapheme-next-tests: New file.
1203         * lib/unigbrk.in.h: Add prototype for new function.
1204         * lib/unigbrk/u8-grapheme-next.c: New file.
1205         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1206
1207         New module 'u16-grapheme-next'.
1208         * modules/unigbrk/u16-grapheme-next: New file.
1209         * modules/unigbrk/u16-grapheme-next-tests: New file.
1210         * lib/unigbrk.in.h: Add prototype for new function.
1211         * lib/unigbrk/u16-grapheme-next.c: New file.
1212         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1213
1214         New module 'u32-grapheme-next'.
1215         * modules/unigbrk/u32-grapheme-next: New file.
1216         * modules/unigbrk/u32-grapheme-next-tests: New file.
1217         * lib/unigbrk.in.h: Add prototype for new function.
1218         * lib/unigbrk/u32-grapheme-next.c: New file.
1219         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1220
1221         New module 'u8-grapheme-prev'.
1222         * modules/unigbrk/u8-grapheme-prev: New file.
1223         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1224         * lib/unigbrk.in.h: Add prototype for new function.
1225         * lib/unigbrk/u8-grapheme-prev.c: New file.
1226         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1227
1228         New module 'u16-grapheme-prev'.
1229         * modules/unigbrk/u16-grapheme-prev: New file.
1230         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1231         * lib/unigbrk.in.h: Add prototype for new function.
1232         * lib/unigbrk/u16-grapheme-prev.c: New file.
1233         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1234
1235         New module 'u32-grapheme-prev'.
1236         * modules/unigbrk/u32-grapheme-prev: New file.
1237         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1238         * lib/unigbrk.in.h: Add prototype for new function.
1239         * lib/unigbrk/u32-grapheme-prev.c: New file.
1240         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1241
1242         New module 'u8-grapheme-breaks'.
1243         * modules/unigbrk/u8-grapheme-breaks: New file.
1244         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1245         * lib/unigbrk.in.h: Add prototype for new function.
1246         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1247         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1248
1249         New module 'u16-grapheme-breaks'.
1250         * modules/unigbrk/u16-grapheme-breaks: New file.
1251         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1252         * lib/unigbrk.in.h: Add prototype for new function.
1253         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1254         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1255
1256         New module 'u32-grapheme-breaks'.
1257         * modules/unigbrk/u32-grapheme-breaks: New file.
1258         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1259         * lib/unigbrk.in.h: Add prototype for new function.
1260         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1261         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1262
1263         New module 'ulc-grapheme-breaks'.
1264         * modules/unigbrk/ulc-grapheme-breaks: New file.
1265         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1266         * m4/locale-ar.m4: New file.
1267         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1268         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1269         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1270
1271 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1272
1273         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1274         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1275         modified how this file was generated before I initially submitted
1276         the module, but failed to regenerate it.  This meant that several
1277         of the level2 entries were wrong.
1278         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1279         Remove the division-by-2 that is folded into the table now that
1280         gbrkprop.h has been regenerated properly.  Now -1 entries are
1281         handled correctly.
1282
1283         New module 'unigbrk/uc-gbrk-prop-tests'.
1284         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1285         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1286         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1287         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1288
1289 2011-01-01  Bruno Haible  <bruno@clisp.org>
1290
1291         Avoid use of hexadecimal escapes.
1292         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1293         instead of hexadecimal escapes.
1294
1295 2011-01-01  Jim Meyering  <meyering@redhat.com>
1296
1297         maint: new rule to update copyright year ranges
1298         * Makefile (update-copyright): New rule.
1299
1300         maint: indent with TABs in Makefile
1301         * Makefile: Expand leading sequences of spaces to TABs
1302
1303         version-etc: update the copyright year it reports
1304         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1305
1306 2010-12-31  Bruno Haible  <bruno@clisp.org>
1307
1308         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1309         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1310         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1311         zero.
1312
1313 2010-12-31  Bruno Haible  <bruno@clisp.org>
1314
1315         pwrite: Work around HP-UX 11.11 bug.
1316         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1317         works and set REPLACE_PWRITE if not.
1318         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1319         function.
1320         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1321
1322 2010-12-31  Bruno Haible  <bruno@clisp.org>
1323
1324         pread: Work around HP-UX 11 bugs.
1325         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1326         and set REPLACE_PREAD if not.
1327         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1328
1329 2010-12-31  Eric Blake  <eblake@redhat.com>
1330
1331         nl_langinfo: fix YESEXPR on Irix 6.5
1332         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1333         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1334         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1335         it.
1336
1337 2010-12-31  Bruno Haible  <bruno@clisp.org>
1338
1339         iconv: Document HP-UX 11 bug.
1340         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1341
1342 2010-12-31  Bruno Haible  <bruno@clisp.org>
1343
1344         ldexpl: Fix link error on HP-UX 11.
1345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1346         LDEXPL_LIBM, using $ISNANL_LIBM.
1347
1348 2010-12-31  Eric Blake  <eblake@redhat.com>
1349
1350         ftello: avoid compilation failure with SunStudio c89
1351         * lib/ftello.c (ftello): Use lseek, not llseek.
1352
1353         tests: avoid failing coreutils tests on cygwin
1354         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1355         (create_exe_shims_): Return 0 when skipping.
1356
1357 2010-12-31  Bruno Haible  <bruno@clisp.org>
1358
1359         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1360         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1361
1362 2010-12-31  Bruno Haible  <bruno@clisp.org>
1363
1364         waitpid: Fix link error in C++ mode.
1365         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1366
1367 2010-12-31  Bruno Haible  <bruno@clisp.org>
1368
1369         isnan: Use GCC built-ins when possible.
1370         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1371         __builtin_isnan.
1372         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1373         (isnan): Define using GCC built-ins for GCC >= 4.0.
1374
1375 2010-12-31  Bruno Haible  <bruno@clisp.org>
1376
1377         isnand: Fix mistake.
1378         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1379         __builtin_isnand.
1380
1381 2010-12-31  Bruno Haible  <bruno@clisp.org>
1382
1383         open: Avoid C++ error on HP-UX 11.
1384         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1385
1386 2010-12-31  Bruno Haible  <bruno@clisp.org>
1387
1388         time_r: Add missing declarations on HP-UX 11.
1389         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1390         instead of HAVE_LOCALTIME_R.
1391         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1392         HAVE_LOCALTIME_R always.
1393         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1394         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1395         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1396         HAVE_LOCALTIME_R.
1397         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1398         * doc/posix-functions/localtime_r.texi: Likewise.
1399
1400 2010-12-29  Eric Blake  <eblake@redhat.com>
1401
1402         mountlist: tweak previous commit
1403         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1404         Reported by Paul Eggert.
1405
1406         mountlist: fix local drive detection on cygwin
1407         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1408         that works for cygwin.
1409
1410 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         ftoastr, snprintf: ftoastr + snprintf module
1413         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1414         since the snprintf module now should be good enough here.
1415         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1416         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1417         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1418         GNULIB_SNPRINTF only for the test directory, and the latter
1419         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1420         seems to suffice by itself.
1421
1422 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1423
1424         alloca: one step towards thread-safety
1425         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1426         need for a static variable.  All callers changed.  This does not
1427         make the alloca replacement thread-safe, but it's one step.
1428
1429         tests: minor indenting change
1430         * tests/init.sh: Sync from coreutils housekeeping patch
1431         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1432         to keep lines within 80 columns.
1433
1434 2010-12-28  Jim Meyering  <meyering@redhat.com>
1435
1436         regex: don't infloop on persistent failing calloc
1437         * lib/regexec.c (build_trtable): Return failure indication upon
1438         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1439         In glibc, this was fixed for version 2.13:
1440         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1441
1442 2010-12-28  Bruno Haible  <bruno@clisp.org>
1443             Paul Eggert <eggert@cs.ucla.edu>
1444
1445         linkat: Make implementation robust against system behaviour variations.
1446         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1447         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1448         way, and to -2 if it needs a generic runtime test.
1449         * lib/linkat.c (solaris_optimized_link_immediate,
1450         solaris_optimized_link_follow): New functions.
1451         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1452         (check_same_link): Use it.
1453
1454 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1455
1456         New module 'unigbrk/base'.
1457         * modules/unigbrk/base: New file.
1458         * lib/unigbrk.in.h: New file.
1459
1460         New module 'unigbrk/uc-gbrk-prop'.
1461         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1462         * modules/unigbrk/uc-gbrk-prop: New file.
1463         * lib/unigbrk/gbrkprop.h: New file.
1464         * lib/unigbrk/uc-gbrk-prop.c: New file.
1465
1466         New module 'unigbrk/uc-is-grapheme-break'.
1467         * modules/unigbrk/uc-is-grapheme-break: New file.
1468         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1469         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1470         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1471         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1472         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1473
1474         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1475
1476 2010-12-27  Bruno Haible  <bruno@clisp.org>
1477
1478         linkat test: Avoid failure on Solaris 11 2010-11.
1479         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1480
1481 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1482
1483         utimens: work around glibc rounding bug on more platforms
1484         * lib/utimens.c (fdutimens): Work around rounding bug even if
1485         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1487
1488 2010-12-27  Bruno Haible  <bruno@clisp.org>
1489
1490         select tests: Improve comments.
1491         * tests/test-select.c (do_select): Add comments.
1492
1493 2010-12-27  Bruno Haible  <bruno@clisp.org>
1494
1495         select tests: Safer way of handling timeout.
1496         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1497         at every invocation.
1498
1499 2010-12-27  Bruno Haible  <bruno@clisp.org>
1500
1501         select tests: Use 'bool' where appropriate.
1502         * tests/test-select.c (connect_to_socket): Change argument type to
1503         'bool'.
1504
1505 2010-12-27  Bruno Haible  <bruno@clisp.org>
1506
1507         select tests: Use existing modules.
1508         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1509         (configure.ac): Don't test for unistd.h.
1510         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1511         declared in <unistd.h>.
1512
1513 2010-12-27  Bruno Haible  <bruno@clisp.org>
1514
1515         mbrtowc: Work around a Solaris 7 bug.
1516         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1517         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1518         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1519         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1520         MBRTOWC_NULL_ARG1_BUG.
1521         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1522         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1523         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1524         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1525
1526 2010-12-27  Jim Meyering  <meyering@redhat.com>
1527
1528         read-file.c: tweak syntax
1529         * lib/read-file.c (fread_file): Remove space after "*" in function
1530         definitions.
1531
1532 2010-12-27  Bruno Haible  <bruno@clisp.org>
1533
1534         times test: Avoid gcc warnings on OSF/1.
1535         * tests/test-times.c (main): Cast printf arguments from clock_t to
1536         'long int'.
1537
1538 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         utimens: work around glibc rounding bug on older Linux kernels
1541         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1542         on Linux with a glibc whose utimes might not work, then work
1543         around a longstanding glibc bug involving rounding rather than
1544         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1546
1547 2010-12-26  Bruno Haible  <bruno@clisp.org>
1548
1549         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1550         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1551         _GL_CXXALIAS_SYS.
1552         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1553
1554 2010-12-26  Bruno Haible  <bruno@clisp.org>
1555
1556         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1557         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1558         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1559         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1560         looking for the declaration.
1561         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1562         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1563         problem.
1564         * doc/posix-functions/inet_pton.texi: Likewise.
1565
1566 2010-12-26  Bruno Haible  <bruno@clisp.org>
1567
1568         arpa_inet: Use the common idioms with C++ support.
1569         * lib/arpa_inet.in.h: Include c++defs.h.
1570         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1571         support.
1572         * modules/arpa_inet (Depends-on): Add c++defs.
1573         (Makefile.am): Substitute the contents of c++defs.h.
1574         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1575         * modules/arpa_inet-c++-tests: New file.
1576         * tests/test-arpa_inet-c++.cc: New file.
1577
1578 2010-12-25  Bruno Haible  <bruno@clisp.org>
1579
1580         Fix more C++ link errors on Solaris 8.
1581         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1582         $(LIB_EACCESS).
1583         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1584         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1585         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1586         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1587         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1588
1589 2010-12-25  Bruno Haible  <bruno@clisp.org>
1590
1591         printf-posix: Fix link error when a non-GCC compiler is used.
1592         * lib/stdio.in.h (printf): When not using GCC, override printf
1593         correctly.
1594         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1595
1596 2010-12-25  Bruno Haible  <bruno@clisp.org>
1597
1598         strerror_r-posix: Update doc.
1599         * doc/posix-functions/strerror_r.texi: Update doc about the return
1600         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1601
1602 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         utimens: simplify the logic of the previous change
1605         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1606         This should not affect whether the test succeeds or fails.
1607
1608         utimens: configure better on hosts with NFS clock skew
1609         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1610         uses the clock of the local host.  It might use the clock of the
1611         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1612         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1613
1614 2010-12-25  Bruno Haible  <bruno@clisp.org>
1615
1616         ptsname test: Avoid failure on Solaris.
1617         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1618         open a pseudo-terminal; don't use BSD-style ptys.
1619         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1620
1621 2010-12-25  Bruno Haible  <bruno@clisp.org>
1622
1623         ptsname: Avoid ERANGE failure on some systems.
1624         * lib/ptsname.c (buffer): Increase size.
1625
1626 2010-12-25  Bruno Haible  <bruno@clisp.org>
1627
1628         rename, renameat: Avoid test failures at NFS mounted locations.
1629         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1630         so that subsequent mkdir calls succeed.
1631
1632 2010-12-25  Bruno Haible  <bruno@clisp.org>
1633
1634         iswblank: Fix C++ link error on Solaris 8.
1635         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1636         _GL_FUNCDECL_SYS.
1637
1638 2010-12-25  Bruno Haible  <bruno@clisp.org>
1639
1640         unistd: Fix C++ link error on Solaris 8.
1641         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1642
1643 2010-12-25  Bruno Haible  <bruno@clisp.org>
1644
1645         readlink doc: Mention an old glibc bug.
1646         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1647
1648 2010-12-25  Bruno Haible  <bruno@clisp.org>
1649
1650         fcntl-h: Fix for use of C++ on glibc systems.
1651         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1652         also on glibc systems in C++ mode.
1653         Reported by Gary V. Vaughan <gary@gnu.org>.
1654
1655 2010-12-25  Bruno Haible  <bruno@clisp.org>
1656
1657         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1658         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1659
1660 2010-12-25  Bruno Haible  <bruno@clisp.org>
1661
1662         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1663         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1664         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1665         test whether truncl works according to ISO C 99 with IEC 60559.
1666         * m4/truncl-ieee.m4: New file.
1667         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1668         m4/signbit.m4.
1669         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1670
1671 2010-12-25  Bruno Haible  <bruno@clisp.org>
1672
1673         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1674         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1675         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1676         test whether ceill works according to ISO C 99 with IEC 60559.
1677         * m4/ceill-ieee.m4: New file.
1678         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1679         m4/signbit.m4.
1680         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1681
1682 2010-12-25  Bruno Haible  <bruno@clisp.org>
1683
1684         Ensure all prerequisites of <wchar.h> are included.
1685         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1686         before <wchar.h>.
1687         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1688         gl_MBRLEN_NUL_RETVAL): Likewise.
1689         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1690         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1691         AC_FUNC_MBRTOWC): Likewise.
1692         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1693         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1695         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1696         Likewise.
1697         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1698         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1699         (gl_WCHAR_H): Improve comments.
1700         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1701
1702 2010-12-25  Bruno Haible  <bruno@clisp.org>
1703
1704         strtok_r: Fix C syntax error in autoconf macro.
1705         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1706         characters in test program.
1707
1708 2010-12-24  Bruno Haible  <bruno@clisp.org>
1709
1710         ceil, trunc, round: Fix gcc warnings.
1711         * lib/ceil.c (MIN): Undefine before redefining.
1712         * lib/trunc.c (MIN): Likewise.
1713         * lib/round.c (MIN): Likewise.
1714         Include <math.h> first.
1715
1716 2010-12-24  Bruno Haible  <bruno@clisp.org>
1717
1718         select tests: Avoid failures on OSF/1 5.1.
1719         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1720         failure of closing the last socket; it may fail with ECONNRESET.
1721
1722 2010-12-24  Eric Blake  <eblake@redhat.com>
1723
1724         stdint: avoid HP-UX 10.20 preprocessor bug
1725         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1726         than #if.
1727         * tests/test-floor2.c (main): Likewise.
1728         Reported by Peter O'Gorman.
1729
1730         pipe: make obsoletion transition easier
1731         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1732         * modules/pipe (Files): Include revived file.
1733         (Include): Drop reference, to mirror getdate's behavior.
1734
1735 2010-12-24  Bruno Haible  <bruno@clisp.org>
1736
1737         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1738         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1739         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1740         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1741
1742 2010-12-24  Bruno Haible  <bruno@clisp.org>
1743
1744         gethostname: Ensure declaration on NonStop Kernel.
1745         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1746         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1747
1748 2010-12-24  Bruno Haible  <bruno@clisp.org>
1749
1750         sys_select: Ensure all necessary types on NonStop Kernel.
1751         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1752         include <sys/time.h>.
1753         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1754         NonStop Kernel.
1755         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1756
1757 2010-12-24  Bruno Haible  <bruno@clisp.org>
1758
1759         sys_select: Remove unneeded include.
1760         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1761         have <sys/select.h>.
1762
1763 2010-12-24  Bruno Haible  <bruno@clisp.org>
1764
1765         gethostname: Provide a fallback for HOST_NAME_MAX.
1766         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1767         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1768         instead.
1769         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1770
1771 2010-12-24  Bruno Haible  <bruno@clisp.org>
1772
1773         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1774         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1775         (SA_RESTART): Likewise.
1776         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1777
1778 2010-12-24  Bruno Haible  <bruno@clisp.org>
1779
1780         signal: Define NSIG.
1781         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1782         * tests/test-signal.c (nsig): New variable.
1783         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1784
1785 2010-12-24  Bruno Haible  <bruno@clisp.org>
1786
1787         rename, renameat: Avoid test failures on OSF/1 5.1.
1788         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1789         alternative error codes.
1790         * tests/test-renameat.c (main): Likewise.
1791
1792 2010-12-24  Bruno Haible  <bruno@clisp.org>
1793
1794         *printf: Detect large precisions bug on Solaris 10/SPARC.
1795         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1796         by Paul Eggert.
1797         * tests/test-snprintf-posix.h (test_function): Add this test code here
1798         too.
1799         * tests/test-sprintf-posix.h (test_function): Likewise.
1800         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1801         * tests/test-vasprintf-posix.c (test_function): Likewise.
1802         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1803         around by gnulib.
1804         * doc/posix-functions/printf.texi: Likewise.
1805         * doc/posix-functions/snprintf.texi: Likewise.
1806         * doc/posix-functions/sprintf.texi: Likewise.
1807         * doc/posix-functions/vfprintf.texi: Likewise.
1808         * doc/posix-functions/vprintf.texi: Likewise.
1809         * doc/posix-functions/vsnprintf.texi: Likewise.
1810         * doc/posix-functions/vsprintf.texi: Likewise.
1811         * doc/posix-functions/dprintf.texi: Undo last commit.
1812         * doc/posix-functions/vdprintf.texi: Likewise.
1813
1814 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1815
1816         tests: port test-fdutimensat.c to Solaris 8
1817         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1818         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1819         On Solaris 8, it fails with errno == ENOSYS, because there is no
1820         futimens (so it can't use the fd), and there is no lutimens (so it
1821         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1822
1823         vsnprintf: make more consistent with snprintf; doc fixes
1824
1825         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1826         the byte count return problem was promoted from the snprintf-posix
1827         to the snprintf module.
1828         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1829         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1830         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1831         * tests/test-snprintf.c (main): Check the byte count returned.
1832         * tests/test-vsnprintf.c (main): Likewise.
1833
1834 2010-12-23  Eric Blake  <eblake@redhat.com>
1835
1836         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1837         * modules/sigpipe (License): Relax license.
1838
1839 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1840
1841         doc: document Solaris printf bug with large float precisions
1842         * doc/posix-functions/dprintf.texi (dprintf):
1843         * doc/posix-functions/fprintf.texi (fprintf):
1844         * doc/posix-functions/printf.texi (printf):
1845         * doc/posix-functions/snprintf.texi (snprintf):
1846         * doc/posix-functions/sprintf.texi (sprintf):
1847         * doc/posix-functions/vdprintf.texi (vdprintf):
1848         * doc/posix-functions/vfprintf.texi (vfprintf):
1849         * doc/posix-functions/vprintf.texi (vprintf):
1850         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1851         * doc/posix-functions/vsprintf.texi (vsprintf):
1852         Mention that these functions mishandle large floating point
1853         precisions on Solaris 10.  The same bug is also present in Solaris
1854         8, and I assume earlier.  This causes "cd gnulib-tests; make
1855         check" to fail on Solaris 8 (and I assume, later) when building
1856         the latest coreutils, in test-vasprintf-posix's call to
1857         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1858         the wide flavors (e.g., wprintf) so this patch just updates the
1859         documentation for the narrow ones.
1860
1861         test-posixtm.c: add two tests
1862         * tests/test-posixtm.c: Add two tests, to highlight the
1863         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1864         around this bug; this is merely to document it.
1865
1866 2010-12-22  Bruno Haible  <bruno@clisp.org>
1867
1868         getlogin_r: Work around portability problem on OSF/1.
1869         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1870         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1871         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1872         test for a truncated result.
1873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1874         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1875         * modules/getlogin_r (Depends-on): Add memchr.
1876         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1877
1878 2010-12-22  Bruno Haible  <bruno@clisp.org>
1879
1880         ptsname: Avoid test failure on OSF/1 5.1.
1881         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1882         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1883         (same_slave): New function.
1884         (main): Use it to compare ptsname's result with the expected file name.
1885
1886 2010-12-22  Bruno Haible  <bruno@clisp.org>
1887
1888         Port extended stdio modules to HP NonStop Kernel.
1889         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1890         macros.
1891         * lib/fbufmode.c: Update comments.
1892         * lib/fflush.c: Likewise.
1893         * lib/fpurge.c: Likewise.
1894         * lib/freadable.c: Likewise.
1895         * lib/freadahead.c: Likewise.
1896         * lib/freading.c: Likewise.
1897         * lib/freadptr.c: Likewise.
1898         * lib/freadseek.c: Likewise.
1899         * lib/fseeko.c: Likewise.
1900         * lib/fseterr.c: Likewise.
1901         * lib/fwritable.c: Likewise.
1902         * lib/fwriting.c: Likewise.
1903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1904
1905 2010-12-22  Bruno Haible  <bruno@clisp.org>
1906
1907         ttyname_r: Work around bug on OSF/1 5.1.
1908         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1909         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1910         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1911         present.
1912         * lib/ttyname_r.c (ttyname_r): Update comments.
1913
1914 2010-12-22  Bruno Haible  <bruno@clisp.org>
1915
1916         round: Implement result sign according to IEEE 754.
1917         * lib/round.c (MIN, MINUS_ZERO): New macros.
1918         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1919         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1920         * tests/test-round-ieee.c (main): Likewise.
1921         * tests/test-roundl-ieee.c (main): Likewise.
1922
1923         trunc: Implement result sign according to IEEE 754.
1924         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1925         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1926         * tests/test-trunc2.c: Include minus-zero.h.
1927         (MINUS_ZERO): New macro.
1928         (trunc_reference): Keep in sync with lib/trunc.c.
1929         * tests/test-truncf2.c: Include minus-zero.h.
1930         (MINUS_ZERO): New macro.
1931         (truncf_reference): Keep in sync with lib/trunc.c.
1932         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1933         * tests/test-trunc-ieee.c (main): Likewise.
1934         * tests/test-truncl-ieee.c (main): Likewise.
1935
1936         ceil: Implement result sign according to IEEE 754.
1937         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1938         (FUNC): Return -0.0 for -1 < x < 0.
1939         * tests/test-ceil2.c: Include minus-zero.h.
1940         (MINUS_ZERO): New macro.
1941         (ceil_reference): Keep in sync with lib/ceil.c.
1942         * tests/test-ceilf2.c: Include minus-zero.h.
1943         (MINUS_ZERO): New macro.
1944         (ceilf_reference): Keep in sync with lib/ceil.c.
1945         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1946         * tests/test-ceil-ieee.c (main): Likewise.
1947         * tests/test-ceill-ieee.c (main): Likewise.
1948
1949         floor: Implement result sign according to IEEE 754.
1950         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1951         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1952         * tests/test-floorf2.c (floorf_reference): Likewise.
1953         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1954         * tests/test-floor-ieee.c (main): Likewise.
1955         * tests/test-floorl-ieee.c (main): Likewise.
1956
1957 2010-12-22  Bruno Haible  <bruno@clisp.org>
1958
1959         getaddrinfo: Update doc.
1960         * doc/posix-functions/gai_strerror.texi: Return type is also different
1961         on AIX and HP-UX.
1962
1963 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1964
1965         getaddrinfo, inet_ntop: Update doc for Solaris.
1966         * doc/posix-functions/gai_strerror.texi: Return type is also an
1967         issue on Solaris 9 and earlier.
1968         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1969         on Solaris 10 and earlier.
1970
1971 2010-12-21  Bruno Haible  <bruno@clisp.org>
1972
1973         New module 'roundl-ieee'.
1974         * modules/roundl-ieee: New file.
1975         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1976         test whether roundl works according to ISO C 99 with IEC 60559.
1977         * m4/roundl-ieee.m4: New file.
1978         * modules/roundl-ieee-tests: New file.
1979         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1980         * tests/test-roundl.c (main): Remove signbit tests.
1981         * modules/roundl-tests (Depends-on): Remove signbit.
1982         * doc/posix-functions/roundl.texi: Mention the new module.
1983
1984 2010-12-21  Bruno Haible  <bruno@clisp.org>
1985
1986         New module 'truncl-ieee'.
1987         * modules/truncl-ieee: New file.
1988         * modules/truncl-ieee-tests: New file.
1989         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1990         * tests/test-truncl.c (main): Remove signbit tests.
1991         * modules/truncl-tests (Depends-on): Remove signbit.
1992         * doc/posix-functions/truncl.texi: Mention the new module.
1993
1994 2010-12-21  Bruno Haible  <bruno@clisp.org>
1995
1996         New module 'ceill-ieee'.
1997         * modules/ceill-ieee: New file.
1998         * modules/ceill-ieee-tests: New file.
1999         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2000         * tests/test-ceill.c (main): Remove signbit tests.
2001         * modules/ceill-tests (Depends-on): Remove signbit.
2002         * doc/posix-functions/ceill.texi: Mention the new module.
2003
2004 2010-12-21  Bruno Haible  <bruno@clisp.org>
2005
2006         New module 'floorl-ieee'.
2007         * modules/floorl-ieee: New file.
2008         * modules/floorl-ieee-tests: New file.
2009         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2010         * tests/test-floorl.c (main): Remove signbit tests.
2011         * modules/floorl-tests (Depends-on): Remove signbit.
2012         * doc/posix-functions/floorl.texi: Mention the new module.
2013
2014 2010-12-21  Bruno Haible  <bruno@clisp.org>
2015
2016         New module 'round-ieee'.
2017         * modules/round-ieee: New file.
2018         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2019         whether round works according to ISO C 99 with IEC 60559.
2020         * m4/round-ieee.m4: New file.
2021         * modules/round-ieee-tests: New file.
2022         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2023         * tests/test-round1.c (main): Remove signbit tests.
2024         * modules/round-tests (Depends-on): Remove 'signbit'.
2025         * doc/posix-functions/round.texi: Mention the new module.
2026
2027 2010-12-21  Bruno Haible  <bruno@clisp.org>
2028
2029         New module 'trunc-ieee'.
2030         * modules/trunc-ieee: New file.
2031         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2032         whether trunc works according to ISO C 99 with IEC 60559.
2033         * m4/trunc-ieee.m4: New file.
2034         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2036         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2037         * modules/trunc-ieee-tests: New file.
2038         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2039         * tests/test-trunc1.c (main): Remove signbit tests.
2040         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2041         * doc/posix-functions/trunc.texi: Mention the new module.
2042
2043 2010-12-21  Bruno Haible  <bruno@clisp.org>
2044
2045         New module 'ceil-ieee'.
2046         * modules/ceil-ieee: New file.
2047         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2048         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2049         ISO C 99 with IEC 60559.
2050         * m4/ceil-ieee.m4: New file.
2051         * modules/ceil (Files): Add lib/ceil.c.
2052         (Depends-on): Add 'float'.
2053         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2054         * lib/math.in.h (ceil): New declaration.
2055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2056         REPLACE_CEIL.
2057         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2058         * modules/ceil-ieee-tests: New file.
2059         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2060         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2061         * doc/posix-functions/ceil.texi: Mention the new module.
2062
2063 2010-12-21  Bruno Haible  <bruno@clisp.org>
2064
2065         New module 'floor-ieee'.
2066         * modules/floor-ieee: New file.
2067         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2068         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2069         ISO C 99 with IEC 60559.
2070         * m4/floor-ieee.m4: New file.
2071         * modules/floor (Files): Add lib/floor.c.
2072         (Depends-on): Add 'float'.
2073         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2074         * lib/math.in.h (floor): New declaration.
2075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2076         REPLACE_FLOOR.
2077         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2078         * modules/floor-ieee-tests: New file.
2079         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2080         * tests/test-math-c++.cc: Check the signature of 'floor'.
2081         * doc/posix-functions/floor.texi: Mention the new module.
2082
2083 2010-12-21  Bruno Haible  <bruno@clisp.org>
2084
2085         New module 'roundf-ieee'.
2086         * modules/roundf-ieee: New file.
2087         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2088         test whether roundf works according to ISO C 99 with IEC 60559.
2089         * m4/roundf-ieee.m4: New file.
2090         * modules/roundf-ieee-tests: New file.
2091         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2092         * tests/test-roundf1.c (main): Remove signbit tests.
2093         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2094         * doc/posix-functions/roundf.texi: Mention the new module.
2095
2096 2010-12-21  Bruno Haible  <bruno@clisp.org>
2097
2098         New module 'truncf-ieee'.
2099         * modules/truncf-ieee: New file.
2100         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2101         test whether truncf works according to ISO C 99 with IEC 60559.
2102         * m4/truncf-ieee.m4: New file.
2103         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2105         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2106         * modules/truncf-ieee-tests: New file.
2107         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2108         * tests/test-truncf1.c (main): Remove signbit tests.
2109         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2110         * doc/posix-functions/truncf.texi: Mention the new module.
2111
2112 2010-12-21  Bruno Haible  <bruno@clisp.org>
2113
2114         New module 'ceilf-ieee'.
2115         * modules/ceilf-ieee: New file.
2116         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2117         test whether ceilf works according to ISO C 99 with IEC 60559.
2118         * m4/ceilf-ieee.m4: New file.
2119         * modules/ceilf-ieee-tests: New file.
2120         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2121         * tests/test-ceilf1.c (main): Remove signbit tests.
2122         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2123         * doc/posix-functions/ceilf.texi: Mention the new module.
2124
2125 2010-12-21  Bruno Haible  <bruno@clisp.org>
2126
2127         New module 'floorf-ieee'.
2128         * modules/floorf-ieee: New file.
2129         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2130         test whether floorf works according to ISO C 99 with IEC 60559.
2131         * m4/floorf-ieee.m4: New file.
2132         * modules/floorf-ieee-tests: New file.
2133         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2134         * tests/test-floorf1.c (main): Remove signbit tests.
2135         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2136         * doc/posix-functions/floorf.texi: Mention the new module.
2137
2138 2010-12-21  Bruno Haible  <bruno@clisp.org>
2139
2140         Support for minus zero in autoconf macros.
2141         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2142         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2143         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2144         * tests/minus-zero.h: Update comments.
2145
2146 2010-12-21  Bruno Haible  <bruno@clisp.org>
2147
2148         Tests for module 'ceil'.
2149         * modules/ceil-tests: New file.
2150         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2151         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2152
2153 2010-12-21  Bruno Haible  <bruno@clisp.org>
2154
2155         Tests for module 'floor'.
2156         * modules/floor-tests: New file.
2157         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2158         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2159
2160 2010-12-21  Bruno Haible  <bruno@clisp.org>
2161
2162         math: Fix indentation.
2163         * lib/math.in.h (floorf): Fix indentation.
2164
2165 2010-12-21  Bruno Haible  <bruno@clisp.org>
2166
2167         Fix cross-compilation guesses on Solaris.
2168         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2169         not match "solaris2.10".
2170         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2171         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2172         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2173
2174 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2175
2176         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2177         This fixes a problem observed with the latest coreutils snapshot
2178         that caused a test to fail on Solaris 8.  src/csplit.c's call
2179         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2180         earlier, instead of returning the number of bytes that would have
2181         been generated; this causes csplit to incorrectly report memory
2182         exhaustion.
2183         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2184         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2185         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2186         comments to match.
2187         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2188         Fix typo in matching older versions of Solaris: "solaris2.10"
2189         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2190         only for guessing while cross-compiling.
2191         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2192
2193 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         ftoastr: fix comment again
2196         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2197         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2198         Also, simplify example a bit by using flags = 0.
2199
2200 2010-12-20  Bruno Haible  <bruno@clisp.org>
2201
2202         round*, trunc*: Update documentation regarding glibc.
2203         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2204         * doc/posix-functions/round.texi: Likewise.
2205         * doc/posix-functions/roundl.texi: Likewise.
2206         * doc/posix-functions/truncf.texi: Likewise.
2207         * doc/posix-functions/trunc.texi: Likewise.
2208         * doc/posix-functions/truncl.texi: Likewise.
2209
2210 2010-12-20  Bruno Haible  <bruno@clisp.org>
2211
2212         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2213         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2214         * doc/posix-functions/round.texi: Likewise.
2215         * doc/posix-functions/roundl.texi: Likewise.
2216
2217 2010-12-20  Bruno Haible  <bruno@clisp.org>
2218
2219         ttyname_r: Add missing declaration on HP-UX 11.
2220         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2221         HAVE_TTYNAME_R.
2222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2223         declared. Set HAVE_TTYNAME_R always.
2224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2225         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2226         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2227         HAVE_TTYNAME_R.
2228         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2229
2230 2010-12-20  Bruno Haible  <bruno@clisp.org>
2231
2232         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2233         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2234         * doc/posix-functions/getlogin_r.texi: Likewise.
2235         * tests/test-getlogin.c: Include <errno.h>.
2236         (main): Avoid test failure on HP-UX 11.11.
2237         * tests/test-getlogin_r.c (main): Likewise.
2238
2239 2010-12-20  Bruno Haible  <bruno@clisp.org>
2240
2241         getlogin_r: Add missing declaration on HP-UX 11.
2242         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2243         declared also when it exists as a function.
2244         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2245
2246 2010-12-20  Bruno Haible  <bruno@clisp.org>
2247
2248         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2249         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2250         through wcrtomb.
2251
2252 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2253
2254         ftoastr: fix comment
2255         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2256         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2257
2258 2010-12-19  Bruno Haible  <bruno@clisp.org>
2259
2260         isnan: Ensure it is a macro.
2261         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2262         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2263         Solaris.
2264
2265 2010-12-19  Bruno Haible  <bruno@clisp.org>
2266
2267         ldexpl test: Fix link error on OSF/1 5.1.
2268         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2269
2270 2010-12-19  Bruno Haible  <bruno@clisp.org>
2271
2272         wctype: Make it work in C++ mode on OSF/1 5.1.
2273         * lib/wctype.in.h (iswblank): Declare but not define here.
2274         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2275         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2276         * modules/wctype (Files): Add lib/iswblank.c.
2277
2278 2010-12-19  Bruno Haible  <bruno@clisp.org>
2279
2280         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2281         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2282         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2283
2284 2010-12-19  Bruno Haible  <bruno@clisp.org>
2285
2286         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2287         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2288         _POSIX_PII_SOCKET.
2289         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2290         * doc/posix-functions/recvfrom.texi: Likewise.
2291         * doc/posix-functions/send.texi: Likewise.
2292         * doc/posix-functions/sendto.texi: Likewise.
2293
2294 2010-12-19  Bruno Haible  <bruno@clisp.org>
2295
2296         tcgetsid: Add missing declaration on OSF/1 5.1.
2297         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2298         HAVE_TCGETSID.
2299         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2300         Don't set HAVE_TCGETSID.
2301         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2302         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2303         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2304         HAVE_TCGETSID.
2305         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2306
2307 2010-12-19  Bruno Haible  <bruno@clisp.org>
2308
2309         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2310         * lib/stdio.in.h: During the include_next statement, let recursive
2311         includes of this file include only the system header file.
2312
2313 2010-12-19  Bruno Haible  <bruno@clisp.org>
2314
2315         iconv_open: Fix regression from 2010-12-04.
2316         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2317         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2318
2319 2010-12-19  Bruno Haible  <bruno@clisp.org>
2320
2321         stdbool test: Avoid a gcc warning.
2322         * tests/test-stdbool.c (main): Fail if e1 is false.
2323         Reported by Jim Meyering.
2324
2325 2010-12-19  Jim Meyering  <meyering@redhat.com>
2326
2327         setenv: restore to working order
2328         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2329         mistakenly removed.
2330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2331         HAVE_SETENV.
2332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2333         HAVE_SETENV.
2334
2335 2010-12-19  Bruno Haible  <bruno@clisp.org>
2336
2337         Document some different function declarations on OSF/1 5.1.
2338         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2339         * doc/posix-functions/inet_ntop.texi: Likewise.
2340         * doc/posix-functions/gethostname.texi: Likewise.
2341         * lib/unistd.in.h (gethostname): Update comment.
2342
2343 2010-12-19  Bruno Haible  <bruno@clisp.org>
2344
2345         doc: Mention vasprintf-posix module.
2346         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2347         the 'vasprintf-posix' module.
2348         * doc/glibc-functions/vasprintf.texi: Likewise.
2349
2350 2010-12-19  Bruno Haible  <bruno@clisp.org>
2351
2352         unsetenv: Add missing declaration on OSF/1 5.1.
2353         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2354         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2355         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2357         not HAVE_UNSETENV.
2358         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2359         HAVE_UNSETENV.
2360         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2361
2362 2010-12-19  Bruno Haible  <bruno@clisp.org>
2363
2364         setenv: Add missing declaration on OSF/1 5.1.
2365         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2366         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2367         declared. Don't set HAVE_SETENV.
2368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2369         not HAVE_SETENV.
2370         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2371         HAVE_SETENV.
2372         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2373
2374 2010-12-19  Bruno Haible  <bruno@clisp.org>
2375
2376         nl_langinfo tests: Avoid gcc warning.
2377         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2378
2379 2010-12-19  Bruno Haible  <bruno@clisp.org>
2380
2381         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2382         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2383         _GL_CXXALIAS_SYS.
2384
2385 2010-12-19  Bruno Haible  <bruno@clisp.org>
2386
2387         stdbool: Relax test.
2388         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2389         address to 'bool' work in static initializer, for compilers other than
2390         GCC.
2391
2392 2010-12-19  Bruno Haible  <bruno@clisp.org>
2393
2394         ftello: Add missing declaration on OSF/1 5.1.
2395         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2396         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2398         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2399         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2400
2401 2010-12-19  Bruno Haible  <bruno@clisp.org>
2402
2403         fseeko: Add missing declaration on OSF/1 5.1.
2404         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2405         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2407         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2408         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2409
2410 2010-12-19  Bruno Haible  <bruno@clisp.org>
2411
2412         fchdir: Add missing declaration on OSF/1 5.1.
2413         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2416         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2417         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2418
2419 2010-12-19  Bruno Haible  <bruno@clisp.org>
2420
2421         relocatable-prog-wrapper: Separate from relocatable-prog.
2422         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2423         uninstall-relocwrapper rule here.
2424         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2425         Reported by Ian Beckwith <ianb@erislabs.net>.
2426
2427 2010-12-19  Bruno Haible  <bruno@clisp.org>
2428
2429         unistr/u8-mbsnlen: Add missing dependency.
2430         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2431         Reported by Ian Beckwith <ianb@erislabs.net>.
2432
2433 2010-12-19  Bruno Haible  <bruno@clisp.org>
2434
2435         iconv: Make it possible again to use this module without 'iconv-h'.
2436         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2437         if it is not defined.
2438         Reported by Ian Beckwith <ianb@erislabs.net>.
2439
2440 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2441
2442         acl: port to Solaris 8 when copying from tmpfs to ufs
2443         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2444         error number.  Problem observed on Solaris 8 with latest
2445         coreutils, with "mv A B", where A is on a tmpfs file system and B
2446         is on a ufs file system.  This caused coreutils' mv/part-symlink
2447         test to fail.
2448
2449         tests: set fail=0 at start
2450         * tests/init.sh (setup_): Move fail=0 initialization here ...
2451         (mktempd_): ... from here, so that tests can rely on fail being
2452         set to 0 initially.  This fixes a problem in coreutils; see:
2453         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2454
2455 2010-12-18  Bruno Haible  <bruno@clisp.org>
2456
2457         memmem-simple: Stylistic changes.
2458         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2459         Fix preprocessor directive indentation.
2460
2461 2010-12-15  Pádraig Brady <P@draigBrady.com>
2462
2463         memmem, memmem-simple: reorganize and expand empty needle check
2464         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2465         functional checks to memmem-simple so that one has a fully functional
2466         memmem by using just this module.
2467         Restrict the performance only check to the memmem module.
2468         Also expand the empty needle check to ensure the correct
2469         pointer is returned, not just a non NULL pointer.
2470         * doc/glibc-functions/memmem.texi: Rearrange the portability
2471         documentation to correlate with the rearranged checks.
2472         Clarify exactly how the memmem and memmem-simple modules
2473         relate to each other.
2474
2475 2010-12-15  Pádraig Brady <P@draigBrady.com>
2476             Bruno Haible  <bruno@clisp.org>
2477
2478         Improve cross-compilation guesses for uClibc.
2479         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2480         that uClibc does not have the glibc bug.
2481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2482         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2483
2484 2010-12-14  Eric Blake  <eblake@redhat.com>
2485
2486         configmake: provide fallbacks for oldest supported autotools
2487         * m4/configmake.m4: New file.
2488         * modules/configmake (Files): Ship it.
2489         (configure.ac): Use it to guarantee fallbacks.
2490
2491 2010-12-13  Pádraig Brady <P@draigBrady.com>
2492
2493         read-file: Improve handling of large files
2494         * lib/read-file.c (fread_file): Minimize realloc()s
2495         for regular files, and better manage sizes around SIZE_MAX.
2496
2497 2010-12-13  Eric Blake  <eblake@redhat.com>
2498
2499         cloexec, fcntl: relax license
2500         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2501         consent from all contributors.
2502         * modules/fcntl (License): Likewise.
2503
2504 2010-12-10  Bruno Haible  <bruno@clisp.org>
2505
2506         Tests for module 'pipe-posix'.
2507         * modules/pipe-posix-tests: New file.
2508         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2509
2510 2010-12-10  Bruno Haible  <bruno@clisp.org>
2511
2512         pipe-posix: Make it work in C++ mode.
2513         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2514         (pipe): Use common idiom, not a macro definition.
2515         * lib/pipe.c: New file.
2516         * m4/pipe.m4: New file.
2517         * modules/pipe-posix (Description): Enhance.
2518         (Files): Add lib/pipe.c, m4/pipe.m4.
2519         (configure.ac): Invoke gl_FUNC_PIPE.
2520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2521         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2522         * tests/test-unistd-c++.cc: Check the signature of pipe.
2523
2524 2010-12-10  Bruno Haible  <bruno@clisp.org>
2525
2526         Rename module 'pipe' to 'spawn-pipe'.
2527         * modules/spawn-pipe: New file, renamed from modules/pipe.
2528         (Files, configure.ac, Makefile.am): Update.
2529         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2530         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2531         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2532         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2533         "spawn-pipe.h" instead of "pipe.h".
2534         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2535         to gl_SPAWN_PIPE.
2536         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2537         (Files, Makefile.am): Update.
2538         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2539         Update.
2540         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2541         Include "spawn-pipe.h" instead of "pipe.h".
2542         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2543         * lib/javacomp.c: Likewise.
2544         * lib/javaversion.c: Likewise.
2545         * lib/pipe-filter-gi.c: Likewise.
2546         * lib/pipe-filter-ii.c: Likewise.
2547         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2548         * modules/javacomp (Depends-on): Likewise.
2549         * modules/javaversion (Depends-on): Likewise.
2550         * modules/pipe-filter-gi (Depends-on): Likewise.
2551         * modules/pipe-filter-ii (Depends-on): Likewise.
2552         * MODULES.html.sh (Executing programs): Update.
2553         * NEWS: Mention the change.
2554
2555 2010-12-10  Eric Blake  <eblake@redhat.com>
2556
2557         pipe-posix: new module
2558         * modules/pipe-posix: New file.
2559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2560         (gl_UNISTD_H): Check for declaration.
2561         * modules/unistd (Makefile.am): Substitute it.
2562         * lib/unistd.in.h (pipe): Provide it for mingw.
2563         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2564         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2565
2566 2010-12-07  Bruno Haible  <bruno@clisp.org>
2567
2568         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2569         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2570         u8_strcmp_gnu.
2571         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2572
2573 2010-12-06  Bruno Haible  <bruno@clisp.org>
2574
2575         Update internal documentation.
2576         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2577
2578 2010-12-04  Bruno Haible  <bruno@clisp.org>
2579
2580         Put more information about failed tests into the test return codes.
2581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2582         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2584         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2585         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2586         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2587         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2588         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2589         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2592         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2593         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2594         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2595         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2596         returns a bit mask.
2597         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2598         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2599         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2600         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2601         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2605         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2606         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2607         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2608         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2609         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2611         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2612         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2613         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2614         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2615         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2616         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2618         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2619         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2620         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2621         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2622         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2623         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2624         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2625         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2626         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2627         gl_PRINTF_PRECISION): Likewise.
2628         * m4/regex.m4 (gl_REGEX): Likewise.
2629         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2631         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2632         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2633         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2636         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2637         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2639         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2640         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2641         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2642         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2643         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2644         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2645         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2646         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2648         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2649         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2650         enumerated value.
2651         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2652
2653 2010-12-04  Bruno Haible  <bruno@clisp.org>
2654
2655         Update for Solaris 11 2010-11.
2656         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2657         Express, released in November 2010.
2658
2659 2010-12-04  Bruno Haible  <bruno@clisp.org>
2660
2661         nproc: Relax license.
2662         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2663         and Paul Eggert.
2664         Requested by Ludovic Courtès <ludo@gnu.org>.
2665
2666 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2667
2668         utimecmp: fine-grained src to nearby coarse-grained dest
2669
2670         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2671         and the source is on a file system with higher-resolution time
2672         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2673         not work, and the time stamps are close together, the algorithm to
2674         determine the exact resolution from the read-back mtime was buggy:
2675         it had a "!=" where it should have had an "==".  This bug has been
2676         in the code ever since it was introduced to gnulib.
2677         Problem reported by Dan Jacobson in
2678         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2679
2680 2010-11-30  Bruno Haible  <bruno@clisp.org>
2681
2682         strerror_r-posix: Fix autoconf test.
2683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2684
2685 2010-11-28  Bruno Haible  <bruno@clisp.org>
2686             Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         Tests for module 'getdomainname'.
2689         * modules/getdomainname-tests: New file.
2690         * tests/test-getdomainname.c: New file, based on
2691         tests/test-gethostname.c.
2692
2693 2010-11-28  Bruno Haible  <bruno@clisp.org>
2694             Paul Eggert  <eggert@cs.ucla.edu>
2695
2696         getdomainname: Use the system function when possible.
2697         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2698         (getdomainname): Replace if needed. Provide the declaration if it is
2699         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2700         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2701         (getdomainname): When the system has getdomainname, call the system
2702         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2703         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2704         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2705         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2706         the function if its second argument is of type 'int' or if it is found
2707         in libnsl.
2708         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2709         <sys/systeminfo.h> and sysinfo().
2710         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2712         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2713         HAVE_GETDOMAINNAME.
2714         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2715         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2716         * doc/glibc-functions/getdomainname.texi: Document the problems with
2717         the getdomainname declaration.
2718
2719 2010-11-28  Bruno Haible  <bruno@clisp.org>
2720
2721         sys_socket: Ensure ss_family field on AIX.
2722         * lib/sys_socket.in.h (ss_family): New macro definition.
2723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2724         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2725         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2726         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2727         * modules/sys_socket (Makefile.am): Substitute
2728         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2729         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2730
2731 2010-11-27  Bruno Haible  <bruno@clisp.org>
2732
2733         readline: Improve configure output.
2734         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2735         "checking for readline..." result understandable.
2736
2737 2010-11-27  Bruno Haible  <bruno@clisp.org>
2738
2739         *printf-posix: Detect a bug on Solaris 10/x86.
2740         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2741         for floating-point output.
2742         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2743         directive.
2744         * tests/test-snprintf-posix.h (test_function): Likewise.
2745         * tests/test-sprintf-posix.h (test_function): Likewise.
2746         * tests/test-vasprintf-posix.c (test_function): Likewise.
2747         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2748         * doc/posix-functions/printf.texi: Likewise.
2749         * doc/posix-functions/snprintf.texi: Likewise.
2750         * doc/posix-functions/sprintf.texi: Likewise.
2751         * doc/posix-functions/vfprintf.texi: Likewise.
2752         * doc/posix-functions/vprintf.texi: Likewise.
2753         * doc/posix-functions/vsnprintf.texi: Likewise.
2754         * doc/posix-functions/vsprintf.texi: Likewise.
2755         * doc/glibc-functions/obstack_printf.texi: Likewise.
2756         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2757
2758 2010-11-27  Bruno Haible  <bruno@clisp.org>
2759
2760         Fix link error when module libunistring-optional is in use.
2761         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2762         * modules/striconveha-tests (Makefile.am): Likewise.
2763
2764 2010-11-27  Bruno Haible  <bruno@clisp.org>
2765
2766         regex: Mention link dependencies.
2767         * modules/regex (Link): New section.
2768         * modules/rpmatch (Link): Likewise.
2769         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2770
2771 2010-11-27  Bruno Haible  <bruno@clisp.org>
2772
2773         ftoastr: Fix compilation error on Solaris.
2774         * lib/ftoastr.c: Include <config.h>.
2775
2776 2010-11-27  Bruno Haible  <bruno@clisp.org>
2777
2778         getloadavg: Update documentation.
2779         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2780
2781 2010-11-27  Bruno Haible  <bruno@clisp.org>
2782
2783         sys_socket: Fix test whether the functions are declared.
2784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2785         not <sys/select.h>.
2786
2787 2010-11-27  Bruno Haible  <bruno@clisp.org>
2788
2789         getpass: Make sure to get system declaration on some platforms.
2790         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2791         gl_USE_SYSTEM_EXTENSIONS.
2792         * modules/getpass (Depends-on): Add extensions.
2793
2794 2010-11-26  Bruno Haible  <bruno@clisp.org>
2795
2796         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2797         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2798         'iconv' module is present.
2799         (ICONV_CONST): New macro.
2800         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2801         ICONV_CONST.
2802         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2803         set ICONV_CONST.
2804         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2805         here.
2806         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2807         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2808         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2809         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2810         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2811         present.
2812
2813 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2814
2815         ftoastr: comment fix
2816         * lib/ftoastr.c: "little" -> "little or no" in comment
2817
2818 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         stdint: port to GCC 4.3 + OSX + Octave
2821         On this platform, stdint.h is buggy and defines int64_t to long
2822         long int.  The replacement defined it to long int, causing
2823         problems with C++ style name mangling.  Instead, trust the system
2824         definition if INT64_MAX is defined, and likewise for the unsigned
2825         variant.   Problem reported by Jarno Rajahalme in
2826         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2827         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2828         and don't mess with int64_t and INT64_MAX in this case.
2829         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2830
2831 2010-11-24  Bruno Haible  <bruno@clisp.org>
2832
2833         doc: Corrections regarding MacOS X 10.4 and 10.5.
2834         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2835         MacOS X.
2836         Reported by Simon Josefsson.
2837
2838 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2839
2840         Uninstall ".bin" files installed by relocwrapper.
2841         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2842         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2843         unless it is already there.
2844
2845 2010-11-21  Bruno Haible  <bruno@clisp.org>
2846
2847         Update for NetBSD 5.0.
2848         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2849         NetBSD; the test fails on NetBSD 5.0.
2850         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2851         about NetBSD.
2852
2853 2010-11-21  Bruno Haible  <bruno@clisp.org>
2854
2855         Update for HP-UX 11.23 and HP-UX 11.31.
2856         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2857         HP-UX.
2858
2859 2010-11-21  Bruno Haible  <bruno@clisp.org>
2860
2861         Update for MacOS X 10.5.
2862         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2863         MacOS X; the test fails on MacOS X 10.5.8.
2864         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2865         about MacOS X.
2866
2867 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2868
2869         bootstrap: add bootstrap_sync option.
2870         See discussion at
2871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2873         * build-aux/bootstrap: Accept --bootstrap-sync to update
2874         bootstrap if it is not identical to the local gnulib's
2875         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2876         enable this by default.  Accept --no-bootstrap-sync to disable
2877         it.
2878
2879 2010-11-20  Bruno Haible  <bruno@clisp.org>
2880
2881         Ensure that <features.h> is included before __GLIBC__ is tested.
2882         * lib/printf-parse.h: Include <features.h>.
2883         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2884         Reported by Mike Frysinger <vapier@gentoo.org>.
2885
2886         Ensure that <features.h> is included before __GLIBC__ is tested.
2887         * lib/wchar.in.h: Include <features.h>.
2888         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2889         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2890         Reported by Mike Frysinger <vapier@gentoo.org>.
2891
2892         Ensure that <features.h> is included before __GLIBC__ is tested.
2893         * lib/arpa_inet.in.h: Include <features.h>.
2894         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2895         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2896         Reported by Mike Frysinger <vapier@gentoo.org>.
2897
2898         Ensure that <features.h> is included before __GLIBC__ is tested.
2899         * build-aux/link-warning.h: Include <features.h>.
2900         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2901         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2902         Reported by Mike Frysinger <vapier@gentoo.org>.
2903
2904         Ensure that <features.h> is included before __GLIBC__ is tested.
2905         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2906         Reported by Mike Frysinger <vapier@gentoo.org>.
2907
2908 2010-11-20  Bruno Haible  <bruno@clisp.org>
2909
2910         memmem: Fix autoconf test.
2911         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2912
2913 2010-11-20  Bruno Haible  <bruno@clisp.org>
2914
2915         Port to uClibc.
2916         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2917         * lib/fcntl.in.h: Likewise.
2918         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2919         * lib/mbrtowc.c (mbrtowc): Likewise.
2920         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2921         * lib/strerror_r.c: Likewise.
2922         * lib/unistr/u8-strnlen.c: Likewise.
2923         * lib/vasnprintf.c (decimal_point_char): Likewise.
2924         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2925         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2926         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2927         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2928         * tests/test-sigaction.c (handler, main): Likewise.
2929         * lib/freading.h: Treat uClibc like a non-glibc platform.
2930         * lib/freading.c: Likewise.
2931         * lib/gettext.h: Likewise.
2932         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2933         Likewise.
2934         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2935         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2936         * lib/propername.c (proper_name_utf8): Likewise.
2937         * lib/spawn.in.h: Likewise.
2938         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2939         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2940         mem_cd_iconveh_internal): Likewise.
2941         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2942         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2943         strstr, strcasestr): Likewise.
2944         * lib/unicodeio.c (unicode_to_mb): Likewise.
2945         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2946         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2947         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2948         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2949         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2950         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2951         * lib/unistr/u8-stpncpy.c: Likewise.
2952         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2953         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2954         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2955         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2956         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2957         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2958         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2961         Likewise.
2962         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2963         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2964         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2965         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2967         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2968         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2969         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2970         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2971         * tests/test-striconveha.c (main): Likewise.
2972         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2973         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2974         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2975         * doc/posix-functions/getline.texi: Likewise.
2976         Reported by Mike Frysinger <vapier@gentoo.org>.
2977
2978 2010-11-20  Bruno Haible  <bruno@clisp.org>
2979
2980         nproc: Fix condition.
2981         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2982         HAVE_PTHREAD_AFFINITY_NP.
2983
2984 2010-11-20  Bruno Haible  <bruno@clisp.org>
2985
2986         Fix a comment.
2987         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2988
2989 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2990
2991         ftoastr: don't assume snprintf
2992         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2993         Implement a subset of snprintf here, by using sprintf safely.
2994         * modules/ftoastr (Depends-on): Remove snprintf.
2995
2996 2010-11-19  Jim Meyering  <meyering@redhat.com>
2997
2998         test-rename.h: fix compilation failure
2999         * tests/test-rename.h (test_rename): Add omitted "}".
3000
3001 2010-11-17  Jim Meyering  <meyering@redhat.com>
3002
3003         maint.mk: add a URL discussing the no-@acronym policy
3004         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3005
3006 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3007
3008         ftoastr: depend on snprintf, improve comments
3009         * lib/ftoastr.c: Also mention Loitsch's draft.
3010         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3011         needed in the current implementation, but it might simplify
3012         speeding up the code later.
3013         * modules/ftoastr: Depend on snprintf; this improves portability.
3014         Suggested by Bruno Haible in the same email.
3015
3016         ftoastr: port to hosts lacking strtof and strtold
3017         Problem reported by Bruno Haible in
3018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3019         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3020         environment and strtold (and presumably strtof) are not available.
3021         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3022         (configure.ac): Require gl_C99_STRTOLD.
3023
3024 2010-11-18  Bruno Haible  <bruno@clisp.org>
3025
3026         c-strtold: Avoid link error on AIX 7.
3027         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3028         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3029         (gl_C_STRTOLD): Test whether strtold_l exists.
3030         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3031
3032 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         intprops: new macro INT_BITS_STRLEN_BOUND
3035         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3036         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3037         not exposed.  Also, it uses a slightly tighter bound than before;
3038         though this makes no practical difference, we might as well be as
3039         tight as we easily can.
3040
3041         ftoastr: new module, for lossless conversion of floats to short strings
3042         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3043         * modules/ftoastr: New files.
3044
3045 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3046
3047         bootstrap: port to Solaris sed
3048         * build-aux/bootstrap (get_version): Port to Solaris sed.
3049         See Ralf Wildenhues's note in
3050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3051
3052 2010-11-14  Jim Meyering  <meyering@redhat.com>
3053
3054         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3055         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3056         and move definition closer to sole use.
3057
3058 2010-11-13  Jim Meyering  <meyering@redhat.com>
3059
3060         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3061         Now we require at least autoconf-2.59, which means the work-around
3062         is no longer needed.
3063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3065         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3066         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3067         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3068
3069 2010-11-13  Bruno Haible  <bruno@clisp.org>
3070
3071         rename, renameat: Avoid test failures at NFS mounted locations.
3072         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3073         functions.
3074         (test_rename): Use assert_nonexistent.
3075         * tests/test-rename.c: Include <dirent.h>.
3076         * tests/test-renameat.c: Likewise.
3077         Reported by Gary V. Vaughan <gary@gnu.org>.
3078
3079         rename, renameat: Document Linux bug with NFS
3080         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3081         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3082         * doc/posix-functions/renameat.texi: Likewise.
3083         Suggested by Eric Blake.
3084
3085 2010-11-13  Bruno Haible  <bruno@clisp.org>
3086
3087         rename test: Add comments.
3088         * tests/test-rename.h (test_rename): Add structure and comments.
3089
3090 2010-11-13  Eric Blake  <eblake@redhat.com>
3091
3092         maintainer-makefile: cover a few more files
3093         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3094         scripts generated within C files, for libvirt.
3095
3096 2010-11-13  Bruno Haible  <bruno@clisp.org>
3097
3098         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3099         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3100         character, return the number of bytes that belong together, not always
3101         1.
3102         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3103         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3104         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3105         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3106         number of bytes of an invalid character.
3107         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3108         (main): Invoke it.
3109         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3110         results.
3111         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3112         malformed byte sequences.
3113         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3114         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3115         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3116         Reported by Ben Pfaff and Paolo Bonzini.
3117
3118 2010-11-13  Bruno Haible  <bruno@clisp.org>
3119
3120         openat: Work around glibc bug with fchownat() and empty file names.
3121         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3122         (gl_FUNC_FCHOWNAT): Invoke it.
3123         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3124         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3125         Reported by Gary V. Vaughan <gary@gnu.org>.
3126
3127 2010-11-13  Bruno Haible  <bruno@clisp.org>
3128
3129         openat: Ensure autoconf macro ordering.
3130         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3131         gl_USE_SYSTEM_EXTENSIONS.
3132         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3133
3134 2010-11-13  Bruno Haible  <bruno@clisp.org>
3135
3136         Update comments.
3137         * lib/unistr/u8-check.c: Update file name in comments.
3138         * lib/unistr/u8-mblen.c: Likewise.
3139         * lib/unistr/u8-prev.c: Likewise.
3140         * lib/unistr/u8-strmblen.c: Likewise.
3141         * lib/unistr/u8-strmbtouc.c: Likewise.
3142
3143 2010-11-13  Jim Meyering  <meyering@redhat.com>
3144
3145         tests: avoid test failure on Solaris 10 due to lack of PATH export
3146         * tests/test-update-copyright.sh: Don't forget to export PATH.
3147
3148         init.sh: ensure that IFS is defined, just in case...
3149         * tests/init.sh (setup_): Ensure that IFS is defined,
3150         so that saving and restoring it works as expected.  This
3151         appears to be useful at least for an old version of dash
3152         from a long time ago (RH 6).  See here for details:
3153         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3154
3155         maint.mk: tighten "test a == b" check
3156         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3157         test to files that contain something like #!/bin/sh.
3158         Without this, coreutils would get two false positives in
3159         the comments of C source files.
3160
3161 2010-11-12  Eric Blake  <eblake@redhat.com>
3162
3163         bootstrap: fix typo in previous attempt
3164         * build-aux/bootstrap (buildreq): Correct the grouping.
3165         Reported by Paul Eggert.
3166
3167         maintainer-makefile: prohibit test x == x
3168         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3169         Based on a report by Matthias Bolte.
3170
3171         bootstrap: allow FreeBSD gzip
3172         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3173         which has no '.' and goes to stderr.
3174         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3175         Reported by Matthias Bolte.
3176
3177         maintainer-makefile: check for i18n setup
3178         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3179         will likely work.
3180
3181 2010-11-12  Bruno Haible  <bruno@clisp.org>
3182
3183         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3184         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3185         * lib/nanosleep.c (nanosleep): Likewise.
3186
3187 2010-11-11  Bruno Haible  <bruno@clisp.org>
3188
3189         fcntl-h: Fix for use of C++ on glibc systems.
3190         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3191         also on glibc systems in C++ mode.
3192         Reported by Gary V. Vaughan <gary@gnu.org>.
3193
3194 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3195
3196         mknod: avoid false failure with dash
3197         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3198
3199 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3200
3201         unlink: Fix "is it should" typo in diagnostic.
3202         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3203         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3204
3205 2010-11-11  Bruno Haible  <bruno@clisp.org>
3206
3207         Tests for module 'strerror_r-posix'.
3208         * modules/strerror_r-posix-tests: New file.
3209         * tests/test-strerror_r.c: New file.
3210         * tests/test-string-c++.cc: Check the signature of strerror_r.
3211
3212         New module 'strerror_r-posix'.
3213         * lib/string.in.h (strerror_r): New declaration.
3214         * lib/strerror_r.c: New file.
3215         * m4/strerror_r.m4: New file.
3216         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3217         of strerror_r.
3218         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3219         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3220         * modules/strerror_r-posix: New file.
3221         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3222         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3223         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3224         portability problems.
3225
3226 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3227
3228         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3229         line is also considered for output. Quoted function name in shell
3230         command, so temporary files for functions like MyClass::operator()
3231         are removed correctly without errors.
3232
3233 2010-11-09  Bruno Haible  <bruno@clisp.org>
3234
3235         * doc/posix-functions/strerror.texi: List more failing platforms.
3236
3237         * doc/posix-functions/strerror.texi: Add a comment.
3238
3239 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3240
3241         fdopendir: fix bug on MacOS X when low on file descriptors
3242
3243         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3244         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3245         All callers changed.
3246         (fdopendir): Invoke save_cwd at the top level, not after using
3247         multiple dup() calls to use up file descriptors.  Then retry
3248         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3249         less than the maximum number of open file descriptors, because
3250         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3251         on Mac OS X 10.6.4 for tar 1.24
3252         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3253         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3254         and for tar 1.25
3255         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3256
3257 2010-11-07  Bruno Haible  <bruno@clisp.org>
3258
3259         vasnprintf: Support I flag on glibc systems.
3260         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3261         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3262         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3263         snprintf function.
3264         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3265         glibc systems.
3266         * tests/test-vasnprintf-posix3.c: New file.
3267         * modules/vasnprintf-posix-tests (Files): Add it.
3268         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3269
3270 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3271
3272         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3273         * MODULES.html.sh: For compiler warnings, use name
3274         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3275
3276 2010-11-05  Eric Blake  <eblake@redhat.com>
3277
3278         ceil, floor: avoid spurious failure with icc
3279         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3280         [denormals-as-zero] when optimizing without -mieee-fp option.
3281         * tests/test-floorf2.c (floorf_reference): Likewise.
3282         * tests/test-ceilf1.c (dummy): New function.
3283         (main): Use it to outsmart icc's optimization.
3284         * tests/test-floorf1.c (dummy, main): Likewise.
3285
3286         tests: require working signbit
3287         * modules/ceilf-tests (Depends-on): Add signbit.
3288         * modules/ceill-tests (Depends-on): Likewise.
3289         * modules/floorf-tests (Depends-on): Likewise.
3290         * modules/floorl-tests (Depends-on): Likewise.
3291         * modules/round-tests (Depends-on): Likewise.
3292         * modules/roundf-tests (Depends-on): Likewise.
3293         * modules/roundl-tests (Depends-on): Likewise.
3294         * modules/trunc-tests (Depends-on): Likewise.
3295         * modules/truncf-tests (Depends-on): Likewise.
3296         * modules/truncl-tests (Depends-on): Likewise.
3297
3298         strtod: work around icc bug
3299         * lib/strtod.c (minus_zero): Define to working value.
3300         (strtod): Use it to avoid icc bug.
3301
3302         copysign: enhance tests
3303         * modules/copysign-tests (Files): Add minus-zero.h.
3304         * tests/test-copysign.c (main): Also test zeros.
3305
3306 2010-11-04  Eric Blake  <eblake@redhat.com>
3307
3308         ceil, floor, round, trunc: enhance tests of -0
3309         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3310         * tests/test-ceill.c (main): Likewise.
3311         * tests/test-floorf1.c (main): Likewise.
3312         * tests/test-floorl.c (main): Likewise.
3313         * tests/test-round1.c (main): Likewise.
3314         * tests/test-roundf1.c (main): Likewise.
3315         * tests/test-roundl.c (main): Likewise.
3316         * tests/test-trunc1.c (main): Likewise.
3317         * tests/test-truncf1.c (main): Likewise.
3318         * tests/test-truncl.c (main): Likewise.
3319
3320 2010-11-04  Eric Blake  <eblake@redhat.com>
3321
3322         frexp, tests: work around ICC bug with -zero
3323         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3324         works with more compilers.
3325         * tests/minus-zero.h: New file.
3326         * modules/ceilf-tests (Files): Include it.
3327         * modules/ceill-tests (Files): Likewise.
3328         * modules/floorf-tests (Files): Likewise.
3329         * modules/floorl-tests (Files): Likewise.
3330         * modules/frexp-nolibm-tests (Files): Likewise.
3331         * modules/frexp-tests (Files): Likewise.
3332         * modules/frexpl-nolibm-tests (Files): Likewise.
3333         * modules/frexpl-tests (Files): Likewise.
3334         * modules/isnan-tests (Files): Likewise.
3335         * modules/isnand-nolibm-tests (Files): Likewise.
3336         * modules/isnand-tests (Files): Likewise.
3337         * modules/isnanf-nolibm-tests (Files): Likewise.
3338         * modules/isnanf-tests (Files): Likewise.
3339         * modules/isnanl-nolibm-tests (Files): Likewise.
3340         * modules/isnanl-tests (Files): Likewise.
3341         * modules/round-tests (Files): Likewise.
3342         * modules/roundf-tests (Files): Likewise.
3343         * modules/roundl-tests (Files): Likewise.
3344         * modules/ldexpl-tests (Files): Likewise.
3345         * modules/signbit-tests (Files): Likewise.
3346         * modules/snprintf-posix-tests (Files): Likewise.
3347         * modules/sprintf-posix-tests (Files): Likewise.
3348         * modules/strtod-tests (Files): Likewise.
3349         * modules/trunc-tests (Files): Likewise.
3350         * modules/truncf-tests (Files): Likewise.
3351         * modules/truncl-tests (Files): Likewise.
3352         * modules/vsnprintf-posix-tests (Files): Likewise.
3353         * modules/vsprintf-posix-tests (Files): Likewise.
3354         * modules/vasnprintf-posix-tests (Files): Likewise.
3355         * modules/vasprintf-posix-tests (Files): Likewise.
3356         * tests/test-ceilf1.c (main): Use it.
3357         * tests/test-ceill.c (main): Likewise.
3358         * tests/test-floorf1.c (main): Likewise.
3359         * tests/test-floorl.c (main): Likewise.
3360         * tests/test-frexp.c (main): Likewise.
3361         * tests/test-frexpl.c (main): Likewise.
3362         * tests/test-isnan.c (main): Likewise.
3363         * tests/test-isnand.h (main): Likewise.
3364         * tests/test-isnanf.h (main): Likewise.
3365         * tests/test-isnanl.h (main): Likewise.
3366         * tests/test-ldexpl.c (main): Likewise.
3367         * tests/test-round.c (main): Likewise.
3368         * tests/test-roundf.c (main): Likewise.
3369         * tests/test-roundl.c (main): Likewise.
3370         * tests/test-signbit.c (test_signbitf, test_signbitd)
3371         (test_signbitl): Likewise.
3372         * tests/test-snprintf-posix.h (test_function): Likewise.
3373         * tests/test-sprintf-posix.h (test_function): Likewise.
3374         * tests/test-strtod.c (main): Likewise.
3375         * tests/test-trunc1.c (main): Likewise.
3376         * tests/test-truncf1.c (main): Likewise.
3377         * tests/test-truncl.c (main): Likewise.
3378
3379         isnanl: work around icc bug
3380         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3381
3382 2010-11-03  Eric Blake  <eblake@redhat.com>
3383
3384         tests: fix compiler warnings
3385         * tests/test-getopt.h (test_getopt): Fix condition.
3386         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3387         * tests/test-pipe2.c (main): Likewise.
3388         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3389
3390         utimens: fix broken m4 test
3391         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3392
3393 2010-10-28  Bruno Haible  <bruno@clisp.org>
3394
3395         posix_spawn*, getdtablesize: Relax license.
3396         * modules/posix_spawn (License): Change to LGPLv2+.
3397         * modules/posix_spawnp (License): Likewise.
3398         * modules/posix_spawn-internal (License): Likewise.
3399         * modules/posix_spawnattr_init (License): Likewise.
3400         * modules/posix_spawnattr_getflags (License): Likewise.
3401         * modules/posix_spawnattr_setflags (License): Likewise.
3402         * modules/posix_spawnattr_getpgroup (License): Likewise.
3403         * modules/posix_spawnattr_setpgroup (License): Likewise.
3404         * modules/posix_spawnattr_getschedparam (License): Likewise.
3405         * modules/posix_spawnattr_setschedparam (License): Likewise.
3406         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3407         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3408         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3409         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3410         * modules/posix_spawnattr_getsigmask (License): Likewise.
3411         * modules/posix_spawnattr_setsigmask (License): Likewise.
3412         * modules/posix_spawnattr_destroy (License): Likewise.
3413         * modules/posix_spawn_file_actions_init (License): Likewise.
3414         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3415         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3416         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3417         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3418         * modules/getdtablesize (License): Likewise.
3419         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3420
3421 2010-10-26  Bruno Haible  <bruno@clisp.org>
3422
3423         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3424         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3425         Cygwin and mingw.
3426         Suggested by Eric Blake.
3427
3428 2010-10-26  Bruno Haible  <bruno@clisp.org>
3429
3430         stdio: Work around compilation error due to renameat() on Solaris 10.
3431         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3432         * lib/renameat.c: Don't include <unistd.h> here.
3433         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3434         Reported by Paul Eggert and Eric Blake.
3435
3436 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3437
3438         renameat: port to Solaris 10, which declares renameat in unistd.h
3439
3440         * lib/renameat.c: Include unistd.h before stdio.h, because
3441         Solaris 10 declares renameat in unistd.h.  Problem encountered
3442         when building GNU tar 1.24 on Solaris 10.
3443
3444 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3445
3446         fdopendir: fix C89 compilation
3447         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3448         compilers.
3449
3450 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3451
3452         inttostr: simplify by removing unnecessary redundancy
3453         * lib/anytostr.c: Don't include verify.h.
3454         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3455         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3456         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3457         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3458         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3459         Likewise.
3460         * modules/inttostr (Depends-on): Remove 'verify'.
3461
3462 2010-10-23  Bruno Haible  <bruno@clisp.org>
3463
3464         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3465         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3466         Reported by Eric Blake.
3467
3468 2010-10-23  Bruno Haible  <bruno@clisp.org>
3469
3470         Tests: Fix LOCALE_JA on MirBSD 10.
3471         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3472         to an UTF-8 locale.
3473         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3475         Reported by Eric Blake.
3476
3477 2010-10-21  Bruno Haible  <bruno@clisp.org>
3478
3479         nl_langinfo test: Avoid test failure on NetBSD 5.
3480         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3481         Reported by Eric Blake.
3482
3483 2010-10-21  Eric Blake  <eblake@redhat.com>
3484
3485         c-stack: work around libsigsegv 2.8 bug
3486         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3487         overflow on at least PowerPC64.
3488
3489 2010-10-17  Bruno Haible  <bruno@clisp.org>
3490
3491         userspec: Drop redundant file.
3492         * modules/userspec (Files): Remove lib/inttostr.h.
3493
3494 2010-10-17  Bruno Haible  <bruno@clisp.org>
3495
3496         nl_langinfo tests: Silence some warnings.
3497         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3498         Reported by Jim Meyering.
3499
3500 2010-10-17  Bruno Haible  <bruno@clisp.org>
3501
3502         Make use of GCC's attribute __alloc_size__.
3503         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3504         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3505         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3506         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3507         __alloc_size__.
3508         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3509         Suggested by Jim Meyering.
3510
3511 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3512
3513         bootstrap: anchor .gitignore entries.
3514         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3515         with...
3516         (insert_vc_ignore): ... this new function, which prepends `/' to
3517         all .gitignore entries before passing them to
3518         insert_sorted_if_absent.
3519
3520 2010-10-16  Bruno Haible  <bruno@clisp.org>
3521
3522         nextafter: Fix configure check.
3523         * modules/nextafter (configure.ac): Correct expected prototype.
3524
3525 2010-10-16  Bruno Haible  <bruno@clisp.org>
3526
3527         termios: Update documentation.
3528         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3529
3530 2010-10-16  Bruno Haible  <bruno@clisp.org>
3531
3532         tests: Make them compile with TinyCC.
3533         * tests/test-strstr.c (main): Remove parentheses around array
3534         initializer.
3535
3536 2010-10-15  Eric Blake  <eblake@redhat.com>
3537
3538         ignore-value: make header idempotent
3539         * lib/ignore-value.h: Add double-inclusion guards.
3540         Reported by Stefan Berger.
3541
3542 2010-10-15  Jim Meyering  <meyering@redhat.com>
3543
3544         GNUmakefile: handle "stable" target, not "major"
3545         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3546         lists in maint.mk and announce-gen.  Without this, "make stable"
3547         would fail to ensure that $(VERSION) is up to date.
3548
3549 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3550
3551         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3552         & co.
3553
3554 2010-10-14  Bruno Haible  <bruno@clisp.org>
3555
3556         vasnprintf: Don't set errno to 0.
3557         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3558         block that sets it to 0.
3559         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3560
3561 2010-10-14  Bruno Haible  <bruno@clisp.org>
3562
3563         socketlib: Fix.
3564         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3565         gl_PREREQ_SYS_H_WINSOCK2.
3566         Reported by Ian Beckwith <ianb@erislabs.net>.
3567
3568 2010-10-13  Jim Meyering  <meyering@redhat.com>
3569
3570         test-select-stdin.c: avoid warn_unused_result warnings
3571         * tests/test-select-stdin.c: Include "macros.h".
3572         ASSERT that read and fflush succeed.
3573
3574 2010-10-13  Jim Meyering  <meyering@redhat.com>
3575
3576         git-version-gen: do require git-VC'd files in cwd
3577         * build-aux/git-version-gen: Reject a git version string
3578         if there are no commits associated with the current directory.
3579         This avoids an unlikely false-positive (unrelated dir whose parent
3580         repository also contains a tag matching v*), as pointed out
3581         by Giuseppe Scrivano in
3582         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3583
3584 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3585
3586         argv-iter: omit nonconforming declaration
3587         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3588         enum arg_iter_err declaration, which doesn't conform to C99.
3589         Solaris 10 cc warns about this.
3590
3591 2010-10-13  Eric Blake  <eblake@redhat.com>
3592
3593         termios: fix compilation on mingw
3594         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3595         (gl_TERMIOS_H): Adjust it on mingw.
3596         * modules/termios (Makefile.am): Substitute new key.
3597         * lib/termios.in.h (includes): Make include_next conditional.
3598         * doc/posix-headers/termios.texi (termios.h): Update
3599         documentation.
3600         Reported by Daniel P. Berrange.
3601
3602 2010-10-13  Jim Meyering  <meyering@redhat.com>
3603
3604         git-version-gen: don't require that .git/ be in the current dir
3605         * build-aux/git-version-gen: Adjust this script so that it works
3606         when run from any working directory beneath the top-level .git/-
3607         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3608         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3609
3610         test-select: avoid warn_unused_result warnings
3611         * tests/test-select.c: Include "macros.h".
3612         ASSERT that each call to read, write, and pipe succeeds.
3613         While not technically required, also check each "close".
3614         * modules/select-tests (Files): Add tests/macros.h.
3615
3616         test-symlinkat: remove declaration of unused local
3617         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3618
3619         test-inttostr: avoid shadowing warnings
3620         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3621         and use malloc rather than the stack for the same reason as
3622         mentioned in the comment justifying the other allocation.
3623
3624 2010-10-11  Bruno Haible  <bruno@clisp.org>
3625
3626         stdlib: Allow multiple gnulib generated replacements to coexist.
3627         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3628         Reported by Sam Steingold <sds@gnu.org>.
3629
3630 2010-10-11  Jim Meyering  <meyering@redhat.com>
3631
3632         fix a documentation typo
3633         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3634
3635 2010-10-11  Eric Blake  <eblake@redhat.com>
3636
3637         futimens: work around Solaris 11 bug
3638         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3639         * tests/test-futimens.h (test_futimens): Enhance, rather than
3640         weaken test.
3641         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3642
3643 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3644
3645         Indentation.
3646         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3647         higher-level operators more to the left.
3648
3649 2010-10-11  Jim Meyering  <meyering@redhat.com>
3650
3651         test-futimens: avoid unwarranted test failure on Solaris 5.11
3652         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3653         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3654         because it tries to dereference the NULL name argument.
3655
3656 2010-10-11  Bruno Haible  <bruno@clisp.org>
3657
3658         Indentation.
3659         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3660         indentation.
3661
3662 2010-10-11  Jim Meyering  <meyering@redhat.com>
3663
3664         spawn.in.h: make indentation consistent with parentheses
3665         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3666         Make indentation consistent with parentheses.
3667
3668 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3669
3670         Fix mismatched parens in previous commit
3671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3672         parens.
3673
3674 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3675
3676         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3677
3678         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3679         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3680         * lib/malloca.c: Include "verify.h".
3681         (verify1): Remove, replacing with a verify call.
3682         * lib/relocwrapper.c (verify1): Likewise.
3683         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3684         Likewise.
3685         * modules/malloca (Depends-on): Add 'verify'.
3686         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3687         * modules/vasnprintf (Depends-on): Add 'verify'.
3688         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3689         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3690         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3691         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3692         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3693         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3694         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3695
3696         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3697
3698         Formerly the style was sometimes 2*X - 1, because the C standard
3699         was wrongly thought to disallow ?: in integral constant expressions.
3700         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3701         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3702         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3703         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3704         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3705         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3706         verify that time_t cannot be floating.
3707
3708 2010-10-08  Eric Blake  <eblake@redhat.com>
3709
3710         time: enforce recent POSIX ruling that time_t is integral
3711         * lib/time.in.h (__time_t_must_be_integral): Detect any
3712         problematic systems, allowing the rest of gnulib to assume POSIX.
3713
3714 2010-10-08  Jim Meyering  <meyering@redhat.com>
3715
3716         fdopendir: fix a bug on systems lacking openat and /proc support
3717         OpenBSD 4.7 is one such system.  The most noticeable effect was
3718         failure of any application making nontrivial use of fts: rm, du,
3719         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3720           ./rm: traversal failed: `a': Bad file descriptor
3721         Debugging that, you see that even though FD 6 was closed just
3722         prior to the opendir call in fd_clone_opendir, its resulting
3723         dir->dd_fd was 8, rather than the expected value of 6:
3724
3725         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3726         93                close (fd);
3727         (gdb) n
3728         94                dir = fd_clone_opendir (dupfd);
3729         (gdb) n
3730         95                saved_errno = errno;
3731         (gdb) p dir->dd_fd
3732         $11 = 8
3733
3734         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3735         The problem is that on OpenBSD, fd_clone_opendir has to resort
3736         to using the old-style save/restore CWD mechanism, due to its
3737         lack of openat/proc support, and *that* would steal the FD (6)
3738         that opendir was supposed to use.
3739
3740         The fix is to squirrel away the desired FD so that save_cwd uses a
3741         different one, and then free the dest FD right before calling opendir.
3742         That guarantees opendir will use the required file descriptor.
3743
3744         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3745
3746 2010-10-08  Bruno Haible  <bruno@clisp.org>
3747
3748         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3749         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3750
3751 2010-10-08  Bruno Haible  <bruno@clisp.org>
3752
3753         nanosleep: Make replacement POSIX compliant.
3754         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3755         is out of range.
3756         Reported by Jim Meyering.
3757
3758 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3759
3760         bootstrap: add hook for altering gnulib.mk, for Bison
3761         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3762         the Bison bootstrapping process can rewrite file names and variables
3763         in this file before later parts of 'bootstrap' use the file.
3764         Bison wants to include lib/gnulib.mk from the top-level makefile,
3765         so it needs the file names in this file to be relative to the top
3766         level, not relative to lib; plus it needs variable names to be
3767         rewritten.
3768         (slurp): Use the new function.
3769
3770         bootstrap: reformat for readability
3771         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3772
3773 2010-10-08  Eric Blake  <eblake@redhat.com>
3774
3775         docs: update cygwin progress
3776         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3777         1.7.7.
3778         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3779         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3780         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3781         * doc/posix-functions/carg.texi (carg): Likewise.
3782         * doc/posix-functions/cargf.texi (cargf): Likewise.
3783         * doc/posix-functions/casin.texi (casin): Likewise.
3784         * doc/posix-functions/casinf.texi (casinf): Likewise.
3785         * doc/posix-functions/casinh.texi (casinh): Likewise.
3786         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3787         * doc/posix-functions/catan.texi (catan): Likewise.
3788         * doc/posix-functions/catanf.texi (catanf): Likewise.
3789         * doc/posix-functions/catanh.texi (catanh): Likewise.
3790         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3791         * doc/posix-functions/ccos.texi (ccos): Likewise.
3792         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3793         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3794         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3795         * doc/posix-functions/cexp.texi (cexp): Likewise.
3796         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3797         * doc/posix-functions/cimag.texi (cimag): Likewise.
3798         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3799         * doc/posix-functions/clog.texi (clog): Likewise.
3800         * doc/posix-functions/clogf.texi (clogf): Likewise.
3801         * doc/posix-functions/conj.texi (conj): Likewise.
3802         * doc/posix-functions/conjf.texi (conjf): Likewise.
3803         * doc/posix-functions/cpow.texi (cpow): Likewise.
3804         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3805         * doc/posix-functions/cproj.texi (cproj): Likewise.
3806         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3807         * doc/posix-functions/creal.texi (creal): Likewise.
3808         * doc/posix-functions/crealf.texi (crealf): Likewise.
3809         * doc/posix-functions/csin.texi (csin): Likewise.
3810         * doc/posix-functions/csinf.texi (csinf): Likewise.
3811         * doc/posix-functions/csinh.texi (csinh): Likewise.
3812         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3813         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3814         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3815         * doc/posix-functions/ctan.texi (ctan): Likewise.
3816         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3817         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3818         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3819         * doc/posix-headers/complex.texi (complex.h): Likewise.
3820
3821 2010-10-07  Jim Meyering  <meyering@redhat.com>
3822
3823         parse-datetime: avoid compilation failure on OpenBSD 4.7
3824         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3825         This works around a compilation failure on OpenBSD 4.7:
3826         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3827
3828 2010-10-07  Eric Blake  <eblake@redhat.com>
3829
3830         docs: update cygwin progress
3831         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3832         1.7.6.
3833         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3834         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3835         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3836         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3837         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3838         Likewise.
3839         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3840         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3841         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3842         Likewise.
3843         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3844         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3845         Likewise.
3846         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3847         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3848         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3849         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3850         Likewise.
3851         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3852         Likewise.
3853         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3854
3855         docs: update parse-datetime history
3856         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3857         documentation of this function's history and alternatives.
3858
3859         cygwin: use more robust version check
3860         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3861         exclude an eventual cygwin 1.9.1.
3862         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3864         (gl_FUNC_STRCASESTR): Likewise.
3865         Reported by Bruno Haible.
3866
3867 2010-10-06  Bruno Haible  <bruno@clisp.org>
3868
3869         string, sys_select: Avoid #including large headers unless necessary.
3870         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3871         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3872         OSF/1, BeOS, Haiku.
3873         Reported by Jim Meyering.
3874
3875 2010-10-05  Eric Blake  <eblake@redhat.com>
3876
3877         memmem, strstr, strcasestr: fix bug with long periodic needle
3878         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3879         periodic needle having false positive.
3880         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3881         and cygwin 1.7.7.
3882         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3884         (gl_FUNC_STRCASESTR): Likewise.
3885         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3886         * tests/test-memmem.c (main): Expose the bug.
3887         * tests/test-strcasestr.c (main): Likewise.
3888         * tests/test-strstr.c (main): Likewise.
3889         * tests/test-c-strcasestr.c (main): Likewise.
3890         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3891         * doc/posix-functions/strstr.texi (strstr): Likewise.
3892         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3893         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3894
3895 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3896
3897         parse-datetime: do some more renaming
3898         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3899         parse_datetime, not get_date.  Mention the renaming.
3900         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3901         in comments.
3902         * m4/bison.m4: Likewise.
3903
3904 2010-10-05  Eric Blake  <eblake@redhat.com>
3905
3906         parse-datetime: better name than get_date
3907         * NEWS: Reword the deprecation notice.
3908         * modules/get_date: Rename to modules/parse-datetime.
3909         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3910         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3911         * lib/get_date.y: Rename to lib/parse-datetime.y.
3912         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3913         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3914         * doc/getdate.texi: Provide fallback wrapper.
3915         * lib/getdate.h: Move guts, and wrap...
3916         * lib/parse-datetime.h: ...new file.
3917         * lib/parse-datetime.y (get_date): Rename...
3918         (parse_datetime): ...to this.
3919         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3920         (gl_PARSE_DATETIME): ...to this.
3921         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3922         documentation.
3923         * modules/getdate (Files): Provide fallback docs and header.
3924         (Notice, Depends-on): Update references.
3925         * tests/test-parse-datetime.c: Likewise.
3926         * DEPENDENCIES: Likewise.
3927         * MODULES.html.sh (Date and time <time.h>): Likewise.
3928         * doc/parse-datetime.texi (Date input formats)
3929         (Authors of parse_datetime): Likewise.
3930         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3931         (Include): Likewise.
3932         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3933         * gnulib-tool: Likewise.
3934         * m4/bison.m4 (gl_BISON): Likewise.
3935         Suggested by Bruno Haible.
3936
3937 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3938
3939         more ports to Solaris tr, which needs [] around ranges
3940         * gnulib-tool: Solaris tr needs [] around ranges.
3941         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3942         * tests/test-pipe-filter-gi1.c (main): Likewise.
3943         * tests/test-pipe-filter-ii1.c (main): Likewise.
3944
3945 2010-10-05  Eric Blake  <eblake@redhat.com>
3946
3947         bootstrap: fix Solaris regression
3948         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3949         around ranges.
3950         Reported by Pádraig Brady.
3951
3952         bootstrap: work with pkg-config
3953         * build-aux/bootstrap (check_versions): Also transliterate - in
3954         prerequisite name.
3955         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3956         prerequisites that were already found, to avoid confusion.
3957         Reported by Justin Clift.
3958
3959         faccessat: remove unused wrappers
3960         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3961         presence of these wrappers dragged in -lgen on Solaris.
3962         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3963
3964 2010-10-05  Jim Meyering  <meyering@redhat.com>
3965
3966         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3967         * Makefile (sc_pragma_columns): New syntax-check rule.
3968
3969 2010-10-04  Bruno Haible  <bruno@clisp.org>
3970
3971         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3972         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3973         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3974         Reported by Bruce Korb and Eric Blake.
3975
3976 2010-10-04  Bruno Haible  <bruno@clisp.org>
3977
3978         threadlib: Make option --with-libpth-prefix work.
3979         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3980         use $LIBPTH, not just -lpth.
3981
3982 2010-10-04  Bruno Haible  <bruno@clisp.org>
3983
3984         Avoid line length limitation from HP NonStop system header files.
3985         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3986         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3987         * lib/ctype.in.h: Likewise.
3988         * lib/dirent.in.h: Likewise.
3989         * lib/errno.in.h: Likewise.
3990         * lib/fcntl.in.h: Likewise.
3991         * lib/float.in.h: Likewise.
3992         * lib/getopt.in.h: Likewise.
3993         * lib/iconv.in.h: Likewise.
3994         * lib/inttypes.in.h: Likewise.
3995         * lib/langinfo.in.h: Likewise.
3996         * lib/locale.in.h: Likewise.
3997         * lib/math.in.h: Likewise.
3998         * lib/netdb.in.h: Likewise.
3999         * lib/netinet_in.in.h: Likewise.
4000         * lib/poll.in.h: Likewise.
4001         * lib/pthread.in.h: Likewise.
4002         * lib/pty.in.h: Likewise.
4003         * lib/sched.in.h: Likewise.
4004         * lib/se-selinux.in.h: Likewise.
4005         * lib/search.in.h: Likewise.
4006         * lib/signal.in.h: Likewise.
4007         * lib/spawn.in.h: Likewise.
4008         * lib/stdarg.in.h: Likewise.
4009         * lib/stddef.in.h: Likewise.
4010         * lib/stdint.in.h: Likewise.
4011         * lib/stdio.in.h: Likewise.
4012         * lib/stdlib.in.h: Likewise.
4013         * lib/string.in.h: Likewise.
4014         * lib/strings.in.h: Likewise.
4015         * lib/sys_file.in.h: Likewise.
4016         * lib/sys_ioctl.in.h: Likewise.
4017         * lib/sys_select.in.h: Likewise.
4018         * lib/sys_socket.in.h: Likewise.
4019         * lib/sys_stat.in.h: Likewise.
4020         * lib/sys_time.in.h: Likewise.
4021         * lib/sys_times.in.h: Likewise.
4022         * lib/sys_utsname.in.h: Likewise.
4023         * lib/sys_wait.in.h: Likewise.
4024         * lib/sysexits.in.h: Likewise.
4025         * lib/termios.in.h: Likewise.
4026         * lib/time.in.h: Likewise.
4027         * lib/unistd.in.h: Likewise.
4028         * lib/wchar.in.h: Likewise.
4029         * lib/wctype.in.h: Likewise.
4030         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4031         * modules/ctype (Makefile.am): Likewise.
4032         * modules/dirent (Makefile.am): Likewise.
4033         * modules/errno (Makefile.am): Likewise.
4034         * modules/fcntl-h (Makefile.am): Likewise.
4035         * modules/float (Makefile.am): Likewise.
4036         * modules/getopt-posix (Makefile.am): Likewise.
4037         * modules/iconv-h (Makefile.am): Likewise.
4038         * modules/inttypes (Makefile.am): Likewise.
4039         * modules/langinfo (Makefile.am): Likewise.
4040         * modules/locale (Makefile.am): Likewise.
4041         * modules/math (Makefile.am): Likewise.
4042         * modules/netdb (Makefile.am): Likewise.
4043         * modules/netinet_in (Makefile.am): Likewise.
4044         * modules/poll-h (Makefile.am): Likewise.
4045         * modules/pthread (Makefile.am): Likewise.
4046         * modules/pty (Makefile.am): Likewise.
4047         * modules/sched (Makefile.am): Likewise.
4048         * modules/search (Makefile.am): Likewise.
4049         * modules/selinux-h (Makefile.am): Likewise.
4050         * modules/signal (Makefile.am): Likewise.
4051         * modules/spawn (Makefile.am): Likewise.
4052         * modules/stdarg (Makefile.am): Likewise.
4053         * modules/stddef (Makefile.am): Likewise.
4054         * modules/stdint (Makefile.am): Likewise.
4055         * modules/stdio (Makefile.am): Likewise.
4056         * modules/stdlib (Makefile.am): Likewise.
4057         * modules/string (Makefile.am): Likewise.
4058         * modules/strings (Makefile.am): Likewise.
4059         * modules/sys_file (Makefile.am): Likewise.
4060         * modules/sys_ioctl (Makefile.am): Likewise.
4061         * modules/sys_select (Makefile.am): Likewise.
4062         * modules/sys_socket (Makefile.am): Likewise.
4063         * modules/sys_stat (Makefile.am): Likewise.
4064         * modules/sys_time (Makefile.am): Likewise.
4065         * modules/sys_times (Makefile.am): Likewise.
4066         * modules/sys_utsname (Makefile.am): Likewise.
4067         * modules/sys_wait (Makefile.am): Likewise.
4068         * modules/sysexits (Makefile.am): Likewise.
4069         * modules/termios (Makefile.am): Likewise.
4070         * modules/time (Makefile.am): Likewise.
4071         * modules/unistd (Makefile.am): Likewise.
4072         * modules/wchar (Makefile.am): Likewise.
4073         * modules/wctype (Makefile.am): Likewise.
4074
4075 2010-10-04  Bruno Haible  <bruno@clisp.org>
4076
4077         read-file tests: Avoid a test failure on NonStop Kernel.
4078         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4079         a regular file.
4080         Reported by Joachim Schmitz <schmitz@hp.com>.
4081
4082 2010-10-03  Bruno Haible  <bruno@clisp.org>
4083
4084         gnulib-tool: Fixes for --create-testdir with --libtool.
4085         * gnulib-tool (func_get_automake_snippet): Don't augment
4086         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4087         an executable.
4088         (func_create_testdir): Handle module 'alloca' like func_import.
4089         Reported by Bruce Korb <bruce.korb@gmail.com>.
4090
4091 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4092
4093         Avoid some lines longer than 80 characters.
4094         * lib/stdint.in.h: Break long comment lines.
4095         * lib/math.in.h: Likewise.
4096         (_GL_NUM_UINT_WORDS): New macro, for readability.
4097         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4098         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4099         * lib/stdlib.in.h: Likewise.
4100         * lib/spawn.in.h: Likewise.
4101         * lib/sys_socket.in.h: Update an URL.
4102         * lib/sys_stat.in.h: Break long line.
4103
4104 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4105
4106         Improve pmccabe2html.
4107         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4108         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4109         when the sources change. Remove the line in the HTML about "Used
4110         ranges" (which implied that there might be other unused ranges),
4111         rename "Resume" to "Summary" (easier to understand for more users).
4112         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4113         styles, and some unnecessary blank lines.
4114
4115 2010-10-03  Bruno Haible  <bruno@clisp.org>
4116             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4117
4118         acl: Add support for ACLs on NonStop Kernel.
4119         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4120         Check whether the function aclsort() exists.
4121         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4122         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4123         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4124         (acl_nontrivial [HAVE_ACLSORT]: New function.
4125         (file_has_acl): Implement for NonStop Kernel.
4126         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4127         (qset_acl): Implement for NonStop Kernel.
4128         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4129         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4130         (main): Implement for NonStop Kernel.
4131         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4132         Kernel. Handle this flavor.
4133         * tests/test-set-mode-acl.sh: Likewise.
4134         * tests/test-copy-acl.sh: Likewise.
4135         * tests/test-copy-file.sh: Likewise.
4136
4137 2010-10-03  Bruno Haible  <bruno@clisp.org>
4138
4139         Info about ACLs on NonStop Kernel.
4140         * doc/acl-resources.txt: Add info about NonStop Kernel.
4141         References by Joachim Schmitz <schmitz@hp.com>.
4142
4143 2010-10-02  Bruno Haible  <bruno@clisp.org>
4144
4145         Define missing EDQUOT on NonStop Kernel.
4146         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4147         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4148         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4149         missing.
4150         * doc/posix-headers/errno.texi: Mention the NSK bug.
4151         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4152         Reported by Joachim Schmitz <schmitz@hp.com>.
4153
4154 2010-10-02  Bruno Haible  <bruno@clisp.org>
4155
4156         Update doc for POSIX:2008.
4157         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4158         Update URL of POSIX specification.
4159
4160 2010-10-02  Bruno Haible  <bruno@clisp.org>
4161
4162         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4163         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4164         from gnulib, not from Automake.
4165
4166 2010-10-02  Bruno Haible  <bruno@clisp.org>
4167
4168         New module 'system-posix'.
4169         * modules/system-posix: New file.
4170         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4171         module is present.
4172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4173         GNULIB_SYSTEM_POSIX.
4174         * modules/stdlib (Depends-on): Remove sys_wait.
4175         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4176         * doc/posix-functions/system.texi: Mention the new module.
4177         * doc/posix-headers/stdlib.texi: Likewise.
4178         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4179         define test_sys_wait_macros to a no-op.
4180         Reported by Sam Steingold <sds@gnu.org>.
4181
4182 2010-09-30  Bruno Haible  <bruno@clisp.org>
4183
4184         More renaming from 'getdate' to 'get_date'.
4185         * doc/get_date.texi: Renamed from doc/getdate.texi.
4186         * modules/get_date (Files): Update.
4187         * MODULES.html.sh (Date and time <time.h>): Update.
4188         * DEPENDENCIES: Update.
4189         * gnulib-tool: Update comment.
4190         * m4/bison.m4 (gl_BISON): Likewise.
4191         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4192
4193 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4194
4195         bootstrap: support ACLOCAL_FLAGS during aclocal
4196         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4197         can add additional -I dir for third-party .m4 files.
4198
4199 2010-09-30  Eric Blake  <eblake@redhat.com>
4200
4201         bootstrap: use glibtoolize on MacOS
4202         * build-aux/bootstrap (check_versions): Convert libtool into
4203         libtoolize.
4204         (tool search): Move libtool check earlier, and look for
4205         glibtoolize for MacOS.
4206         (gnulib_tool_options): Auto-add --libtool when appropriate.
4207         Reported by Justin Clift.
4208
4209         poll: fix typo that broke test on MacOS
4210         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4211         Reported by Justin Clift.
4212
4213         getdate: rename to get_date
4214         Note: getdate.h is not renamed, to minimize client impact.
4215         * modules/getdate: Mark obsolete.  Move old contents...
4216         * modules/get_date: ...to new module name.
4217         * modules/getdate-tests: Move...
4218         * modules/get_date-tests: ...here.
4219         * m4/getdate.m4: Move...
4220         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4221         * lib/getdate.y: Move...
4222         * lib/get_date.y: ...here.
4223         * tests/test-getdate.c: Move...
4224         * tests/test-get_date.c: ...here.
4225         * doc/posix-functions/getdate.texi (getdate): Update name.
4226         * NEWS: Mention the change.
4227
4228 2010-09-29  Bruno Haible  <bruno@clisp.org>
4229
4230         Separate the module 'waitpid' from the module 'sys_wait'.
4231         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4232         present.
4233         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4234         gl_MODULE_INDICATOR_FOR_TESTS.
4235         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4236         * modules/sys_wait (Depends-on): Remove waitpid.
4237         (Makefile.am): Substitute GNULIB_WAITPID.
4238         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4239         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4240         signature only if the 'waitpid' module is present.
4241         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4242         * NEWS: Mention the change.
4243         * modules/grantpt (Depends-on): Add waitpid.
4244         * modules/wait-process (Depends-on): Likewise.
4245
4246 2010-09-29  Bruno Haible  <bruno@clisp.org>
4247
4248         More tests for module 'sys_wait'.
4249         * modules/sys_wait-c++-tests: New file.
4250         * tests/test-sys_wait-c++.cc: New file.
4251         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4252         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4253
4254 2010-09-29  Bruno Haible  <bruno@clisp.org>
4255
4256         New module 'waitpid'.
4257         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4258         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4259         Don't include <process.h>.
4260         (waitpid): Declare only, using modern idiom.
4261         * m4/waitpid.m4: New file.
4262         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4263         * modules/waitpid: New file.
4264         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4265         (Makefile.am): Update.
4266         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4267
4268 2010-09-28  Bruno Haible  <bruno@clisp.org>
4269
4270         poll: Assume ANSI C.
4271         * lib/poll.c (poll): Use an ANSI C declaration.
4272
4273 2010-09-28  Bruno Haible  <bruno@clisp.org>
4274
4275         poll-h: Create poll.h on all platforms.
4276         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4277         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4278         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4279         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4280         (gl_REPLACE_POLL_H): Don't set POLL_H.
4281         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4282         * modules/poll-h (Depends-on): Add include_next.
4283         (Makefile.am): Create poll.h unconditionally. Substitute also
4284         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4285
4286 2010-09-28  Bruno Haible  <bruno@clisp.org>
4287
4288         Tests for module 'poll-h'.
4289         * modules/poll-h-c++-tests: New file.
4290         * tests/test-poll-h-c++.cc: New file.
4291
4292         Tests for module 'poll-h'.
4293         * modules/poll-h-tests: New file.
4294         * tests/test-poll-h.c: New file.
4295
4296 2010-09-28  Bruno Haible  <bruno@clisp.org>
4297
4298         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4299         * modules/poll-h (Depends-on): Add 'extensions'.
4300
4301 2010-09-28  Bruno Haible  <bruno@clisp.org>
4302
4303         New module 'poll-h'.
4304         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4305         (poll): Use modern idiom.
4306         * modules/poll-h: New file.
4307         * modules/poll (Files): Remove lib/poll.in.h.
4308         (Depends-on): Add poll-h.
4309         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4310         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4311         * m4/poll_h.m4: New file.
4312         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4313         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4314         and invoke gl_REPLACE_POLL_H.
4315         * lib/poll.c: Use common idiom.
4316         * tests/test-poll.c: Likewise.
4317         * doc/posix-headers/poll.texi: Mention the poll-h module.
4318         Suggested by Eric Blake.
4319
4320 2010-09-26  Bruno Haible  <bruno@clisp.org>
4321
4322         sys_wait: Implement WSTOPSIG.
4323         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4324         Reported by Simon Josefsson.
4325
4326 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4327
4328         stdlib, sys_wait: Avoid compilation error on mingw.
4329         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4330
4331 2010-09-26  Bruno Haible  <bruno@clisp.org>
4332
4333         stdlib tests: Avoid code duplication.
4334         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4335         * modules/sys_wait-tests (Files): Likewise.
4336         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4337         * tests/test-stdlib.c: Include test-sys_wait.h.
4338         (main): Invoke test_sys_wait_macros.
4339         * tests/test-sys_wait.c: Include test-sys_wait.h.
4340         (main): Invoke test_sys_wait_macros.
4341
4342 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4343
4344         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4345         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4346         sure Windows sockets are working before calling getaddrinfo.
4347         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4348         * doc/gnulib.texi (Windows sockets): Fix typo.
4349
4350 2010-09-25  Bruno Haible  <bruno@clisp.org>
4351
4352         Tests for module 'regex-quote'.
4353         * modules/regex-quote-tests: New file.
4354         * tests/test-regex-quote.c: New file.
4355
4356         New module 'regex-quote'.
4357         * lib/regex-quote.h: New file.
4358         * lib/regex-quote.c: New file.
4359         * modules/regex-quote: New file.
4360         Suggested by Reuben Thomas <rrt@sc3d.org>.
4361
4362 2010-09-24  Bruno Haible  <bruno@clisp.org>
4363
4364         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4365         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4366
4367 2010-09-23  Bruno Haible  <bruno@clisp.org>
4368
4369         setenv: Relax license.
4370         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4371         Blake.
4372         Requested by Eric Blake.
4373
4374 2010-09-22  Bruno Haible  <bruno@clisp.org>
4375
4376         termios: Relax license.
4377         * modules/termios (License): Change to LGPLv2+.
4378         Requested by Eric Blake.
4379
4380 2010-09-22  Bruno Haible  <bruno@clisp.org>
4381
4382         threadlib: Allow the package to change the default to 'no'.
4383         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4384         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4385         Reported by Paul Eggert.
4386
4387 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4388             Bruno Haible  <bruno@clisp.org>
4389
4390         Fix endless loop in mbmemcasecoll.
4391         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4392         byte.
4393         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4394
4395 2010-09-22  Bruno Haible  <bruno@clisp.org>
4396
4397         Tests for module 'memcoll'.
4398         * modules/memcoll-tests: New file.
4399         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4400
4401         memcoll, xmemcoll: Clarify size vs. length.
4402         * modules/memcoll.c (memcoll0): Clarify specification.
4403         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4404         passed to collate_error.
4405
4406 2010-09-22  Bruno Haible  <bruno@clisp.org>
4407
4408         Tests for module 'memcasecmp'.
4409         * modules/memcasecmp-tests: New file.
4410         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4411
4412 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4413
4414         * lib/pthread.in.h: Add split double-inclusion guard, and include
4415         system <pthread.h> if there is one.  Use @@-style as in other
4416         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4417         pthread.h doesn't.
4418         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4419         (pthread_mutexattr_settype, pthread_mutex_trylock):
4420         New static inline functions, if there's no system <pthread.h>.
4421         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4422         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4423         Approximate with mutexes if the system lacks spinlocks, as in
4424         MacOS.
4425         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4426         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4427         @@-style.  Check for spinlocks separately.
4428         (gl_PTHREAD_DEFAULTS): New macro.
4429         * modules/pthread: Redo to use a more typical style for in.h files.
4430
4431 2010-09-21  Eric Blake  <eblake@redhat.com>
4432
4433         net_if: enhance tests
4434         * tests/test-net_if.c (main): Move signature checks earlier.
4435         Print failures to stderr.
4436         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4437         Document the bug that we do not yet fix.
4438
4439 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4440
4441         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4442         about gnulib, not GSS.
4443
4444 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4445
4446         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4447         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4448         for Emacs.
4449         * build-aux/pmccabe2html: Make Makefile.am example code more
4450         cut-and-paste friendly.
4451
4452 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4453
4454         * tests/test-net_if.c: New file.
4455         * modules/net_if-tests: New file.
4456
4457 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4458
4459         pthread: add pthread_spin_destroy
4460         * lib/pthread.in.h (pthread_spin_destroy): New function.
4461
4462 2010-09-19  Bruno Haible  <bruno@clisp.org>
4463
4464         gnulib-tool: Fix --help output.
4465         * gnulib-tool (func_usage): Fix help message.
4466         Reported by Reuben Thomas <rrt@sc3d.org>.
4467
4468 2010-09-18  Jim Meyering  <meyering@redhat.com>
4469
4470         maint.mk: avoid unexpanded \n in two diagnostics
4471         * top/maint.mk (sc_prohibit_always_true_header_tests):
4472         Don't use a literal \n in a halt=... assignment.  It would not be
4473         expanded, and the two \n bytes would appear in the diagnostic output
4474         rather than the desired newline.  Use halt=$$(printf ... instead.
4475         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4476
4477 2010-09-18  Bruno Haible  <bruno@clisp.org>
4478
4479         netinet_in: Doc tweak.
4480         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4481         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4482
4483 2010-09-18  Jim Meyering  <meyering@redhat.com>
4484
4485         init.sh: correct an outdated comment
4486         * tests/init.sh (create_exe_shims_):  s/function/alias/
4487
4488         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4489         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4490         a file named "*.exe" is removed between the glob expansion and the
4491         processing of that oddly named file.
4492
4493 2010-09-17  Eric Blake  <eblake@redhat.com>
4494
4495         mirbsd: add some more support
4496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4497         in BSD family.
4498         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4499         devices as OpenBSD.
4500         * m4/host-os.m4 (mirbsd): Add MirBSD.
4501
4502         tests: fix unportable assumption on sys/wait.h
4503         * tests/test-sys_wait.c (main): Relax test.
4504         * tests/test-stdlib.c (main): Likewise.
4505
4506         init.sh: accomodate directory with no .exes
4507         * tests/init.sh: Accomodate directory containing only scripts.
4508
4509         tests: avoid compiler warning
4510         * tests/test-stdlib.c (main): Use the variable.
4511
4512         fdutimens, fdutimensat: update signature, again
4513         * lib/utimens.h (gl_futimens): Delete, and move signature...
4514         (fdutimens): ...here.
4515         (fdutimensat): Rearrange signature.
4516         (lutimensat): Rename variable for clarity.
4517         * lib/fdutimensat.c (fdutimensat): Update signature.
4518         * lib/utimens.c (fdutimens): Likewise.
4519         (gl_futimens): Delete.
4520         (utimens, lutimens): Update callers.
4521         * lib/futimens.c (futimens): Likewise.
4522         * tests/test-fdutimensat.c: Likewise.
4523         * tests/test-utimens.c: Likewise.
4524         * tests/test-futimens.h: Update comment.
4525         * NEWS: Mention this.
4526         Suggested by Paul Eggert.
4527
4528 2010-09-17  Bruno Haible  <bruno@clisp.org>
4529
4530         Take over the maintenance of some older macros from Autoconf.
4531         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4532         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4533         GNU Autoconf.
4534         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4535         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4536
4537 2010-09-17  Eric Blake  <eblake@redhat.com>
4538
4539         fdutimensat: drop atflag validation
4540         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4541         with valid fd, to close a race scenario where futimens is
4542         unsupported and FILE was replaced by a symlink.
4543         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4544         accordingly.
4545         Suggested by Paul Eggert.
4546
4547 2010-09-16  Bruno Haible  <bruno@clisp.org>
4548
4549         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4550         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4551
4552 2010-09-16  Bruno Haible  <bruno@clisp.org>
4553
4554         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4555         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4556         login_tty exists.
4557         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4558
4559 2010-09-16  Bruno Haible  <bruno@clisp.org>
4560
4561         login_tty: Make the replacement code work on BSD systems.
4562         * lib/login_tty.c: Include <sys/ioctl.h>.
4563         (login_tty): Use ioctl TIOCSCTTY when available.
4564         * modules/login_tty (Depends-on): Add sys_ioctl.
4565         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4566
4567 2010-09-16  Bruno Haible  <bruno@clisp.org>
4568
4569         login_tty: Stricter unit test.
4570         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4571         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4572         and tcgetsid() after login_tty.
4573         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4574
4575 2010-09-16  Bruno Haible  <bruno@clisp.org>
4576
4577         New module 'tcgetsid'.
4578         * lib/tcgetsid.c: New file.
4579         * m4/tcgetsid.m4: New file.
4580         * modules/tcgetsid: New file.
4581         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4582         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4583         GNULIB_TCGETSID, HAVE_TCGETSID.
4584         * lib/termios.in.h: Include <sys/types.h>.
4585         (tcgetsid): New declaration.
4586         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4587         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4588         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4589         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4590
4591 2010-09-16  Bruno Haible  <bruno@clisp.org>
4592
4593         Tests for module 'termios'.
4594         * modules/termios-c++-tests: New file.
4595         * modules/termios-tests: New file.
4596         * tests/test-termios-c++.cc: New file.
4597         * tests/test-termios.c: New file.
4598
4599         New module 'termios'.
4600         * modules/termios: New file.
4601         * lib/termios.in.h: New file.
4602         * m4/termios_h.m4: New file.
4603         * doc/posix-headers/termios.texi: Mention the new module.
4604
4605 2010-09-16  Eric Blake  <eblake@redhat.com>
4606
4607         fdutimensat: add an atflag parameter
4608         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4609         * lib/utimens.h (fdutimensat): Update prototype.
4610         * tests/test-fdutimensat.c: Adjust test to match.
4611         * NEWS: Document the change.
4612         Suggested by Paul Eggert.
4613
4614 2010-09-16  Bruno Haible  <bruno@clisp.org>
4615
4616         Fix typos in comments.
4617         * lib/striconveh.h: Fix typo in comment.
4618         * lib/login_tty.c (login_tty): Likewise.
4619
4620 2010-09-15  Bruno Haible  <bruno@clisp.org>
4621
4622         stdlib: clarify MirBSD WEXITSTATUS bug
4623         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4624         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4625
4626 2010-09-15  Eric Blake  <eblake@redhat.com>
4627
4628         stdlib: work around MirBSD WEXITSTATUS bug
4629         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4630         * modules/stdlib (Depends-on): Add sys_wait.
4631         * tests/test-sys_wait.c (main): Enhance test.
4632         * tests/test-stdlib.c (main): Likewise.
4633         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4634
4635         docs: mention MacOS issue with WEXITSTATUS(constant)
4636         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4637         issue.
4638         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4639
4640         strnlen: add tests
4641         * modules/strnlen-tests: New file.
4642         * tests/test-strnlen.c: Likewise.
4643
4644 2010-09-14  Bruno Haible  <bruno@clisp.org>
4645
4646         unistr/base: Avoid link errors when module 'libunistring' is also used.
4647         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4648         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4649         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4650         Declare also when HAVE_LIBUNISTRING is set.
4651         Reported by Pádraig Brady <P@draigbrady.com>.
4652
4653 2010-09-14  Eric Blake  <eblake@redhat.com>
4654
4655         test-rawmemchr: make more robust
4656         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4657         (Depends-on, configure.ac): Add needed prerequisites to use it.
4658         * modules/memchr-tests (Files, Depends-on, configure.ac):
4659         Likewise, to avoid implicit reliance on memchr module prereqs.
4660         * tests/test-memchr.c (main): Ensure proper masking.
4661         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4662         reads.
4663
4664         memchr: detect glibc Alpha bug
4665         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4666         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4667         Alpha.
4668         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4669         * tests/test-memchr.c (main): Enhance test.
4670         Reported by Nelson H. F. Beebe.
4671
4672 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         fts, getcwd, glob: audit for dirfd returning -1
4675         * lib/fts.c (opendir): Remove #define; no longer used.
4676         (opendirat): New arg PDIR_FD.  All callers changed.
4677         (fts_build, _opendir2): Use new opendirat to avoid the need for
4678         dirfd, or for checking whether dirfd returns a negative value.
4679         Don't use opendir; always use openat followed by fdopendir.
4680         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4681         it.
4682         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4683         returns -1 here.
4684         * modules/fts (Depends-on): Remove dirfd.
4685         * modules/getcwd (Depends-on): Likewise.
4686
4687 2010-09-13  Eric Blake  <eblake@redhat.com>
4688
4689         float: fix broken MirBSD header
4690         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4691         * doc/posix-headers/float.texi (float.h): Document it.
4692
4693 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4694
4695         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4696         * lib/fts.c (opendirat): New arg extra_flags.
4697         (__opendir2): Use it to avoid following symlinks when opening
4698         a directory, if symlinks are not supposed to be followed.  See
4699         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4700
4701         fdopendir: preserve argument fd before returning
4702         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4703         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4704         (fdopendir): Use them, arranging for FD to be open to the same
4705         directory that it was when it started.  (It might be temporarily
4706         closed while fdopendir is running, so this not thread- or
4707         signal-safe.)  Be careful to do the right thing even when file
4708         descriptors are scarce and dup fails with errno == EMFILE.  See
4709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4710
4711 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4712
4713         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4714         * NEWS: Document change.
4715         * m4/regex.m4: Disable test for regoff_t size.
4716
4717 2010-09-13  Jim Meyering  <meyering@redhat.com>
4718
4719         fts: don't operate on an invalid file descriptor after failed dup
4720         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4721         negative file descriptor.
4722
4723 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4724
4725         savedir: add streamsavedir, deprecate fdsavedir
4726         * NEWS: Mention deprecation of fdsavedir.
4727         * lib/savedir.c (streamsavedir): New extern function, whose name
4728         ends in "savedir" to be consistent with the others.  This differs
4729         from savedirstream in that it doesn't close its argument.  The
4730         next version of GNU tar will use this instead of fdsavedir, to
4731         avoid some race conditions and conserve file descriptors.
4732         (savedirstream): Reimplement as a wrapper around streamsavedir.
4733         (fdsavedir): Add a comment deprecating this function.  As far as
4734         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4735         * lib/savedir.h (streamsavedir): New decl.
4736         (fdsavedir): Add a comment deprecating this.
4737
4738 2010-09-10  Bruno Haible  <bruno@clisp.org>
4739
4740         langinfo: Fix last commit.
4741         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4742         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4744
4745 2010-09-10  Bruno Haible  <bruno@clisp.org>
4746
4747         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4748         * lib/progreloc.c (O_EXEC): Define fallback.
4749
4750 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4751
4752         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4753         * NEWS: Document recent changes to fcntl-h.
4754         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4755         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4756         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4757         Similarly for O_SEARCH; this last was already true, but not documented.
4758         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4759         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4760         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4761         Likewise.
4762         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4763         is zero, not whether it is defined.
4764         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4765         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4766         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4767
4768 2010-09-10  Bruno Haible  <bruno@clisp.org>
4769
4770         langinfo, nl_langinfo: Fix for IRIX 5.3.
4771         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4772         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4773         HAVE_LANGINFO_YESEXPR.
4774         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4775         HAVE_LANGINFO_YESEXPR.
4776         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4777         HAVE_LANGINFO_T_FMT_AMPM is 0.
4778         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4779         HAVE_LANGINFO_YESEXPR is 0.
4780         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4781         NOEXPR.
4782         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4783         * doc/posix-functions/nl_langinfo.texi: Likewise.
4784         Reported by Eric Blake.
4785
4786 2010-09-10  Bruno Haible  <bruno@clisp.org>
4787
4788         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4789         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4790         on FreeBSD 8.0 and OpenBSD 4.6.
4791         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4792         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4793         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4794         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4795         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4796         ac_includes_default.
4797         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4798
4799 2010-09-09  Eric Blake  <eblake@redhat.com>
4800
4801         strsignal: work around NetBSD bug
4802         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4803         * lib/string.in.h (includes): Likewise.
4804         * doc/posix-functions/strsignal.texi (strsignal): Document the
4805         bug.
4806         Reported by Nelson H. F. Beebe.
4807
4808         gnulib-tool: work with NetBSD /bin/sh
4809         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4810         (func_get_description, func_get_comment, func_get_status)
4811         (func_get_notice, func_get_applicability, func_get_filelist)
4812         (func_get_dependencies, func_get_autoconf_early_snippet)
4813         (func_get_autoconf_snippet, func_get_automake_snippet)
4814         (func_get_include_directive, func_get_link_directive)
4815         (func_get_license, func_get_maintainer, func_import): Avoid
4816         shell syntax errors from parsing syntax extensions.
4817
4818 2010-09-09  Bruno Haible  <bruno@clisp.org>
4819
4820         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4821         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4822         a reliable way to determine whether the 'alias' command works.
4823
4824 2010-09-08  Jim Meyering  <meyering@redhat.com>
4825
4826         init.sh: penalize a set-x-impaired shell; don't disqualify it
4827         * tests/init.sh: Too many shells corrupt application stderr when
4828         you set -x, so we can't afford to disqualify them, since at least
4829         on Irix-6.5, that would disqualify all bourne shells.
4830         Instead, use a two-pass approach.
4831         On the first pass, try to find a shell that meets the stricter
4832         condition that set -x does not corrupt stderr.
4833         If no shell meets the stricter condition, retest each candidate
4834         shell, but without that extra condition.  Finally, when
4835         VERBOSE=yes is requested and set -x might cause trouble, simply
4836         issue a warning and refrain from enabling debug output.
4837
4838 2010-09-08  Eric Blake  <eblake@redhat.com>
4839
4840         unsetenv: fix OpenBSD bug
4841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4842         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4843         documentation.
4844         Reported by Jim Meyering.
4845
4846         strtod: work around IRIX 6.5 bug
4847         * lib/strtod.c (strtod): Reparse number on shorter string if
4848         exponent parse was invalid.
4849         * tests/test-strtod.c (main): Add check for "0x1p 2".
4850         Reported by Tom G. Christensen.
4851
4852         getopt: optimize previous patch
4853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4854         empty variable.  Speed up awk script.
4855         Reported by Paolo Bonzini.
4856
4857 2010-09-08  Jim Meyering  <meyering@redhat.com>
4858
4859         test.sh: disqualify shells for which set -x corrupts stderr
4860         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4861         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4862         appear in stderr output.  For example, this command:
4863             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4864         prints "P=1" on those two systems:
4865
4866 2010-09-08  Bruno Haible  <bruno@clisp.org>
4867
4868         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4869         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4870         commands, because some shells ignore redirections when there is an
4871         error in the command lookup.
4872         Reported by Eric Blake.
4873
4874 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4875
4876         * lib/regex.h: Fix a mention of `regex_compile' (should be
4877         `re_compile_pattern').
4878         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4879         (re_set_registers): Correct name of parameter in comment.
4880
4881         * doc/regex.texi: Add documentation for missing syntax flags.
4882         Remove commented-out documentation of defunct syntax option
4883         RE_NO_EMPTY_ALTS.
4884         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4885         Add documentation of re_set_registers.
4886         Document trick to re-use a pattern buffer by setting fastmap manually.
4887         Update documentation of struct re_pattern_buffer per public members.
4888         Uncomment documentation of equivalence class operators and
4889         collating symbol operators, since they are now implemented,
4890         Explain leftmost-longest matching in relation to alternatives.
4891         Tidy documentation of substring matching.
4892         Remove POSIX documentation, which is done better in
4893         glibc, and refer the reader there. Keep BSD API documentation, as
4894         that is not readily available elsewhere.
4895
4896 2010-09-07  Eric Blake  <eblake@redhat.com>
4897
4898         getopt: handle POSIXLY_CORRECT set but not exported
4899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4900         export state of POSIXLY_CORRECT, due to bash set -o posix.
4901         Reported by Dustin J. Mitchell.
4902
4903 2010-09-05  Bruno Haible  <bruno@clisp.org>
4904
4905         gnulib-tool: Highlight the changed options.
4906         * gnulib-tool (func_usage): Display the --import, --add-import,
4907         --remove-import explanations in bold font.
4908
4909 2010-09-06  Karl Berry  <karl@gnu.org>
4910
4911         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4912
4913 2010-09-05  Bruno Haible  <bruno@clisp.org>
4914
4915         uniwidth/width: Update comment.
4916         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4917         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4918
4919 2010-09-05  Bruno Haible  <bruno@clisp.org>
4920
4921         isinf, isnan: Relax license.
4922         * modules/isinf (License): Change from GPL to LGPL, with consent from
4923         Ben Pfaff.
4924         * modules/isnan (License): Likewise.
4925         Requested by Ludovic Courtès.
4926
4927 2010-09-04  Bruno Haible  <bruno@clisp.org>
4928
4929         gnulib-tool: Help migration from --import to --add-import or --update.
4930         * gnulib-tool: Emit a verbose error message when --import is used
4931         without any module name.
4932
4933 2010-09-04  Bruno Haible  <bruno@clisp.org>
4934
4935         Update doc about gnulib-tool.
4936         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4937         'gnulib-tool --update' in more detail.
4938         Reported by Eric Blake.
4939
4940 2010-09-04  Bruno Haible  <bruno@clisp.org>
4941
4942         gnulib-tool: Change --import. New options --add/remove-import.
4943         * gnulib-tool: New options --add-import, --remove-import.
4944         (func_usage): Document them.
4945         (have_associative): Define always.
4946         (func_import): In import mode, don't merge the specified settings with
4947         the cached settings. Implement remove-import mode.
4948         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4949         Explain when to use them versus --import.
4950         (Simple update): Use --add-import instead of --import.
4951         * NEWS: Mention the change.
4952
4953 2010-09-04  Bruno Haible  <bruno@clisp.org>
4954
4955         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4956         separate gnulib.mk.
4957
4958 2010-09-04  Bruno Haible  <bruno@clisp.org>
4959
4960         gnulib-tool: Don't talk about CVS any more.
4961         * gnulib-tool (func_usage, func_import): Write "version control"
4962         instead of CVS.
4963
4964 2010-09-04  Jim Meyering  <meyering@redhat.com>
4965
4966         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4967         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4968         false positives (whose names may be ill-chosen) when searching
4969         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4970         would cause a false-positive.
4971
4972         avoid coreutils "make distcheck" failure
4973         Coreutils tests with an absolute build directory name that contains
4974         a space.  Not quoting this directory name caused a failure.
4975         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4976         * tests/test-vc-list-files-cvs.sh: Likewise.
4977
4978 2010-09-04  Bruno Haible  <bruno@clisp.org>
4979
4980         gnulib-tool: Avoid error when run in a package without Makefile.am.
4981         * gnulib-tool: When collecting the m4dirs in a package that does not
4982         have a Makefile.am, eliminate those directories that contain no
4983         gnulib-cache.m4. Fix expression that counts these directories.
4984
4985 2010-09-04  Bruno Haible  <bruno@clisp.org>
4986
4987         update-copyright test: Improve output when perl is missing or too old.
4988         * tests/test-update-copyright.sh: Move test of Perl version down after
4989         the test whether Perl exists. Provide an explanation relating Perl's
4990         error message to Automake's SKIP: message.
4991
4992 2010-09-04  Bruno Haible  <bruno@clisp.org>
4993
4994         Don't augment PATH in TESTS_ENVIRONMENT.
4995         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4996         set abs_aux_dir instead of augmenting PATH.
4997         * modules/vc-list-files-tests (Makefile.am): Likewise.
4998         * tests/test-update-copyright.sh: Augment PATH here.
4999         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5000         path_prepend_.
5001         * tests/test-vc-list-files-git.sh: Likewise.
5002
5003 2010-09-04  Jim Meyering  <meyering@redhat.com>
5004
5005         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5006         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5007
5008 2010-09-04  Bruno Haible  <bruno@clisp.org>
5009
5010         strdup: Fix compilation error in C++ mode.
5011         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5012         the macro.
5013
5014 2010-09-04  Bruno Haible  <bruno@clisp.org>
5015
5016         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5017         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5018         macro into a function.
5019         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5020
5021 2010-09-04  Bruno Haible  <bruno@clisp.org>
5022
5023         Set PATH_SEPARATOR the same way autoconf does.
5024         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5025         the value of PATH_SEPARATOR the same way autoconf-generated configure
5026         scripts do.
5027         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5028         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5029
5030 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5031
5032         Set PATH_SEPARATOR the same way autoconf does.
5033         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5034         the same way autoconf-generated configure scripts do.
5035         * posix-modules: Likewise.
5036
5037 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5038
5039         hash: fix safe_hasher const typo
5040         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5041         const; otherwise, there is a type error later.
5042
5043 2010-09-02  Jim Meyering  <meyering@redhat.com>
5044
5045         test-update-copyright.sh: require perl 5.8.0
5046         * tests/test-update-copyright.sh: Require 5.8.0,
5047         which Tom G. Christensen has confirmed is adequate,
5048         while 5.6.1 is not.
5049
5050 2010-09-02  Eric Blake  <eblake@redhat.com>
5051
5052         tests: init.sh improvements for re-exec'ing with zsh
5053         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5054         -vx through shell re-exec.
5055         Reported by Tom G. Christensen.
5056
5057         wctype: fix typo in previous commit
5058         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5059         Reported by Ludovic Courtès.
5060
5061 2010-09-02  Jim Meyering  <meyering@redhat.com>
5062
5063         test-update-copyright.sh: skip test if Perl is too old
5064         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5065         Reported by Tom G. Christensen.
5066
5067 2010-09-02  Bruno Haible  <bruno@clisp.org>
5068
5069         wctype: Avoid compilation error on IRIX 6.5.30.
5070         * lib/wctype.in.h (iswblank): Declare with a replacement if
5071         REPLACE_ISWBLANK is set.
5072         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5073         declared. Set REPLACE_ISWBLANK.
5074         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5075         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5076         * doc/posix-headers/wctype.texi: Likewise.
5077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5078
5079 2010-09-01  Bruno Haible  <bruno@clisp.org>
5080
5081         New module 'socketlib'.
5082         * modules/socketlib: New file.
5083         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5084         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5085         * modules/sockets (Depends-on): Add socketlib.
5086         Suggested by Sam Steingold <sds@gnu.org>.
5087
5088 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5089
5090         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5091
5092         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5093         when one needs search access to a directory but not read access.
5094         On systems where it is available, it works in some cases where
5095         O_RDONLY does not, namely on directories that are searchable but
5096         not readable, and which need only to be searchable.  If O_SEARCH
5097         is not available, fall back to the traditional method of using
5098         O_RDONLY.
5099
5100         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5101         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5102         when opening a directory that needs only to be searchable.
5103         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5104         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5105         * lib/openat-proc.c (openat_proc_name): Likewise.
5106         * lib/openat.c (openat_needs_fchdir): Likewise.
5107         * lib/save-cwd.c (save_cwd): Likewise.
5108         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5109
5110 2010-08-28  Bruno Haible  <bruno@clisp.org>
5111
5112         New module 'host-cpu-c-abi'.
5113         * modules/host-cpu-c-abi: New file.
5114         * m4/host-cpu-c-abi.m4: New file, based on part of
5115         clisp/src/m4/general.m4.
5116         Requested by Sam Steingold <sds@gnu.org>.
5117
5118 2010-08-31  Eric Blake  <eblake@redhat.com>
5119         and Jim Meyering  <meyering@redhat.com>
5120
5121         hash: factor, and guard against misbehaving hasher function
5122         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5123         of table->hasher's return value.  Also protect against a hash value
5124         so large that adding it to table->bucket results in a NULL pointer.
5125         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5126         Use it in place of open-coded check-and-abort.
5127
5128 2010-08-30  Bruno Haible  <bruno@clisp.org>
5129
5130         hash: silence spurious clang warning
5131         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5132         Reported by Eric Blake.
5133
5134 2010-08-30  Eric Blake  <eblake@redhat.com>
5135
5136         strstr, memmem, strcasestr: avoid leaked shell message
5137         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5138         FreeBSD.
5139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5141
5142         tests: silence clang warning
5143         * tests/test-malloca.c (do_allocation): Avoid dead store.
5144
5145 2010-08-29  Bruno Haible  <bruno@clisp.org>
5146
5147         gettext: Fix recent mistake.
5148         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5149
5150 2010-08-29  Bruno Haible  <bruno@clisp.org>
5151
5152         selinux-h: Offer a --without-selinux option.
5153         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5154         --without-selinux was specified, skip all tests and define
5155         HAVE_SELINUX_SELINUX_H to 0.
5156         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5157         set LIB_SELINUX to empty.
5158         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5159         gl_LIBSELINUX. If --without-selinux was specified, replace
5160         selinux/context.h.
5161         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5162
5163 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5164             Bruno Haible  <bruno@clisp.org>
5165
5166         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5167         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5168         of HAVE_REALLOC.
5169         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5170         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5171         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5172         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5173
5174 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5175             Bruno Haible  <bruno@clisp.org>
5176
5177         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5178         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5179         HAVE_CALLOC.
5180         * lib/xmalloc.c: Update accordingly.
5181         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5182         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5183         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5184
5185 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5186             Bruno Haible  <bruno@clisp.org>
5187
5188         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5189         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5190         HAVE_MALLOC.
5191         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5192         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5193         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5194
5195 2010-08-29  Bruno Haible  <bruno@clisp.org>
5196
5197         Update modules list.
5198         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5199         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5200         (String handling <string.h>): Add astrxfrm.
5201         (File system functions): Add readlinkat.
5202
5203 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5204
5205         Tests for module 'realloc-gnu'.
5206         * modules/realloc-gnu-tests: New file.
5207         * tests/test-realloc-gnu.c: New file.
5208
5209         Tests for module 'calloc-gnu'.
5210         * modules/calloc-gnu-tests: New file.
5211         * tests/test-calloc-gnu.c: New file.
5212
5213         Tests for module 'malloc-gnu'.
5214         * modules/malloc-gnu-tests: New file.
5215         * tests/test-malloc-gnu.c: New file.
5216
5217 2010-08-28  Bruno Haible  <bruno@clisp.org>
5218
5219         Rename module 'realloc' -> 'realloc-gnu'.
5220         * modules/realloc-gnu: New file, copied from modules/realloc.
5221         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5222         obsolete.
5223         * modules/mgetgroups (Depends-on): Update.
5224         * doc/posix-functions/realloc.texi: Update.
5225         * NEWS: Mention the change.
5226
5227         Rename module 'calloc' -> 'calloc-gnu'.
5228         * modules/calloc-gnu: New file, copied from modules/calloc.
5229         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5230         obsolete.
5231         * doc/posix-functions/calloc.texi: Update.
5232         * NEWS: Mention the change.
5233
5234         Rename module 'malloc' -> 'malloc-gnu'.
5235         * modules/malloc-gnu: New file, copied from modules/malloc.
5236         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5237         obsolete.
5238         * modules/argp (Depends-on): Update.
5239         * modules/regex (Depends-on): Update.
5240         * doc/posix-functions/malloc.texi: Update.
5241         * NEWS: Mention the change.
5242
5243 2010-08-28  Eric Blake  <eblake@redhat.com>
5244
5245         pread, pwrite: add missing dependency
5246         * modules/pread (Depends-on): Add extensions.
5247         * modules/pwrite (Depends-on): Likewise.
5248
5249 2010-08-28  Bruno Haible  <bruno@clisp.org>
5250
5251         unistr/u*-strchr: Fix tests dependencies.
5252         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5253         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5254         Reported by Ian Beckwith <ianb@erislabs.net>.
5255
5256 2010-08-28  Bruno Haible  <bruno@clisp.org>
5257
5258         read-file: Don't occupy too much unused memory.
5259         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5260
5261 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5262             Eric Blake  <eblake@redhat.com>
5263             Bruno Haible  <bruno@clisp.org>
5264
5265         read-file: Avoid memory reallocations with regular files.
5266         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5267         (fread_file): With regular files, use the remaining length as the
5268         initial buffer size.  Check against overflow.
5269         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5270         sys_stat.
5271
5272 2010-08-28  Bruno Haible  <bruno@clisp.org>
5273
5274         ftello: Relax license.
5275         * modules/ftello (License): Relax to LGPLv2+.
5276         Reported by Eric Blake.
5277
5278 2010-08-28  Bruno Haible  <bruno@clisp.org>
5279
5280         Avoid relocwrapper link errors due to gnulib replacement functions.
5281         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5282         function.
5283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5284
5285 2010-08-28  Bruno Haible  <bruno@clisp.org>
5286
5287         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5288         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5289         defined.
5290         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5291         Suggested by Eric Blake.
5292
5293 2010-08-28  Bruno Haible  <bruno@clisp.org>
5294
5295         sys_socket, netdb: Ensure socklen_t gets defined.
5296         * modules/sys_socket (Depends-on): Add socklen.
5297         * modules/netdb (Depends-on): Likewise.
5298         * modules/getaddrinfo (Depends-on): Remove socklen.
5299         * modules/getsockopt (Depends-on): Likewise.
5300         * modules/setsockopt (Depends-on): Likewise.
5301         * tests/test-sys_socket.c: Check that socklen_t is defined.
5302         * tests/test-netdb.c: Likewise.
5303         * m4/socklen.m4: Update comments.
5304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5305
5306 2010-08-27  Eric Blake  <eblake@redhat.com>
5307
5308         login_tty: add missing dependency
5309         * modules/login_tty (Depends-on): Add pty.
5310
5311 2010-08-26  Eric Blake  <eblake@redhat.com>
5312
5313         lib-symbol-versions: fix m4 quoting
5314         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5315         format for AC_LINK_IFELSE.
5316
5317         glob: fix compile test
5318         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5319
5320         btowc: fix missing file
5321         * modules/btowc (Files): Also ship locale-fr.m4.
5322
5323         lseek: fix link test
5324         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5325         AC_LINK_IFELSE.
5326
5327         include_next: silence autoconf 2.68 warning
5328         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5329         AC_COMPILE_IFELSE as special.
5330         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5331         autoconf < 2.68.
5332
5333         acl: fix compilation test
5334         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5335         AC_COMPILE_IFELSE.
5336
5337 2010-08-26  Bruno Haible  <bruno@clisp.org>
5338
5339         Modernize AC_TRY_RUN invocations.
5340         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5341         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5342         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5343         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5344         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5345         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5348         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5349         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5350         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5351         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5352         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5353         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5355         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5356         gl_MBRLEN_NUL_RETVAL): Likewise.
5357         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5358         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5359         Likewise.
5360         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5361         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5362         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5363         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5364         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5365         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5366         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5367         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5368         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5369         Likewise.
5370         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5371         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5372         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5373         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5374         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5375         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5376         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5377         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5378         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5380
5381 2010-08-26  Bruno Haible  <bruno@clisp.org>
5382
5383         Modernize AC_TRY_LINK invocations.
5384         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5385         AC_TRY_LINK.
5386         * m4/argp.m4 (gl_ARGP): Likewise.
5387         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5388         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5389         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5390         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5391         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5392         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5393         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5394         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5395         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5396         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5397         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5398         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5399         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5400         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5401         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5402         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5403         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5404         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5405         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5406         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5407         Likewise.
5408         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5409         Likewise.
5410         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5411         Likewise.
5412         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5414         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5415         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5416         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5417         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5418         * m4/servent.m4 (gl_SERVENT): Likewise.
5419         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5420         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5421         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5422         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5423         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5424         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5425         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5427         * modules/tsearch-tests (configure.ac): Likewise.
5428
5429 2010-08-26  Bruno Haible  <bruno@clisp.org>
5430
5431         Modernize AC_TRY_COMPILE invocations.
5432         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5433         AC_TRY_COMPILE.
5434         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5435         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5436         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5437         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5438         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5439         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5440         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5441         * m4/lock.m4 (gl_LOCK): Likewise.
5442         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5443         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5444         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5445         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5446         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5447         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5448         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5449         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5450         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5451         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5452         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5453         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5454         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5455         extraneous semicolon.
5456
5457 2010-08-26  Jim Meyering  <meyering@redhat.com>
5458
5459         stat-time: relax license LGPL
5460         * modules/stat-time (License): Change from GPL to LGPL,
5461         with consent from all contributors, for use in libguile.
5462         Requested by Ludovic Courtès.
5463
5464 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5465
5466         poll: return immediately on POLLHUP.
5467         * lib/poll.c (poll): Always set timeout before wait_timeout is
5468         computed.
5469
5470 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5471
5472         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5473         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5474         rmdir ("dir/.//"), unlinkat.
5475
5476 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         stdbool: avoid spurious failure with modern xlc
5479         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5480
5481 2010-08-24  Bruno Haible  <bruno@clisp.org>
5482
5483         getloadavg: simplify code
5484         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5485         gl_have_func. Update comments.
5486
5487 2010-08-24  Eric Blake  <eblake@redhat.com>
5488
5489         getloadavg: don't define SVR4 on cygwin
5490         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5491         only define SVR4 when -lkvm is required.
5492         Reported by Yaakov Selkowitz.
5493
5494 2010-08-24  Bruno Haible  <bruno@clisp.org>
5495
5496         priv-set: fix comment
5497         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5498
5499 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5500
5501         priv-set: fix comments
5502         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5503         to match code, as suggested by David Bartley in:
5504         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5505
5506 2010-08-23  Eric Blake  <eblake@redhat.com>
5507
5508         stdbool: avoid rejecting clang
5509         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5510         * tests/test-stdbool.c: Enable more tests if using the system
5511         <stdbool.h> instead of the gnulib replacement.
5512         (main): Move xlc bug test to a runtime test for all compilers.
5513         Reported by Anders Kaseorg.
5514
5515         argz: fix shell quoting issue
5516         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5517         Reported by Charles Wilson.
5518
5519 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5520             Erik Faye-Lund <kusmabite@gmail.com>
5521
5522         poll, select: handle ERROR_BROKEN_PIPE.
5523         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5524         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5525         * lib/select.c (win32_compute_revents): Do not mark a pipe
5526         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5527
5528 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5529
5530         fts: allow compilation with C++
5531         * lib/fts_.h: Specify extern "C" linkage with C++.
5532
5533 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5534
5535         Fix gnulib-tool sed script de-commentation for AIX sed.
5536         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5537         sed.
5538
5539 2010-08-17  Eric Blake  <eblake@redhat.com>
5540
5541         test-stddef: test for (some) offsetof bugs
5542         * tests/test-stddef.c: Enhance test to ensure correct type of
5543         offsetof.
5544         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5545         that we are not fixing at this time.
5546
5547 2010-08-15  Bruno Haible  <bruno@clisp.org>
5548
5549         stpncpy: Allow stpncpy to be defined as a macro.
5550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5551         if it's already correctly declared.
5552         * lib/string.in.h (stpncpy): Undefine before redefining.
5553         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5554
5555 2010-08-14  Bruno Haible  <bruno@clisp.org>
5556
5557         Rename module 'memxfrm' to 'amemxfrm'.
5558         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5559         (amemxfrm): Renamed from memxfrm.
5560         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5561         (amemxfrm): Renamed from memxfrm.
5562         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5563         * NEWS: Mention the change.
5564         * MODULES.html.sh (String handling <string.h>): Update.
5565         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5566         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5567         * lib/unicase/u16-casexfrm.c: Likewise.
5568         * lib/unicase/u32-casexfrm.c: Likewise.
5569         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5570         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5571         * lib/uninorm/u16-normxfrm.c: Likewise.
5572         * lib/uninorm/u32-normxfrm.c: Likewise.
5573         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5574         memxfrm.
5575         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5576         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5577         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5578         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5579         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5580         Suggested by Paul Eggert.
5581
5582 2010-08-14  Bruno Haible  <bruno@clisp.org>
5583
5584         Tests for module 'astrxfrm'.
5585         * modules/astrxfrm-tests: New file.
5586         * tests/test-astrxfrm.c: New file.
5587
5588         New module 'astrxfrm'.
5589         * lib/astrxfrm.h: New file.
5590         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5591         * modules/astrxfrm: New file.
5592
5593 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5594
5595         regex: Tweak doc.
5596         * doc/regex.texi (Overview): Don't mention regex.c.
5597         (GNU Regular Expression Compiling): Likewise.
5598         (Match-end-of-line Operator): Mention 'not_eol'.
5599
5600 2010-08-14  Brian Gough  <bjg@gnu.org>
5601             Bruno Haible  <bruno@clisp.org>
5602
5603         git-merge-changelog: add doc relating to use with bzr and hg.
5604         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5605
5606 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5607
5608         pthread: fix pthread.h creation for srcdir != builddir
5609         * modules/pthread (Makefile.am): Fix the rule to work also in a
5610         non-srcdir build.
5611
5612 2010-08-13  Karl Berry  <karl@gnu.org>
5613
5614         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5615         * doc/posix-*/*: force line break before @url of POSIX
5616         specifications.
5617         Suggested by Werner Lemberg.
5618
5619 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5620
5621         strtod: fix const diagnostic
5622         * lib/strtod.c (strtod): Don't assign const char * to char *,
5623         as this elicits a warning from GCC when warnings are enabled.
5624
5625 2010-08-10  Pádraig Brady <P@draigbrady.com>
5626         and Eric Blake  <eblake@redhat.com>
5627
5628         copy-acl: ignore ENOTSUP on HP-UX
5629         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5630         so that it is available for HP-UX.
5631         * lib/copy-acl.c (qcopy_acl): Use it.
5632         Reported by Patrick M. Callahan.
5633
5634 2010-08-10  Eric Blake  <eblake@redhat.com>
5635
5636         open, chown: relax license
5637         * modules/open (License): Change to LGPLv2+, with consent by all
5638         authors, for use in augeas.
5639         * modules/chown (License): Likewise.
5640         * modules/lchown (Likewise): Likewise.
5641         Requested by Adam Stokes.
5642
5643 2010-08-09  Karl Berry  <karl@gnu.org>
5644
5645         * build-aux/ar-lib: new file, import from Automake.
5646         * config/srclist.txt: autocheck for updates.
5647
5648 2010-08-09  Eric Blake  <eblake@redhat.com>
5649
5650         readlinkat: adjust client modules
5651         * modules/areadlinkat (Depends-on): Use readlinkat, not
5652         symlinkat.
5653         * modules/areadlinkat-with-size (Depends-on): Likewise.
5654
5655         mknod: be more vocal about danger of running tests as root
5656         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5657         root, since that is just asking for problems.
5658         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5659
5660         readlinkat: split into its own module
5661         * modules/symlinkat: Split readlinkat...
5662         * modules/readlinkat: ...into separate module.
5663         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5664         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5665         * lib/symlinkat.c (readlinkat): Move...
5666         * lib/readlinkat.c: ...into new file.
5667         * modules/symlinkat-tests: Split readlinkat test...
5668         * modules/readlinkat-tests: ...into separate module.
5669         * tests/test-symlinkat.c: Split...
5670         * tests/test-readlinkat.c: ...into new file.
5671         * NEWS: Document the split.
5672         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5673         * lib/unistd.in.h (readlinkat): Likewise.
5674         Suggested by Bruno Haible.
5675
5676 2010-08-08  Bruno Haible  <bruno@clisp.org>
5677
5678         memxfrm: Speed up.
5679         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5680         that usually only one call to strxfrm is necessary for each string
5681         part.
5682         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5683
5684 2010-08-07  Karl Berry  <karl@gnu.org>
5685
5686         * doc/posix-headers/limits.texi,
5687         * doc/posix-functions/malloc.texi,
5688         * doc/posix-functions/strsignal.texi: missing @item.
5689         * doc/ld-version-script.texi: spurious leading i.
5690         * doc/regex.texi (Interval Operators): no commas inside @var.
5691
5692 2010-08-01  Bruno Haible  <bruno@clisp.org>
5693
5694         Integrate the regex documentation.
5695         * doc/gnulib.texi: Define 'cn' index.
5696         (Regular expressions): New a chapter that includes regex.texi and
5697         regexprops-generic.texi.
5698         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5699         syntax.
5700
5701         Whitespace cleanup.
5702         * doc/regex.texi: Remove trailing spaces.
5703
5704         Add regex documentation.
5705         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5706         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5707         Written by Kathy A. Hargreaves and Karl Berry.
5708
5709 2010-08-01  Bruno Haible  <bruno@clisp.org>
5710
5711         link: Update documentation.
5712         * doc/posix-functions/link.texi: Update regarding Solaris.
5713
5714 2010-07-31  Bruno Haible  <bruno@clisp.org>
5715
5716         Update modules list.
5717         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5718         (String handling <string.h>): Add memcmp2, memxfrm.
5719         (Container data structures): Add xlist, xsublist, xoset.
5720         (Core language properties): Add alignof, unused-parameter.
5721         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5722         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5723         (Unibyte characters <ctype.h>): New section.
5724         (String handling <string.h>): New section.
5725         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5726         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5727         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5728         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5729         tan, tanh, tanl, y0, y1, yn.
5730         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5731         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5732         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5733         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5734         unlockpt, vdprintf, vdprintf-posix.
5735         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5736         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5737         xconcat-filename.
5738         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5739         getdtablesize, pipe2, pipe2-safer.
5740         (Security): New section.
5741         (Networking functions): Add accept4.
5742         (Signal handling): Add sigpipe.
5743         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5744         mbmemcasecoll.
5745         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5746         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5747         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5748         pipe-filter-ii.
5749         (Misc): Add argp-version-etc, login_tty, parse-duration.
5750
5751 2010-07-31  Bruno Haible  <bruno@clisp.org>
5752
5753         Improve doc in MODULES.html.
5754         * modules/linkat (Description): Add the word "function".
5755         * modules/mkfifo (Description): Likewise.
5756         * modules/mknod (Description): Likewise.
5757         * modules/remove (Description): Likewise.
5758         * modules/renameat (Description): Likewise.
5759         * modules/stat (Description): Likewise.
5760         * modules/symlink (Description): Likewise.
5761         * modules/unlink (Description): Likewise.
5762
5763 2010-07-31  Bruno Haible  <bruno@clisp.org>
5764
5765         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5766         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5767         option --enable/disable-c++ instead of --enable/disable-cxx.
5768         * NEWS: Mention the change.
5769
5770 2010-07-31  Bruno Haible  <bruno@clisp.org>
5771
5772         readlink, areadlink: Relax test a bit.
5773         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5774         alternative to ENOTDIR.
5775         * tests/test-areadlink.h (test_areadlink): Likewise.
5776         Reported by Rainer Tammer.
5777
5778 2010-07-31  Bruno Haible  <bruno@clisp.org>
5779
5780         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5781         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5782         character, perform the search using U_STRCHR.
5783         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5784         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5785         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5786         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5787         Suggested by Paolo Bonzini.
5788
5789 2010-07-31  Bruno Haible  <bruno@clisp.org>
5790
5791         unistr/u*-strstr: Fix dependencies.
5792         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5793         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5794         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5795
5796 2010-07-31  Bruno Haible  <bruno@clisp.org>
5797
5798         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5799         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5800         the beginning of the loop.
5801         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5802         cases in 'switch' statement.
5803
5804         unistr/u8-strchr: Fix several bugs.
5805         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5806         the string. When not found, return NULL, not a pointer near the end.
5807
5808         More tests for unistr/u8-strchr.
5809         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5810         that the function does not read past the first occurrence of the byte
5811         being searched.
5812         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5813         * tests/unistr/test-u16-strchr.c (main): New function.
5814         * tests/unistr/test-u32-strchr.c (main): New function.
5815
5816 2010-07-31  Bruno Haible  <bruno@clisp.org>
5817
5818         posix-modules: Ignore backup files of documentation files.
5819         * posix-modules: grep only through files named *.texi.
5820
5821 2010-07-31  Bruno Haible  <bruno@clisp.org>
5822
5823         symlinkat: Fix documentation.
5824         * doc/posix-functions/readlinkat.texi: Fix module name.
5825
5826 2010-07-31  Bruno Haible  <bruno@clisp.org>
5827
5828         fchownat: Replace also when chown has the trailing slash bug.
5829         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5830         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5831         introduced on 2010-04-10.
5832         Reported by Rainer Tammer.
5833
5834 2010-07-31  Bruno Haible  <bruno@clisp.org>
5835
5836         linkat: Work around AIX 7.1 bug.
5837         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5838         whether linkat handles trailing slash correctly. If not, replace linkat
5839         and define LINKAT_TRAILING_SLASH_BUG.
5840         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5841         check whether (fd1,file1) points to a directory if file1 or file2 ends
5842         in a slash. Code taken from lib/link.c.
5843         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5844         Reported by Rainer Tammer.
5845
5846 2010-07-31  Bruno Haible  <bruno@clisp.org>
5847
5848         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5849         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5850         This disables an xlc optimization that was causing wrong test results.
5851         Reported by Rainer Tammer.
5852
5853 2010-07-31  Bruno Haible  <bruno@clisp.org>
5854
5855         iconv: Work around AIX 6.1..7.1 bug.
5856         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5857         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5858         cross-compiling, guess no on all versions of AIX.
5859         Reported by Rainer Tammer.
5860
5861 2010-07-31  Bruno Haible  <bruno@clisp.org>
5862
5863         readlink: Relax test a bit.
5864         * tests/test-readlink.h (test_readlink): Allow different errno value
5865         when readlink is called with a file name that ends in / and refers to
5866         a file.
5867         Suggested by Eric Blake.
5868         Reported by Rainer Tammer.
5869
5870 2010-07-31  Bruno Haible  <bruno@clisp.org>
5871
5872         copysign: Does not require -lm on glibc systems.
5873         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5874         gl_COMMON_DOUBLE_MATHFUNC.
5875         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5876
5877 2010-07-31  Bruno Haible  <bruno@clisp.org>
5878
5879         duplocale: Work around AIX 7.1 bug.
5880         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5881         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5882         * lib/duplocale.c (rpl_duplocale): Update comment.
5883         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5884         Reported by Rainer Tammer.
5885
5886 2010-07-30  Bruno Haible  <bruno@clisp.org>
5887
5888         dirfd: Avoid link error on AIX 7.1.
5889         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5890         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5891         exist, set REPLACE_DIRFD.
5892         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5893         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5894         * doc/posix-functions/dirfd.texi: Update.
5895         Reported by Rainer Tammer.
5896
5897 2010-07-30  Eric Blake  <eblake@redhat.com>
5898
5899         strtod: next round of AIX fixes
5900         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5901         exponent.
5902         * tests/test-strtod.c (main): Enhance tests.
5903         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5904         Reported by Rainer Tammer.
5905
5906         futimens: fix configure check
5907         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5908         Reported by Bruno Haible.
5909
5910 2010-07-30  Bruno Haible  <bruno@clisp.org>
5911
5912         getline: Update regarding AIX.
5913         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5914         Reported by Rainer Tammer.
5915
5916 2010-07-30  Bruno Haible  <bruno@clisp.org>
5917
5918         wcwidth: Drop replacement on AIX 7.
5919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5920         AIX 7.
5921         Reported by Rainer Tammer.
5922
5923 2010-07-30  Bruno Haible  <bruno@clisp.org>
5924
5925         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5926         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5927         a 'char *'.
5928         Reported by Rainer Tammer.
5929
5930 2010-07-30  Bruno Haible  <bruno@clisp.org>
5931
5932         unlink: Update regarding AIX.
5933         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5934         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5935         Reported by Rainer Tammer.
5936
5937 2010-07-30  Bruno Haible  <bruno@clisp.org>
5938
5939         symlink: Update regarding AIX.
5940         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5941         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5942         Reported by Rainer Tammer.
5943
5944 2010-07-30  Bruno Haible  <bruno@clisp.org>
5945
5946         strndup: Update regarding AIX.
5947         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5948         AIX 7.
5949         Reported by Rainer Tammer.
5950
5951 2010-07-30  Bruno Haible  <bruno@clisp.org>
5952
5953         stat: Update regarding AIX.
5954         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5955         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5956         Reported by Rainer Tammer.
5957
5958 2010-07-30  Bruno Haible  <bruno@clisp.org>
5959
5960         truncl: Fix autoconf test.
5961         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5962         whether truncl works.
5963         Reported by Rainer Tammer.
5964
5965 2010-07-30  Bruno Haible  <bruno@clisp.org>
5966
5967         round: Update regarding AIX.
5968         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5969         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5970         Reported by Rainer Tammer.
5971
5972 2010-07-30  Bruno Haible  <bruno@clisp.org>
5973
5974         rename: Update regarding AIX.
5975         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5976         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5977         Reported by Rainer Tammer.
5978
5979 2010-07-30  Bruno Haible  <bruno@clisp.org>
5980
5981         printf.m4: Update regarding AIX.
5982         * m4/printf.m4: Update comments regarding AIX.
5983         Reported by Rainer Tammer.
5984
5985 2010-07-30  Bruno Haible  <bruno@clisp.org>
5986
5987         iconv: Update regarding AIX.
5988         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5989         AIX 7.
5990         Reported by Rainer Tammer.
5991
5992 2010-07-30  Bruno Haible  <bruno@clisp.org>
5993
5994         getopt: Update regarding AIX.
5995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5996         no on AIX.
5997         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5998         Reported by Rainer Tammer.
5999
6000 2010-07-30  Bruno Haible  <bruno@clisp.org>
6001
6002         ldexpl; Update regarding AIX.
6003         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6004         on AIX 7.
6005         Reported by Rainer Tammer.
6006
6007 2010-07-30  Bruno Haible  <bruno@clisp.org>
6008
6009         frexpl: Update regarding AIX.
6010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6011         on AIX 7.
6012         Reported by Rainer Tammer.
6013
6014 2010-07-30  Bruno Haible  <bruno@clisp.org>
6015
6016         open, fopen: Update regarding AIX.
6017         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6018         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6019         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6020         * doc/posix-functions/fopen.texi: Likewise.
6021         Reported by Rainer Tammer.
6022
6023 2010-07-30  Bruno Haible  <bruno@clisp.org>
6024
6025         chown: Update doc regarding AIX.
6026         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6027         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6028         Reported by Rainer Tammer.
6029
6030 2010-07-30  Eric Blake  <eblake@redhat.com>
6031
6032         strtod: fix bug in replacement function on AIX
6033         * lib/strtod.c (strtod): Special case broken "0x" parse in
6034         underlying strtod.
6035         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6036         * doc/posix-functions/strtod.texi (strtod): Likewise.
6037         Reported by Rainer Tammer.
6038
6039 2010-07-30  Bruno Haible  <bruno@clisp.org>
6040
6041         mbrlen: Fix cross-compilation guess for AIX.
6042         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6043         guess. Leftover from 2008-12-22.
6044
6045 2010-07-30  Bruno Haible  <bruno@clisp.org>
6046
6047         mbrtowc: Fix cross-compilation guess for AIX.
6048         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6049         guess. Leftover from 2008-12-21.
6050
6051 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6052
6053         init.sh: work around trap limitation of some shells
6054         * tests/init.sh (setup_): Move exit trap outside of shell function.
6055
6056 2010-07-29  Eric Blake  <eblake@redhat.com>
6057
6058         strtod: aid debugging
6059         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6060         understanding why strtod is rejected.
6061
6062 2010-07-28  Bruno Haible  <bruno@clisp.org>
6063
6064         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6065         * lib/unistr/u8-chr.c: Include <string.h>.
6066         * tests/unistr/test-u8-chr.c: Likewise.
6067         * tests/unistr/test-u16-chr.c: Likewise.
6068         * tests/unistr/test-u32-chr.c: Likewise.
6069         * tests/unistr/test-u8-strchr.c: Likewise.
6070         * tests/unistr/test-u16-strchr.c: Likewise.
6071         * tests/unistr/test-u32-strchr.c: Likewise.
6072         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6073         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6074         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6075         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6076
6077 2010-07-28  Bruno Haible  <bruno@clisp.org>
6078
6079         Use spaces for indentation, not tabs.
6080         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6081
6082 2010-07-27  Bruno Haible  <bruno@clisp.org>
6083
6084         mbspcasecmp: Fix function specification.
6085         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6086         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6087         Reported by Eric Blake <eblake@redhat.com>.
6088
6089 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6090
6091         timespec: use cast and not conditional, as truncation isn't possible
6092         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6093         instead of a conditional.  Comment about the situation in more detail.
6094         This undoes most of the 2009-10-29 patch.
6095
6096 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6097
6098         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6099         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6100         * lib/unistr/u8-strchr.c: Likewise.
6101         * modules/unistr/u8-chr: Depend on memchr.
6102
6103         unistr/u*-strchr: add tests
6104         * modules/unistr/u8-strchr-tests: New file.
6105         * modules/unistr/u16-strchr-tests: New file.
6106         * modules/unistr/u32-strchr-tests: New file.
6107         * tests/unistr/test-strchr.h: New file.
6108         * tests/unistr/test-u8-strchr.c: New file.
6109         * tests/unistr/test-u16-strchr.c: New file.
6110         * tests/unistr/test-u32-strchr.c: New file.
6111
6112         unistr/u*-chr: test multibyte sequences more
6113         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6114         test vector.
6115         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6116         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6117         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6118
6119         unistr/u*-chr: test multibyte sequences
6120         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6121
6122         unistr/u*-chr: prepare for multibyte tests
6123         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6124         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6125         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6126         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6127         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6128         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6129
6130 2010-07-18  Bruno Haible  <bruno@clisp.org>
6131
6132         unistr/u8-strchr: Optimize non-ASCII argument case.
6133         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6134         because the first byte often matches anyway.
6135         Reported by Pádraig Brady <P@draigbrady.com>.
6136
6137 2010-07-15  Karl Berry  <karl@gnu.org>
6138
6139         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6140
6141 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6142
6143         getcwd: on Solaris, work better if ancestors are inaccessible
6144         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6145         buffer and size, try again with a large buffer.  This works better
6146         on Solaris, since its getcwd succeeds even if the path to the root
6147         is inaccessible, and this is helpful in common cases such as .zfs
6148         hidden directories.  Problem reported by J Chapman Flack in
6149         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6150         Use system getcwd if it's declared, not merely if it's partly
6151         working; use the partly-working test only to avoid needless effort
6152         if the system getcwd fails.
6153         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6154         comment that was already obsolete and is now even more obsolete.
6155         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6156         now might call strdup.
6157
6158 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6159
6160         pthread: Add enough so that coreutils/src/sort.c compiles.
6161         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6162         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6163         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6164         Include <sys/types.h>, in case it defines pthread_t.
6165         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6166         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6167         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6168         (pthread_rwlockattr_t, pthread_spinlock_t):
6169         New typedefs, if HAVE_PTHREAD_T is not defined.
6170         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6171         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6172         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6173         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6174         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6175         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6176         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6177         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6178         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6179         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6180         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6181         New macros.
6182         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6183         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6184         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6185         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6186         (pthread_spin_unlock): New dummy functions.
6187         (pthread_create): Return EAGAIN; don't set errno.
6188         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6189         require AC_C_INLINE.
6190         * modules/pthread (Depends-on): Add sched, time.
6191         (pthread.h): Use AM_V_GEN.
6192
6193 2010-07-13  Bruno Haible  <bruno@clisp.org>
6194
6195         striconveh: Don't malloc memory if the result buffer is sufficient.
6196         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6197         buffer if its size is sufficient.
6198         Reported by Ludovic Courtès <ludo@gnu.org>.
6199
6200 2010-07-13  Bruno Haible  <bruno@clisp.org>
6201
6202         strtod: Add safety check.
6203         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6204
6205 2010-07-12  Bruno Haible  <bruno@clisp.org>
6206
6207         Unify tests that set gl_cv_func_ldexpl_no_libm.
6208         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6209         gl_FUNC_LDEXPL.
6210         (gl_FUNC_LDEXPL): Invoke it.
6211         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6212
6213 2010-07-12  Bruno Haible  <bruno@clisp.org>
6214
6215         Unify tests that set gl_cv_func_ldexp_no_libm.
6216         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6217         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6218         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6219         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6220         * modules/strtod (Files): Add m4/ldexp.m4.
6221
6222 2010-07-12  Bruno Haible  <bruno@clisp.org>
6223
6224         Unify tests that set gl_cv_func_frexpl_no_libm.
6225         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6226         gl_FUNC_FREXPL_NO_LIBM.
6227         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6228         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6229
6230 2010-07-12  Bruno Haible  <bruno@clisp.org>
6231
6232         Unify tests that set gl_cv_func_frexp_no_libm.
6233         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6234         gl_FUNC_FREXP_NO_LIBM.
6235         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6236         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6237
6238 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6239
6240         memcoll: clarify sizes versus lengths, document better, and tweak perf
6241         * lib/memcoll.c (strcoll_loop, memcoll0):
6242         Improve quality of descriptive comments.  Name variables
6243         consistently as to whether they are lengths (which do not include
6244         terminating null) versus sizes (which do).
6245         * lib/xmemcoll.c (xmemcoll0): Likewise.
6246         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6247         returned when s1size == 0; this is easier to compile and saves
6248         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6249
6250 2010-07-12  Bruno Haible  <bruno@clisp.org>
6251
6252         Tests for module '_Exit'.
6253         * modules/_Exit-tests: New file.
6254         * tests/test-_Exit.sh: New file.
6255         * tests/test-_Exit.c: New file.
6256
6257         New module '_Exit'.
6258         * lib/stdlib.in.h (__attribute__): New macro.
6259         (_Exit): New declaration.
6260         * lib/_Exit.c: New file.
6261         * m4/_Exit.m4: New file.
6262         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6263         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6264         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6265         * modules/_Exit: New file.
6266         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6267         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6268
6269 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6270
6271         strtod: make it more-accurate typically, and don't require libm
6272         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6273         Include limits.h.  Don't include string.h.
6274         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6275         (locale_isspace): New function, so that no casts are needed to
6276         check whether *s is a space.
6277         (ldexp): Provide an unused dummy if not available.
6278         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6279         (strtod): Use them.  This implementation prefers to use the
6280         underlying strtod if available, falling back on our own code
6281         only to fix known bugs.  This is more likely to produce an
6282         accurate result.  Also, it avoids the use of libm functions.
6283         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6284         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6285         was absent, but it caused a test failure with coreutils.
6286         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6287         with libm.
6288         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6289         * modules/strtod-tests (Makefile.am): Likewise.
6290
6291 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6292             Bruno Haible  <bruno@clisp.org>
6293
6294         unistr/u8-strchr: Optimize ASCII argument case.
6295         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6296
6297 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         (x)memcoll: minor tweaks
6300         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6301         is after the type that it qualifies.
6302         (memcoll0): Likewise.
6303         * lib/memcoll.h (memcoll0): Likewise.
6304         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6305         * lib/xmemcoll.h (xmemcoll0): Likewise.
6306         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6307         differs from memcoll in that the NUL byte is part of the argument.
6308         Omit the abort-checks, as performance is a real issue here.  Plus,
6309         the checks were wrong anyway (an off-by-one error).  Omit local
6310         variable 'diff', as it's a bit clearer that way.
6311         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6312         no longer needed.
6313
6314 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6315
6316         (x)memcoll: speedup when input is known to be NUL delimited
6317         * lib/memcoll.c: Include stdlib.
6318         (memcoll0) New function.
6319         (strcoll_loop) New function, refactored for use in both memcoll
6320         and memcoll0.
6321         * lib/memcoll.h: Add prototype for memcoll0.
6322         * lib/xmemcoll.c: (xmemcoll0) New function.
6323         (collate_error) New function, refactored for use in both xmemcoll
6324         and xmemcoll0.
6325         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6326         * m4/memcoll.m4: add inline invocation.
6327
6328 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6329
6330         * build-aux/bootstrap: Remove any local translations
6331         from the translation project synchronization directory,
6332         so that local only translations are not distributed.
6333
6334 2010-07-04  Bruno Haible  <bruno@clisp.org>
6335
6336         fsusage: Clarify which code applies to which platforms.
6337         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6338         platform.
6339         * lib/fsusage.c (get_fs_usage): Likewise.
6340
6341 2010-07-04  Bruno Haible  <bruno@clisp.org>
6342
6343         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6344         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6345         Reported by Martin Lambers <marlam@marlam.de>.
6346
6347 2010-07-04  Jim Meyering  <meyering@redhat.com>
6348
6349         hash: once again explicitly disallow insertion of NULL
6350         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6351         inserting a NULL pointer cannot work with these functions.
6352         Add a comment with details.
6353         This reverts part of the 2010-07-01 commit, 5bef1a35
6354         "hash: extend module to deal with non-pointer keys".
6355
6356 2010-07-01  Bruno Haible  <bruno@clisp.org>
6357
6358         stdbool: Update doc.
6359         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6360         Info from Christian Weisgerber <naddy@mips.inka.de>.
6361
6362 2010-07-01  Jim Meyering  <meyering@redhat.com>
6363
6364         hash: extend module to deal with non-pointer keys
6365         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6366         but that allows insertion of non-pointer entries.
6367         Do not disallow an ENTRY value of NULL.
6368         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6369         * lib/hash.h (hash_insert0): Declare.
6370
6371 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6372
6373         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6374         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6375         not present (i.e. with autoconf 2.59 and when using gettextize, not
6376         gnulib), require AC_GNU_SOURCE instead.
6377
6378 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6379
6380         idpriv-drop: Fix tests.
6381         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6382         not to the test-idpriv-droptemp program.
6383
6384 2010-06-29  Bruno Haible  <bruno@clisp.org>
6385
6386         string: Fix syntax error with g++ 2.96.
6387         * lib/string.in.h (__pure__): Remove definition.
6388         (_GL_ATTRIBUTE_PURE): New macro.
6389         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6390         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6391         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6392
6393 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6394
6395         unitypes: Fix bug introduced on 2010-05-18.
6396         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6397
6398 2010-06-22  Eric Blake  <eblake@redhat.com>
6399
6400         memmem: slight optimization
6401         * lib/str-two-way.h (critical_factorization): Update comments.
6402         Reduce work during factorization phase.
6403         Reported by Carlos Bueno <carlos@bueno.org>.
6404
6405 2010-06-21  Bruno Haible  <bruno@clisp.org>
6406
6407         Fix HAVE_CALLOC_POSIX misnomer.
6408         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6409         !HAVE_CALLOC_POSIX.
6410         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6411         HAVE_CALLOC_POSIX.
6412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6413         instead of HAVE_CALLOC_POSIX.
6414         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6415         HAVE_CALLOC_POSIX.
6416
6417         Use modern idiom for calloc() replacement.
6418         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6419         AC_FUNC_CALLOC.
6420         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6421         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6422         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6423         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6424         (gl_REPLACE_CALLOC): New macro.
6425
6426 2010-06-21  Bruno Haible  <bruno@clisp.org>
6427
6428         Fix HAVE_REALLOC_POSIX misnomer.
6429         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6430         !HAVE_REALLOC_POSIX.
6431         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6432         HAVE_REALLOC_POSIX.
6433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6434         instead of HAVE_REALLOC_POSIX.
6435         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6436         HAVE_REALLOC_POSIX.
6437
6438         Use modern idiom for realloc() replacement.
6439         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6440         AC_FUNC_REALLOC.
6441         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6442         Autoconf's AC_FUNC_REALLOC.
6443         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6444         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6445         (gl_REPLACE_REALLOC): New macro.
6446         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6447
6448 2010-06-21  Bruno Haible  <bruno@clisp.org>
6449
6450         Fix HAVE_MALLOC_POSIX misnomer.
6451         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6452         !HAVE_MALLOC_POSIX.
6453         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6454         HAVE_MALLOC_POSIX.
6455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6456         instead of HAVE_MALLOC_POSIX.
6457         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6458         HAVE_MALLOC_POSIX.
6459
6460         Use modern idiom for malloc() replacement.
6461         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6462         AC_FUNC_MALLOC.
6463         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6464         Autoconf's AC_FUNC_MALLOC.
6465         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6466         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6467         (gl_REPLACE_MALLOC): New macro.
6468         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6469
6470 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6471
6472         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6473         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6474         This macro takes 3 arguments, not 4.
6475
6476 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6477
6478         ipv6: fix detection under mingw
6479         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6480         in6_addr.
6481
6482 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6483
6484         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6485         that strtod() works when cross-compiling to a glibc version known
6486         to work.
6487
6488 2010-06-15  Bruno Haible  <bruno@clisp.org>
6489
6490         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6491
6492 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6493
6494         select: Correct timeout.
6495         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6496
6497 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6498
6499         git-version-gen: init shell var to avoid env var influence
6500         * build-aux/git-version-gen (v): Init shell var to empty.
6501
6502 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6503
6504         priv-set: Don't assume that priv.h exists merely because getppriv does.
6505         See Jan Andersen's bug report about AIX 5L in
6506         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6507         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6508         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6509         * lib/priv-set.h: Likewise.
6510         * tests/test-priv-set.c: Likewise.
6511
6512 2010-06-13  Bruno Haible  <bruno@clisp.org>
6513
6514         relocatable: Make it easier to test whether to install wrappers.
6515         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6516         RELOCATABLE_VIA_WRAPPER.
6517
6518 2010-06-13  Bruno Haible  <bruno@clisp.org>
6519
6520         gnulib-tool: Display specified modules and dependencies differently.
6521         * gnulib-tool (func_show_module_list): New function.
6522         (func_import, func_create_testdir): Invoke it.
6523         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6524
6525 2010-06-13  Bruno Haible  <bruno@clisp.org>
6526
6527         gnulib-tool: Align code of func_import and func_create_testdir.
6528         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6529         specified_modules.
6530
6531 2010-06-12  Jim Meyering  <meyering@redhat.com>
6532
6533         test-inttostr: avoid spurious failure on Solaris 9
6534         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6535         to accept "%ju".  Reported by Bruno Haible.
6536
6537 2010-06-11  Jim Meyering  <meyering@redhat.com>
6538
6539         test-sys_socket: mark variables as used more readably
6540         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6541         as "used" explicitly via (void) statement casts.  This is more
6542         readable than using them in an artificial return expression.
6543         Suggestion from Bruno Haible.
6544
6545 2010-06-11  Bruno Haible  <bruno@clisp.org>
6546
6547         Avoid some more warnings from "gcc -Wwrite-strings".
6548         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6549         to 'const char *'.
6550         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6551         * tests/test-c-strcasestr.c (main): Likewise.
6552         * tests/test-mbscasestr1.c (main): Likewise.
6553         * tests/test-mbscasestr2.c (main): Likewise.
6554         * tests/test-memmem.c (main): Likewise.
6555         * tests/test-strstr.c (main): Likewise.
6556         * tests/test-strcasestr.c (main): Likewise.
6557
6558 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6559
6560         init.sh: change framework_failure_ to fail with status 99, not 1
6561         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6562         automake's parallel-tests rule that this is an unexpected failure,
6563         even if the test is listed in XFAIL_TESTS.
6564
6565 2010-06-11  Jim Meyering  <meyering@redhat.com>
6566
6567         test-inttostr: avoid warnings about 4-6KB literal strings
6568         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6569         Include "macros.h", for its definition of ASSERT.
6570         (CK): s/assert/ASSERT/
6571         * modules/inttostr-tests (Files): Add macros.h.
6572
6573         init.sh: don't use $ME_ or skip_ before they are defined
6574         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6575         their first uses.  Also hoist their companions: warn_, fail_,
6576         framework_failure_, $stderr_fileno.  Prompted by a patch from
6577         Stefano Lattarini.
6578
6579         test-sys_socket: avoid set-but-not-used warnings from gcc
6580         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6581         avoid warning about set-but-not-used variables.
6582
6583         test-xvasprintf: avoid 'const' discard warnings
6584         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6585         "const" when assigning from literal strings.
6586         (test_xasprintf): Add "void" in function argument list to placate
6587         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6588
6589         tests: avoid compilation warnings in argmatch and exclude tests...
6590         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6591         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6592         Since it always exits, declare with the "noreturn" attribute.
6593         * tests/test-argmatch.c: Likewise.
6594
6595         tests: avoid 'const' discard warnings in mbsstr tests
6596         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6597         * tests/test-mbsstr2.c (main): Likewise.
6598
6599         test-verify: avoid warning from gcc's -Wmissing-declarations
6600         * tests/test-verify.c (function): Declare to be static.
6601
6602         test-inttostr.c: include <string.h> for use of strcmp
6603         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6604
6605         test-linkat: avoid failed assertion on "other" architectures
6606         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6607         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6608         sparc: https://bugs.launchpad.net/bugs/591968
6609
6610 2010-06-11  Jim Meyering  <meyering@redhat.com>
6611
6612         printf.m4: avoid autoconf's "Expanded Before Required" warning
6613         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6614         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6615         autoconf warning.
6616
6617 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6618
6619         Replacement header templates are now named with ".in", not "_".
6620         * doc/gnulib-intro.texi: Correct.
6621
6622 2010-06-10  Jim Meyering  <meyering@redhat.com>
6623
6624         inttostr-tests: depend on snprintf, not snprintf-posix
6625         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6626         snprintf-posix, to avoid this aclocal failure:
6627           missing file gnulib-tests/vasnprintf.c
6628           configure.ac:45: error: expected source file, required through \
6629           AC_LIBSOURCES, not found
6630
6631 2010-06-10  Jim Meyering  <meyering@redhat.com>
6632
6633         inttostr: add a new function, inttostr, and tests
6634         The namesake function was not available.  The existence of the
6635         template file, inttostr.c makes its addition nontrivial.
6636         * lib/anytostr.c: Rename from inttostr.c.
6637         (anytostr): Rename from inttostr.
6638         * lib/inttostr.c: New file.
6639         * modules/inttostr (Files): Add anytostr.c.
6640         (Makefile.am): Set lib_SOURCES instead of ...
6641         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6642         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6643         * lib/offtostr.c: Likewise.
6644         * lib/uinttostr.c: Likewise.
6645         * lib/umaxtostr.c: Likewise.
6646         * modules/inttostr-tests: New file.
6647         * tests/test-inttostr.c: New file.  Test these functions.
6648
6649 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6650             Bruno Haible  <bruno@clisp.org>
6651
6652         Add "Extending Gnulib" chapter to manual.
6653         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6654         chapter.
6655         (Extending Gnulib): New chapter.
6656         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6657         chapter.
6658
6659 2010-06-09  Bruno Haible  <bruno@clisp.org>
6660
6661         Avoid relocwrapper link errors due to gnulib replacement functions.
6662         * lib/areadlink.c: Use the system's malloc, realloc functions.
6663         (areadlink): Set errno to ENOMEM explicitly.
6664         * modules/areadlink (Depends-on): Remove malloc-posix.
6665         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6666
6667 2010-06-09  Bruno Haible  <bruno@clisp.org>
6668
6669         Avoid relocwrapper link errors due to gnulib replacement functions.
6670         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6671         * lib/malloca.c: Likewise.
6672         * lib/relocatable.c: Likewise.
6673         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6674         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6675         * lib/setenv.c: Use the system's malloc, realloc functions.
6676         * lib/strerror.c: Use the system's sprintf function.
6677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6678
6679 2010-06-04  Bruno Haible  <bruno@clisp.org>
6680
6681         Prefer documented low-level autoconf macro names.
6682         * m4/lib-link.m4: Use m4_translit instead of translit.
6683         * m4/environ.m4: Likewise.
6684         * m4/mathfunc.m4: Likewise.
6685         * m4/onceonly.m4: Likewise.
6686         * m4/stdint.m4: Likewise.
6687         Suggested by Eric Blake.
6688
6689 2010-06-04  Martin Lambers  <marlam@marlam.de>
6690             Bruno Haible  <bruno@clisp.org>
6691
6692         havelib: Allow library names with '+' characters.
6693         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6694         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6695
6696 2010-06-09  Bruno Haible  <bruno@clisp.org>
6697
6698         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6699         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6700         realloc failed.
6701
6702 2010-06-08  Peter Simons  <simons@cryp.to>
6703
6704         maint.mk: make the news-check rule more configurable
6705         * top/maint.mk (news-check-lines-spec) New variable.
6706         (news-check): Use "sed -n 1,10p" in place of "head".
6707
6708 2010-06-07  Jim Meyering  <meyering@redhat.com>
6709
6710         do-release-commit-and-tag: fix typo in --help
6711         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6712
6713         regex: avoid new dead-code warning with gcc-4.6.0
6714         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6715         if-block containing a while-loop.  It's been unused for at least
6716         5 years.
6717
6718 2010-06-05  Bruno Haible  <bruno@clisp.org>
6719
6720         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6721         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6722
6723 2010-06-04  Bruno Haible  <bruno@clisp.org>
6724
6725         Update to GNU gettext 0.18.1.
6726         * modules/gettext (configure.ac): Require gettext infrastructure from
6727         version 0.18.1.
6728
6729 2010-06-03  Bruno Haible  <bruno@clisp.org>
6730
6731         Don't use AC_LIBOBJ with file names in subdirectories.
6732         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6733         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6734         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6735         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6736         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6737         gl_LIBUNISTRING_LIBSOURCE.
6738         (Makefile.am): Augment lib_SOURCES here, conditionally.
6739         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6740
6741 2010-06-03  Bruno Haible  <bruno@clisp.org>
6742
6743         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6744         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6745         expansion does not end with a newline.
6746         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6747         unnecessary newline.
6748
6749 2010-06-03  Bruno Haible  <bruno@clisp.org>
6750
6751         Reduce dependencies.
6752         * tests/test-quotearg.h: New file, extracted from
6753         tests/test-quotearg.c.
6754         * tests/test-quotearg-simple.c: New file, extracted from
6755         tests/test-quotearg.c.
6756         * tests/test-quotearg.c: Don't include <ctype.h>.
6757         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6758         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6759         use_quote_double_quotes, use_quotearg_colon): Moved to
6760         tests/test-quotearg.h.
6761         (results_g, flag_results, custom_quotes, custom_results): Moved
6762         to tests/test-quotearg-simple.c.
6763         (main): Moved the part that does not depend on gettext to
6764         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6765         performed.
6766         * modules/quotearg-simple: New file.
6767         * modules/quotearg-simple-tests: New file.
6768         * modules/quotearg (Depends-on): Add quotearg-simple.
6769         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6770         (Files): Add tests/test-quotearg.h.
6771         Reported by Paolo Bonzini.
6772
6773 2010-06-03  Bruno Haible  <bruno@clisp.org>
6774
6775         Reduce dependencies.
6776         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6777
6778 2010-06-03  Bruno Haible  <bruno@clisp.org>
6779
6780         time: Undefine more broken macros.
6781         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6782         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6783         Reported by Eric Blake.
6784
6785 2010-06-03  Bruno Haible  <bruno@clisp.org>
6786
6787         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6788         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6789         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6790         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6791         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6792         Reported by Ludovic Courtès <ludo@gnu.org>.
6793
6794 2010-06-02  Eric Blake  <eblake@redhat.com>
6795
6796         time: work with mingw + pthreads-win32 library
6797         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6798         if timespec is defined only in pthread.h.
6799         * modules/time (Makefile.am): Substitute it.
6800         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6801         <pthread.h>, when needed.
6802         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6803         from the library.
6804
6805 2010-05-31  Bruno Haible  <bruno@clisp.org>
6806
6807         Avoid expanding two macros in the wrong order.
6808         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6809         gl_LIBUNISTRING if it is defined.
6810         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6811         autoconf >= 2.64.
6812         Reported by Ludovic Courtès <ludo@gnu.org>.
6813
6814 2010-05-27  Jim Meyering  <meyering@redhat.com>
6815
6816         maint.mk: also prohibit "#undef" of always-defined symbols
6817         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6818         Allow more than one space before the symbol name.
6819         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6820         the regexp uses alternation.
6821
6822 2010-05-26  Eric Blake  <eblake@redhat.com>
6823
6824         maint.mk: avoid echo -e
6825         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6826         Convert all uses of echo -* to printf.
6827         Reported by Matthias Bolte.
6828
6829 2010-05-25  Bruno Haible  <bruno@clisp.org>
6830
6831         Update to GNU gettext 0.18, part 2.
6832         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6833         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6834
6835 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6836
6837         Add missing include in test-pwrite.c.
6838         * tests/test-pwrite.c: Include string.h, for strcmp.
6839
6840 2010-05-24  Bruno Haible  <bruno@clisp.org>
6841
6842         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6843
6844 2010-05-24  Bruno Haible  <bruno@clisp.org>
6845
6846         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6847         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6848         iconveh_error argument.
6849         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6850         U_STRCONV_TO_LOCALE.
6851         * lib/unistr/u16-strcoll.c: Likewise.
6852         * lib/unistr/u32-strcoll.c: Likewise.
6853         * modules/unistr/u8-strcoll (Depends-on): Add
6854         uniconv/u8-strconv-to-enc, localcharset. Remove
6855         uniconv/u8-strconv-to-locale.
6856         (configure.ac): Bump version number.
6857         * modules/unistr/u16-strcoll (Depends-on): Add
6858         uniconv/u16-strconv-to-enc, localcharset. Remove
6859         uniconv/u16-strconv-to-locale.
6860         (configure.ac): Bump version number.
6861         * modules/unistr/u32-strcoll (Depends-on): Add
6862         uniconv/u32-strconv-to-enc, localcharset. Remove
6863         uniconv/u32-strconv-to-locale.
6864         (configure.ac): Bump version number.
6865
6866 2010-05-24  Bruno Haible  <bruno@clisp.org>
6867
6868         Avoid a test failure on NetBSD 5.0.
6869         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6870         an iconv() bug.
6871
6872 2010-05-24  Bruno Haible  <bruno@clisp.org>
6873
6874         Adjust #include directive style.
6875         * modules/regex (Includes): Recommend to write <regex.h>.
6876
6877 2010-05-24  Bruno Haible  <bruno@clisp.org>
6878
6879         regex: Don't require alloca.
6880         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6881         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6882         only inside if (0).
6883
6884 2010-05-23  Jim Meyering  <meyering@redhat.com>
6885
6886         test-renameat.c: include <sys/stat.h>
6887         * tests/test-renameat.c: Include <sys/stat.h>; required for
6888         definition of S_IS* macros.
6889
6890 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6891
6892         Update maintainer documentation for 'relocatable-prog' module.
6893         * doc/relocatable-maint.texi: Update.
6894         Comments by Bruno Haible.
6895
6896 2010-05-23  Bruno Haible  <bruno@clisp.org>
6897
6898         git-merge-changelog: Enable --split-merged-entry by default.
6899         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6900         (usage): Don't mention this option any more.
6901         Reported by Ralf Wildenhues.
6902
6903 2010-05-23  Jim Meyering  <meyering@redhat.com>
6904
6905         test-pwrite: do not leave behind a test file named "out"
6906         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6907         The trivial-looking use of init.sh is really necessary.
6908         It ensures that the temporary file, "out", is created in
6909         a temporary directory, and removed upon termination.
6910         * tests/test-pwrite.sh: Re-add file.
6911         * modules/pwrite-tests: Reference it.
6912
6913 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6914
6915         Fix output redirection buglet in init.sh.
6916         * tests/init.sh: Fix redirection of stderr.
6917
6918 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6919
6920         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6921
6922 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6923
6924         * modules/valgrind-tests: New file.
6925         * m4/valgrind-tests.m4: New file.
6926         * doc/valgrind-tests.texi: New file.
6927         * doc/gnulib.texi (Running self-tests under valgrind): New
6928         section.
6929
6930 2010-05-19  Bruno Haible  <bruno@clisp.org>
6931
6932         Clean up dead code in recent commit.
6933         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6934         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6935         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6936         Suggested by Paolo Bonzini.
6937
6938 2010-05-19  Bruno Haible  <bruno@clisp.org>
6939
6940         Avoid valgrind error reports from libunistring.
6941         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6942         * modules/libunistring (Files): Add it.
6943         * modules/libunistring-optional (Files): Likewise.
6944
6945 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6946             Bruno Haible  <bruno@clisp.org>
6947
6948         New module 'libunistring-optional'.
6949         * modules/libunistring-optional: New file.
6950         * m4/libunistring-base.m4: New file.
6951         * m4/libunistring-optional.m4: New file.
6952         * lib/unicase.in.h: Renamed from lib/unicase.h.
6953         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6954         * lib/unictype.in.h: Renamed from lib/unictype.h.
6955         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6956         * lib/uniname.in.h: Renamed from lib/uniname.h.
6957         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6958         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6959         * lib/unistr.in.h: Renamed from lib/unistr.h.
6960         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6961         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6962         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6963         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6964         gl_LIBUNISTRING. If the library was found, determine the installed
6965         version and set LIBUNISTRING_VERSION.
6966         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6967         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6968         handle a configuration option --with-included-libunistring.
6969         * modules/libunistring (Files): Add m4/absolute-header.m4.
6970         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6971         Add m4/libunistring-base.m4.
6972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6973         (Makefile.am): Build unicase.h from unicase.in.h.
6974         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6975         Add m4/libunistring-base.m4.
6976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6977         (Makefile.am): Build uniconv.h from uniconv.in.h.
6978         * modules/unictype/base (Files): Use unictype.in.h instead of
6979         unictype.h. Add m4/libunistring-base.m4.
6980         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6981         (Makefile.am): Build unictype.h from unictype.in.h.
6982         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6983         Add m4/libunistring-base.m4.
6984         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6985         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6986         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6987         Add m4/libunistring-base.m4.
6988         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6989         (Makefile.am): Build uniname.h from uniname.in.h.
6990         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6991         Add m4/libunistring-base.m4.
6992         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6993         (Makefile.am): Build uninorm.h from uninorm.in.h.
6994         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6995         unistdio.h. Add m4/libunistring-base.m4.
6996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6997         (Makefile.am): Build unistdio.h from unistdio.in.h.
6998         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6999         Add m4/libunistring-base.m4.
7000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7001         (Makefile.am): Build unistr.h from unistr.in.h.
7002         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7003         Add m4/libunistring-base.m4.
7004         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7005         (Makefile.am): Build unitypes.h from unitypes.in.h.
7006         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7007         Add m4/libunistring-base.m4.
7008         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7009         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7010         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7011         uniwidth.h. Add m4/libunistring-base.m4.
7012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7013         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7014         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7015         instead of augmenting lib_SOURCES.
7016         * modules/unicase/empty-suffix-context: Likewise.
7017         * modules/unicase/locale-language: Likewise.
7018         * modules/unicase/tolower: Likewise.
7019         * modules/unicase/totitle: Likewise.
7020         * modules/unicase/toupper: Likewise.
7021         * modules/unicase/u8-casecmp: Likewise.
7022         * modules/unicase/u8-casecoll: Likewise.
7023         * modules/unicase/u8-casefold: Likewise.
7024         * modules/unicase/u8-casexfrm: Likewise.
7025         * modules/unicase/u8-ct-casefold: Likewise.
7026         * modules/unicase/u8-ct-tolower: Likewise.
7027         * modules/unicase/u8-ct-totitle: Likewise.
7028         * modules/unicase/u8-ct-toupper: Likewise.
7029         * modules/unicase/u8-is-cased: Likewise.
7030         * modules/unicase/u8-is-casefolded: Likewise.
7031         * modules/unicase/u8-is-lowercase: Likewise.
7032         * modules/unicase/u8-is-titlecase: Likewise.
7033         * modules/unicase/u8-is-uppercase: Likewise.
7034         * modules/unicase/u8-prefix-context: Likewise.
7035         * modules/unicase/u8-suffix-context: Likewise.
7036         * modules/unicase/u8-tolower: Likewise.
7037         * modules/unicase/u8-totitle: Likewise.
7038         * modules/unicase/u8-toupper: Likewise.
7039         * modules/unicase/u16-casecmp: Likewise.
7040         * modules/unicase/u16-casecoll: Likewise.
7041         * modules/unicase/u16-casefold: Likewise.
7042         * modules/unicase/u16-casexfrm: Likewise.
7043         * modules/unicase/u16-ct-casefold: Likewise.
7044         * modules/unicase/u16-ct-tolower: Likewise.
7045         * modules/unicase/u16-ct-totitle: Likewise.
7046         * modules/unicase/u16-ct-toupper: Likewise.
7047         * modules/unicase/u16-is-cased: Likewise.
7048         * modules/unicase/u16-is-casefolded: Likewise.
7049         * modules/unicase/u16-is-lowercase: Likewise.
7050         * modules/unicase/u16-is-titlecase: Likewise.
7051         * modules/unicase/u16-is-uppercase: Likewise.
7052         * modules/unicase/u16-prefix-context: Likewise.
7053         * modules/unicase/u16-suffix-context: Likewise.
7054         * modules/unicase/u16-tolower: Likewise.
7055         * modules/unicase/u16-totitle: Likewise.
7056         * modules/unicase/u16-toupper: Likewise.
7057         * modules/unicase/u32-casecmp: Likewise.
7058         * modules/unicase/u32-casecoll: Likewise.
7059         * modules/unicase/u32-casefold: Likewise.
7060         * modules/unicase/u32-casexfrm: Likewise.
7061         * modules/unicase/u32-ct-casefold: Likewise.
7062         * modules/unicase/u32-ct-tolower: Likewise.
7063         * modules/unicase/u32-ct-totitle: Likewise.
7064         * modules/unicase/u32-ct-toupper: Likewise.
7065         * modules/unicase/u32-is-cased: Likewise.
7066         * modules/unicase/u32-is-casefolded: Likewise.
7067         * modules/unicase/u32-is-lowercase: Likewise.
7068         * modules/unicase/u32-is-titlecase: Likewise.
7069         * modules/unicase/u32-is-uppercase: Likewise.
7070         * modules/unicase/u32-prefix-context: Likewise.
7071         * modules/unicase/u32-suffix-context: Likewise.
7072         * modules/unicase/u32-tolower: Likewise.
7073         * modules/unicase/u32-totitle: Likewise.
7074         * modules/unicase/u32-toupper: Likewise.
7075         * modules/unicase/ulc-casecmp: Likewise.
7076         * modules/unicase/ulc-casecoll: Likewise.
7077         * modules/unicase/ulc-casexfrm: Likewise.
7078         * modules/uniconv/u8-conv-from-enc: Likewise.
7079         * modules/uniconv/u8-conv-to-enc: Likewise.
7080         * modules/uniconv/u8-strconv-from-enc: Likewise.
7081         * modules/uniconv/u8-strconv-from-locale: Likewise.
7082         * modules/uniconv/u8-strconv-to-enc: Likewise.
7083         * modules/uniconv/u8-strconv-to-locale: Likewise.
7084         * modules/uniconv/u16-conv-from-enc: Likewise.
7085         * modules/uniconv/u16-conv-to-enc: Likewise.
7086         * modules/uniconv/u16-strconv-from-enc: Likewise.
7087         * modules/uniconv/u16-strconv-from-locale: Likewise.
7088         * modules/uniconv/u16-strconv-to-enc: Likewise.
7089         * modules/uniconv/u16-strconv-to-locale: Likewise.
7090         * modules/uniconv/u32-conv-from-enc: Likewise.
7091         * modules/uniconv/u32-conv-to-enc: Likewise.
7092         * modules/uniconv/u32-strconv-from-enc: Likewise.
7093         * modules/uniconv/u32-strconv-from-locale: Likewise.
7094         * modules/uniconv/u32-strconv-to-enc: Likewise.
7095         * modules/uniconv/u32-strconv-to-locale: Likewise.
7096         * modules/unictype/bidicategory-byname: Likewise.
7097         * modules/unictype/bidicategory-name: Likewise.
7098         * modules/unictype/bidicategory-of: Likewise.
7099         * modules/unictype/bidicategory-test: Likewise.
7100         * modules/unictype/block-list: Likewise.
7101         * modules/unictype/block-test: Likewise.
7102         * modules/unictype/category-C: Likewise.
7103         * modules/unictype/category-Cc: Likewise.
7104         * modules/unictype/category-Cf: Likewise.
7105         * modules/unictype/category-Cn: Likewise.
7106         * modules/unictype/category-Co: Likewise.
7107         * modules/unictype/category-Cs: Likewise.
7108         * modules/unictype/category-L: Likewise.
7109         * modules/unictype/category-Ll: Likewise.
7110         * modules/unictype/category-Lm: Likewise.
7111         * modules/unictype/category-Lo: Likewise.
7112         * modules/unictype/category-Lt: Likewise.
7113         * modules/unictype/category-Lu: Likewise.
7114         * modules/unictype/category-M: Likewise.
7115         * modules/unictype/category-Mc: Likewise.
7116         * modules/unictype/category-Me: Likewise.
7117         * modules/unictype/category-Mn: Likewise.
7118         * modules/unictype/category-N: Likewise.
7119         * modules/unictype/category-Nd: Likewise.
7120         * modules/unictype/category-Nl: Likewise.
7121         * modules/unictype/category-No: Likewise.
7122         * modules/unictype/category-P: Likewise.
7123         * modules/unictype/category-Pc: Likewise.
7124         * modules/unictype/category-Pd: Likewise.
7125         * modules/unictype/category-Pe: Likewise.
7126         * modules/unictype/category-Pf: Likewise.
7127         * modules/unictype/category-Pi: Likewise.
7128         * modules/unictype/category-Po: Likewise.
7129         * modules/unictype/category-Ps: Likewise.
7130         * modules/unictype/category-S: Likewise.
7131         * modules/unictype/category-Sc: Likewise.
7132         * modules/unictype/category-Sk: Likewise.
7133         * modules/unictype/category-Sm: Likewise.
7134         * modules/unictype/category-So: Likewise.
7135         * modules/unictype/category-Z: Likewise.
7136         * modules/unictype/category-Zl: Likewise.
7137         * modules/unictype/category-Zp: Likewise.
7138         * modules/unictype/category-Zs: Likewise.
7139         * modules/unictype/category-and: Likewise.
7140         * modules/unictype/category-and-not: Likewise.
7141         * modules/unictype/category-byname: Likewise.
7142         * modules/unictype/category-name: Likewise.
7143         * modules/unictype/category-none: Likewise.
7144         * modules/unictype/category-of: Likewise.
7145         * modules/unictype/category-or: Likewise.
7146         * modules/unictype/category-test: Likewise.
7147         * modules/unictype/combining-class: Likewise.
7148         * modules/unictype/ctype-alnum: Likewise.
7149         * modules/unictype/ctype-alpha: Likewise.
7150         * modules/unictype/ctype-blank: Likewise.
7151         * modules/unictype/ctype-cntrl: Likewise.
7152         * modules/unictype/ctype-digit: Likewise.
7153         * modules/unictype/ctype-graph: Likewise.
7154         * modules/unictype/ctype-lower: Likewise.
7155         * modules/unictype/ctype-print: Likewise.
7156         * modules/unictype/ctype-punct: Likewise.
7157         * modules/unictype/ctype-space: Likewise.
7158         * modules/unictype/ctype-upper: Likewise.
7159         * modules/unictype/ctype-xdigit: Likewise.
7160         * modules/unictype/decimal-digit: Likewise.
7161         * modules/unictype/digit: Likewise.
7162         * modules/unictype/mirror: Likewise.
7163         * modules/unictype/numeric: Likewise.
7164         * modules/unictype/property-alphabetic: Likewise.
7165         * modules/unictype/property-ascii-hex-digit: Likewise.
7166         * modules/unictype/property-bidi-arabic-digit: Likewise.
7167         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7168         * modules/unictype/property-bidi-block-separator: Likewise.
7169         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7170         * modules/unictype/property-bidi-common-separator: Likewise.
7171         * modules/unictype/property-bidi-control: Likewise.
7172         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7173         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7174         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7175         * modules/unictype/property-bidi-european-digit: Likewise.
7176         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7177         * modules/unictype/property-bidi-left-to-right: Likewise.
7178         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7179         * modules/unictype/property-bidi-other-neutral: Likewise.
7180         * modules/unictype/property-bidi-pdf: Likewise.
7181         * modules/unictype/property-bidi-segment-separator: Likewise.
7182         * modules/unictype/property-bidi-whitespace: Likewise.
7183         * modules/unictype/property-byname: Likewise.
7184         * modules/unictype/property-combining: Likewise.
7185         * modules/unictype/property-composite: Likewise.
7186         * modules/unictype/property-currency-symbol: Likewise.
7187         * modules/unictype/property-dash: Likewise.
7188         * modules/unictype/property-decimal-digit: Likewise.
7189         * modules/unictype/property-default-ignorable-code-point: Likewise.
7190         * modules/unictype/property-deprecated: Likewise.
7191         * modules/unictype/property-diacritic: Likewise.
7192         * modules/unictype/property-extender: Likewise.
7193         * modules/unictype/property-format-control: Likewise.
7194         * modules/unictype/property-grapheme-base: Likewise.
7195         * modules/unictype/property-grapheme-extend: Likewise.
7196         * modules/unictype/property-grapheme-link: Likewise.
7197         * modules/unictype/property-hex-digit: Likewise.
7198         * modules/unictype/property-hyphen: Likewise.
7199         * modules/unictype/property-id-continue: Likewise.
7200         * modules/unictype/property-id-start: Likewise.
7201         * modules/unictype/property-ideographic: Likewise.
7202         * modules/unictype/property-ids-binary-operator: Likewise.
7203         * modules/unictype/property-ids-trinary-operator: Likewise.
7204         * modules/unictype/property-ignorable-control: Likewise.
7205         * modules/unictype/property-iso-control: Likewise.
7206         * modules/unictype/property-join-control: Likewise.
7207         * modules/unictype/property-left-of-pair: Likewise.
7208         * modules/unictype/property-line-separator: Likewise.
7209         * modules/unictype/property-logical-order-exception: Likewise.
7210         * modules/unictype/property-lowercase: Likewise.
7211         * modules/unictype/property-math: Likewise.
7212         * modules/unictype/property-non-break: Likewise.
7213         * modules/unictype/property-not-a-character: Likewise.
7214         * modules/unictype/property-numeric: Likewise.
7215         * modules/unictype/property-other-alphabetic: Likewise.
7216         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7217         * modules/unictype/property-other-grapheme-extend: Likewise.
7218         * modules/unictype/property-other-id-continue: Likewise.
7219         * modules/unictype/property-other-id-start: Likewise.
7220         * modules/unictype/property-other-lowercase: Likewise.
7221         * modules/unictype/property-other-math: Likewise.
7222         * modules/unictype/property-other-uppercase: Likewise.
7223         * modules/unictype/property-paired-punctuation: Likewise.
7224         * modules/unictype/property-paragraph-separator: Likewise.
7225         * modules/unictype/property-pattern-syntax: Likewise.
7226         * modules/unictype/property-pattern-white-space: Likewise.
7227         * modules/unictype/property-private-use: Likewise.
7228         * modules/unictype/property-punctuation: Likewise.
7229         * modules/unictype/property-quotation-mark: Likewise.
7230         * modules/unictype/property-radical: Likewise.
7231         * modules/unictype/property-sentence-terminal: Likewise.
7232         * modules/unictype/property-soft-dotted: Likewise.
7233         * modules/unictype/property-space: Likewise.
7234         * modules/unictype/property-terminal-punctuation: Likewise.
7235         * modules/unictype/property-test: Likewise.
7236         * modules/unictype/property-titlecase: Likewise.
7237         * modules/unictype/property-unassigned-code-value: Likewise.
7238         * modules/unictype/property-unified-ideograph: Likewise.
7239         * modules/unictype/property-uppercase: Likewise.
7240         * modules/unictype/property-variation-selector: Likewise.
7241         * modules/unictype/property-white-space: Likewise.
7242         * modules/unictype/property-xid-continue: Likewise.
7243         * modules/unictype/property-xid-start: Likewise.
7244         * modules/unictype/property-zero-width: Likewise.
7245         * modules/unictype/scripts: Likewise.
7246         * modules/unictype/syntax-c-ident: Likewise.
7247         * modules/unictype/syntax-c-whitespace: Likewise.
7248         * modules/unictype/syntax-java-ident: Likewise.
7249         * modules/unictype/syntax-java-whitespace: Likewise.
7250         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7251         * modules/unilbrk/u8-width-linebreaks: Likewise.
7252         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7253         * modules/unilbrk/u16-width-linebreaks: Likewise.
7254         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7255         * modules/unilbrk/u32-width-linebreaks: Likewise.
7256         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7257         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7258         * modules/uniname/uniname: Likewise.
7259         * modules/uninorm/canonical-decomposition: Likewise.
7260         * modules/uninorm/composition: Likewise.
7261         * modules/uninorm/decomposing-form: Likewise.
7262         * modules/uninorm/decomposition: Likewise.
7263         * modules/uninorm/filter: Likewise.
7264         * modules/uninorm/nfc: Likewise.
7265         * modules/uninorm/nfd: Likewise.
7266         * modules/uninorm/nfkc: Likewise.
7267         * modules/uninorm/nfkd: Likewise.
7268         * modules/uninorm/u8-normalize: Likewise.
7269         * modules/uninorm/u8-normcmp: Likewise.
7270         * modules/uninorm/u8-normcoll: Likewise.
7271         * modules/uninorm/u8-normxfrm: Likewise.
7272         * modules/uninorm/u16-normalize: Likewise.
7273         * modules/uninorm/u16-normcmp: Likewise.
7274         * modules/uninorm/u16-normcoll: Likewise.
7275         * modules/uninorm/u16-normxfrm: Likewise.
7276         * modules/uninorm/u32-normalize: Likewise.
7277         * modules/uninorm/u32-normcmp: Likewise.
7278         * modules/uninorm/u32-normcoll: Likewise.
7279         * modules/uninorm/u32-normxfrm: Likewise.
7280         * modules/unistdio/u8-asnprintf: Likewise.
7281         * modules/unistdio/u8-asprintf: Likewise.
7282         * modules/unistdio/u8-snprintf: Likewise.
7283         * modules/unistdio/u8-sprintf: Likewise.
7284         * modules/unistdio/u8-u8-asnprintf: Likewise.
7285         * modules/unistdio/u8-u8-asprintf: Likewise.
7286         * modules/unistdio/u8-u8-snprintf: Likewise.
7287         * modules/unistdio/u8-u8-sprintf: Likewise.
7288         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7289         * modules/unistdio/u8-u8-vasprintf: Likewise.
7290         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7291         * modules/unistdio/u8-u8-vsprintf: Likewise.
7292         * modules/unistdio/u8-vasnprintf: Likewise.
7293         * modules/unistdio/u8-vasprintf: Likewise.
7294         * modules/unistdio/u8-vsnprintf: Likewise.
7295         * modules/unistdio/u8-vsprintf: Likewise.
7296         * modules/unistdio/u16-asnprintf: Likewise.
7297         * modules/unistdio/u16-asprintf: Likewise.
7298         * modules/unistdio/u16-snprintf: Likewise.
7299         * modules/unistdio/u16-sprintf: Likewise.
7300         * modules/unistdio/u16-u16-asnprintf: Likewise.
7301         * modules/unistdio/u16-u16-asprintf: Likewise.
7302         * modules/unistdio/u16-u16-snprintf: Likewise.
7303         * modules/unistdio/u16-u16-sprintf: Likewise.
7304         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7305         * modules/unistdio/u16-u16-vasprintf: Likewise.
7306         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7307         * modules/unistdio/u16-u16-vsprintf: Likewise.
7308         * modules/unistdio/u16-vasnprintf: Likewise.
7309         * modules/unistdio/u16-vasprintf: Likewise.
7310         * modules/unistdio/u16-vsnprintf: Likewise.
7311         * modules/unistdio/u16-vsprintf: Likewise.
7312         * modules/unistdio/u32-asnprintf: Likewise.
7313         * modules/unistdio/u32-asprintf: Likewise.
7314         * modules/unistdio/u32-snprintf: Likewise.
7315         * modules/unistdio/u32-sprintf: Likewise.
7316         * modules/unistdio/u32-u32-asnprintf: Likewise.
7317         * modules/unistdio/u32-u32-asprintf: Likewise.
7318         * modules/unistdio/u32-u32-snprintf: Likewise.
7319         * modules/unistdio/u32-u32-sprintf: Likewise.
7320         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7321         * modules/unistdio/u32-u32-vasprintf: Likewise.
7322         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7323         * modules/unistdio/u32-u32-vsprintf: Likewise.
7324         * modules/unistdio/u32-vasnprintf: Likewise.
7325         * modules/unistdio/u32-vasprintf: Likewise.
7326         * modules/unistdio/u32-vsnprintf: Likewise.
7327         * modules/unistdio/u32-vsprintf: Likewise.
7328         * modules/unistdio/ulc-asnprintf: Likewise.
7329         * modules/unistdio/ulc-asprintf: Likewise.
7330         * modules/unistdio/ulc-fprintf: Likewise.
7331         * modules/unistdio/ulc-snprintf: Likewise.
7332         * modules/unistdio/ulc-sprintf: Likewise.
7333         * modules/unistdio/ulc-vasnprintf: Likewise.
7334         * modules/unistdio/ulc-vasprintf: Likewise.
7335         * modules/unistdio/ulc-vfprintf: Likewise.
7336         * modules/unistdio/ulc-vsnprintf: Likewise.
7337         * modules/unistdio/ulc-vsprintf: Likewise.
7338         * modules/unistr/u8-check: Likewise.
7339         * modules/unistr/u8-chr: Likewise.
7340         * modules/unistr/u8-cmp: Likewise.
7341         * modules/unistr/u8-cmp2: Likewise.
7342         * modules/unistr/u8-cpy: Likewise.
7343         * modules/unistr/u8-cpy-alloc: Likewise.
7344         * modules/unistr/u8-endswith: Likewise.
7345         * modules/unistr/u8-mblen: Likewise.
7346         * modules/unistr/u8-mbsnlen: Likewise.
7347         * modules/unistr/u8-mbtouc: Likewise.
7348         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7349         * modules/unistr/u8-mbtoucr: Likewise.
7350         * modules/unistr/u8-move: Likewise.
7351         * modules/unistr/u8-next: Likewise.
7352         * modules/unistr/u8-prev: Likewise.
7353         * modules/unistr/u8-set: Likewise.
7354         * modules/unistr/u8-startswith: Likewise.
7355         * modules/unistr/u8-stpcpy: Likewise.
7356         * modules/unistr/u8-stpncpy: Likewise.
7357         * modules/unistr/u8-strcat: Likewise.
7358         * modules/unistr/u8-strchr: Likewise.
7359         * modules/unistr/u8-strcmp: Likewise.
7360         * modules/unistr/u8-strcoll: Likewise.
7361         * modules/unistr/u8-strcpy: Likewise.
7362         * modules/unistr/u8-strcspn: Likewise.
7363         * modules/unistr/u8-strdup: Likewise.
7364         * modules/unistr/u8-strlen: Likewise.
7365         * modules/unistr/u8-strmblen: Likewise.
7366         * modules/unistr/u8-strmbtouc: Likewise.
7367         * modules/unistr/u8-strncat: Likewise.
7368         * modules/unistr/u8-strncmp: Likewise.
7369         * modules/unistr/u8-strncpy: Likewise.
7370         * modules/unistr/u8-strnlen: Likewise.
7371         * modules/unistr/u8-strpbrk: Likewise.
7372         * modules/unistr/u8-strrchr: Likewise.
7373         * modules/unistr/u8-strspn: Likewise.
7374         * modules/unistr/u8-strstr: Likewise.
7375         * modules/unistr/u8-strtok: Likewise.
7376         * modules/unistr/u8-to-u16: Likewise.
7377         * modules/unistr/u8-to-u32: Likewise.
7378         * modules/unistr/u8-uctomb: Likewise.
7379         * modules/unistr/u16-check: Likewise.
7380         * modules/unistr/u16-chr: Likewise.
7381         * modules/unistr/u16-cmp: Likewise.
7382         * modules/unistr/u16-cmp2: Likewise.
7383         * modules/unistr/u16-cpy: Likewise.
7384         * modules/unistr/u16-cpy-alloc: Likewise.
7385         * modules/unistr/u16-endswith: Likewise.
7386         * modules/unistr/u16-mblen: Likewise.
7387         * modules/unistr/u16-mbsnlen: Likewise.
7388         * modules/unistr/u16-mbtouc: Likewise.
7389         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7390         * modules/unistr/u16-mbtoucr: Likewise.
7391         * modules/unistr/u16-move: Likewise.
7392         * modules/unistr/u16-next: Likewise.
7393         * modules/unistr/u16-prev: Likewise.
7394         * modules/unistr/u16-set: Likewise.
7395         * modules/unistr/u16-startswith: Likewise.
7396         * modules/unistr/u16-stpcpy: Likewise.
7397         * modules/unistr/u16-stpncpy: Likewise.
7398         * modules/unistr/u16-strcat: Likewise.
7399         * modules/unistr/u16-strchr: Likewise.
7400         * modules/unistr/u16-strcmp: Likewise.
7401         * modules/unistr/u16-strcoll: Likewise.
7402         * modules/unistr/u16-strcpy: Likewise.
7403         * modules/unistr/u16-strcspn: Likewise.
7404         * modules/unistr/u16-strdup: Likewise.
7405         * modules/unistr/u16-strlen: Likewise.
7406         * modules/unistr/u16-strmblen: Likewise.
7407         * modules/unistr/u16-strmbtouc: Likewise.
7408         * modules/unistr/u16-strncat: Likewise.
7409         * modules/unistr/u16-strncmp: Likewise.
7410         * modules/unistr/u16-strncpy: Likewise.
7411         * modules/unistr/u16-strnlen: Likewise.
7412         * modules/unistr/u16-strpbrk: Likewise.
7413         * modules/unistr/u16-strrchr: Likewise.
7414         * modules/unistr/u16-strspn: Likewise.
7415         * modules/unistr/u16-strstr: Likewise.
7416         * modules/unistr/u16-strtok: Likewise.
7417         * modules/unistr/u16-to-u32: Likewise.
7418         * modules/unistr/u16-to-u8: Likewise.
7419         * modules/unistr/u16-uctomb: Likewise.
7420         * modules/unistr/u32-check: Likewise.
7421         * modules/unistr/u32-chr: Likewise.
7422         * modules/unistr/u32-cmp: Likewise.
7423         * modules/unistr/u32-cmp2: Likewise.
7424         * modules/unistr/u32-cpy: Likewise.
7425         * modules/unistr/u32-cpy-alloc: Likewise.
7426         * modules/unistr/u32-endswith: Likewise.
7427         * modules/unistr/u32-mblen: Likewise.
7428         * modules/unistr/u32-mbsnlen: Likewise.
7429         * modules/unistr/u32-mbtouc: Likewise.
7430         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7431         * modules/unistr/u32-mbtoucr: Likewise.
7432         * modules/unistr/u32-move: Likewise.
7433         * modules/unistr/u32-next: Likewise.
7434         * modules/unistr/u32-prev: Likewise.
7435         * modules/unistr/u32-set: Likewise.
7436         * modules/unistr/u32-startswith: Likewise.
7437         * modules/unistr/u32-stpcpy: Likewise.
7438         * modules/unistr/u32-stpncpy: Likewise.
7439         * modules/unistr/u32-strcat: Likewise.
7440         * modules/unistr/u32-strchr: Likewise.
7441         * modules/unistr/u32-strcmp: Likewise.
7442         * modules/unistr/u32-strcoll: Likewise.
7443         * modules/unistr/u32-strcpy: Likewise.
7444         * modules/unistr/u32-strcspn: Likewise.
7445         * modules/unistr/u32-strdup: Likewise.
7446         * modules/unistr/u32-strlen: Likewise.
7447         * modules/unistr/u32-strmblen: Likewise.
7448         * modules/unistr/u32-strmbtouc: Likewise.
7449         * modules/unistr/u32-strncat: Likewise.
7450         * modules/unistr/u32-strncmp: Likewise.
7451         * modules/unistr/u32-strncpy: Likewise.
7452         * modules/unistr/u32-strnlen: Likewise.
7453         * modules/unistr/u32-strpbrk: Likewise.
7454         * modules/unistr/u32-strrchr: Likewise.
7455         * modules/unistr/u32-strspn: Likewise.
7456         * modules/unistr/u32-strstr: Likewise.
7457         * modules/unistr/u32-strtok: Likewise.
7458         * modules/unistr/u32-to-u16: Likewise.
7459         * modules/unistr/u32-to-u8: Likewise.
7460         * modules/unistr/u32-uctomb: Likewise.
7461         * modules/uniwbrk/u8-wordbreaks: Likewise.
7462         * modules/uniwbrk/u16-wordbreaks: Likewise.
7463         * modules/uniwbrk/u32-wordbreaks: Likewise.
7464         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7465         * modules/uniwbrk/wordbreak-property: Likewise.
7466         * modules/uniwidth/u8-strwidth: Likewise.
7467         * modules/uniwidth/u8-width: Likewise.
7468         * modules/uniwidth/u16-strwidth: Likewise.
7469         * modules/uniwidth/u16-width: Likewise.
7470         * modules/uniwidth/u32-strwidth: Likewise.
7471         * modules/uniwidth/u32-width: Likewise.
7472         * modules/uniwidth/width: Likewise.
7473         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7474         with $(LIBUNISTRING).
7475         * modules/unicase/ignorable-tests: Likewise.
7476         * modules/unicase/locale-language-tests: Likewise.
7477         * modules/unicase/tolower-tests: Likewise.
7478         * modules/unicase/totitle-tests: Likewise.
7479         * modules/unicase/toupper-tests: Likewise.
7480         * modules/unicase/u8-casecmp-tests: Likewise.
7481         * modules/unicase/u8-casecoll-tests: Likewise.
7482         * modules/unicase/u8-casefold-tests: Likewise.
7483         * modules/unicase/u8-is-cased-tests: Likewise.
7484         * modules/unicase/u8-is-casefolded-tests: Likewise.
7485         * modules/unicase/u8-is-lowercase-tests: Likewise.
7486         * modules/unicase/u8-is-titlecase-tests: Likewise.
7487         * modules/unicase/u8-is-uppercase-tests: Likewise.
7488         * modules/unicase/u8-tolower-tests: Likewise.
7489         * modules/unicase/u8-totitle-tests: Likewise.
7490         * modules/unicase/u8-toupper-tests: Likewise.
7491         * modules/unicase/u16-casecmp-tests: Likewise.
7492         * modules/unicase/u16-casecoll-tests: Likewise.
7493         * modules/unicase/u16-casefold-tests: Likewise.
7494         * modules/unicase/u16-is-cased-tests: Likewise.
7495         * modules/unicase/u16-is-casefolded-tests: Likewise.
7496         * modules/unicase/u16-is-lowercase-tests: Likewise.
7497         * modules/unicase/u16-is-titlecase-tests: Likewise.
7498         * modules/unicase/u16-is-uppercase-tests: Likewise.
7499         * modules/unicase/u16-tolower-tests: Likewise.
7500         * modules/unicase/u16-totitle-tests: Likewise.
7501         * modules/unicase/u16-toupper-tests: Likewise.
7502         * modules/unicase/u32-casecmp-tests: Likewise.
7503         * modules/unicase/u32-casecoll-tests: Likewise.
7504         * modules/unicase/u32-casefold-tests: Likewise.
7505         * modules/unicase/u32-is-cased-tests: Likewise.
7506         * modules/unicase/u32-is-casefolded-tests: Likewise.
7507         * modules/unicase/u32-is-lowercase-tests: Likewise.
7508         * modules/unicase/u32-is-titlecase-tests: Likewise.
7509         * modules/unicase/u32-is-uppercase-tests: Likewise.
7510         * modules/unicase/u32-tolower-tests: Likewise.
7511         * modules/unicase/u32-totitle-tests: Likewise.
7512         * modules/unicase/u32-toupper-tests: Likewise.
7513         * modules/unicase/ulc-casecmp-tests: Likewise.
7514         * modules/unicase/ulc-casecoll-tests: Likewise.
7515         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7516         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7517         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7518         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7519         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7520         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7521         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7522         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7523         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7524         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7525         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7526         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7527         * modules/unictype/bidicategory-byname-tests: Likewise.
7528         * modules/unictype/bidicategory-name-tests: Likewise.
7529         * modules/unictype/bidicategory-of-tests: Likewise.
7530         * modules/unictype/bidicategory-test-tests: Likewise.
7531         * modules/unictype/block-list-tests: Likewise.
7532         * modules/unictype/block-of-tests: Likewise.
7533         * modules/unictype/block-test-tests: Likewise.
7534         * modules/unictype/category-C-tests: Likewise.
7535         * modules/unictype/category-Cc-tests: Likewise.
7536         * modules/unictype/category-Cf-tests: Likewise.
7537         * modules/unictype/category-Cn-tests: Likewise.
7538         * modules/unictype/category-Co-tests: Likewise.
7539         * modules/unictype/category-Cs-tests: Likewise.
7540         * modules/unictype/category-L-tests: Likewise.
7541         * modules/unictype/category-Ll-tests: Likewise.
7542         * modules/unictype/category-Lm-tests: Likewise.
7543         * modules/unictype/category-Lo-tests: Likewise.
7544         * modules/unictype/category-Lt-tests: Likewise.
7545         * modules/unictype/category-Lu-tests: Likewise.
7546         * modules/unictype/category-M-tests: Likewise.
7547         * modules/unictype/category-Mc-tests: Likewise.
7548         * modules/unictype/category-Me-tests: Likewise.
7549         * modules/unictype/category-Mn-tests: Likewise.
7550         * modules/unictype/category-N-tests: Likewise.
7551         * modules/unictype/category-Nd-tests: Likewise.
7552         * modules/unictype/category-Nl-tests: Likewise.
7553         * modules/unictype/category-No-tests: Likewise.
7554         * modules/unictype/category-P-tests: Likewise.
7555         * modules/unictype/category-Pc-tests: Likewise.
7556         * modules/unictype/category-Pd-tests: Likewise.
7557         * modules/unictype/category-Pe-tests: Likewise.
7558         * modules/unictype/category-Pf-tests: Likewise.
7559         * modules/unictype/category-Pi-tests: Likewise.
7560         * modules/unictype/category-Po-tests: Likewise.
7561         * modules/unictype/category-Ps-tests: Likewise.
7562         * modules/unictype/category-S-tests: Likewise.
7563         * modules/unictype/category-Sc-tests: Likewise.
7564         * modules/unictype/category-Sk-tests: Likewise.
7565         * modules/unictype/category-Sm-tests: Likewise.
7566         * modules/unictype/category-So-tests: Likewise.
7567         * modules/unictype/category-Z-tests: Likewise.
7568         * modules/unictype/category-Zl-tests: Likewise.
7569         * modules/unictype/category-Zp-tests: Likewise.
7570         * modules/unictype/category-Zs-tests: Likewise.
7571         * modules/unictype/category-and-not-tests: Likewise.
7572         * modules/unictype/category-and-tests: Likewise.
7573         * modules/unictype/category-byname-tests: Likewise.
7574         * modules/unictype/category-name-tests: Likewise.
7575         * modules/unictype/category-none-tests: Likewise.
7576         * modules/unictype/category-of-tests: Likewise.
7577         * modules/unictype/category-or-tests: Likewise.
7578         * modules/unictype/category-test-withtable-tests: Likewise.
7579         * modules/unictype/combining-class-tests: Likewise.
7580         * modules/unictype/ctype-alnum-tests: Likewise.
7581         * modules/unictype/ctype-alpha-tests: Likewise.
7582         * modules/unictype/ctype-blank-tests: Likewise.
7583         * modules/unictype/ctype-cntrl-tests: Likewise.
7584         * modules/unictype/ctype-digit-tests: Likewise.
7585         * modules/unictype/ctype-graph-tests: Likewise.
7586         * modules/unictype/ctype-lower-tests: Likewise.
7587         * modules/unictype/ctype-print-tests: Likewise.
7588         * modules/unictype/ctype-punct-tests: Likewise.
7589         * modules/unictype/ctype-space-tests: Likewise.
7590         * modules/unictype/ctype-upper-tests: Likewise.
7591         * modules/unictype/ctype-xdigit-tests: Likewise.
7592         * modules/unictype/decimal-digit-tests: Likewise.
7593         * modules/unictype/digit-tests: Likewise.
7594         * modules/unictype/mirror-tests: Likewise.
7595         * modules/unictype/numeric-tests: Likewise.
7596         * modules/unictype/property-alphabetic-tests: Likewise.
7597         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7598         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7599         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7600         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7601         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7602         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7603         * modules/unictype/property-bidi-control-tests: Likewise.
7604         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7605         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7606         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7607         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7608         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7609         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7610         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7611         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7612         * modules/unictype/property-bidi-pdf-tests: Likewise.
7613         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7614         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7615         * modules/unictype/property-byname-tests: Likewise.
7616         * modules/unictype/property-combining-tests: Likewise.
7617         * modules/unictype/property-composite-tests: Likewise.
7618         * modules/unictype/property-currency-symbol-tests: Likewise.
7619         * modules/unictype/property-dash-tests: Likewise.
7620         * modules/unictype/property-decimal-digit-tests: Likewise.
7621         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7622         * modules/unictype/property-deprecated-tests: Likewise.
7623         * modules/unictype/property-diacritic-tests: Likewise.
7624         * modules/unictype/property-extender-tests: Likewise.
7625         * modules/unictype/property-format-control-tests: Likewise.
7626         * modules/unictype/property-grapheme-base-tests: Likewise.
7627         * modules/unictype/property-grapheme-extend-tests: Likewise.
7628         * modules/unictype/property-grapheme-link-tests: Likewise.
7629         * modules/unictype/property-hex-digit-tests: Likewise.
7630         * modules/unictype/property-hyphen-tests: Likewise.
7631         * modules/unictype/property-id-continue-tests: Likewise.
7632         * modules/unictype/property-id-start-tests: Likewise.
7633         * modules/unictype/property-ideographic-tests: Likewise.
7634         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7635         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7636         * modules/unictype/property-ignorable-control-tests: Likewise.
7637         * modules/unictype/property-iso-control-tests: Likewise.
7638         * modules/unictype/property-join-control-tests: Likewise.
7639         * modules/unictype/property-left-of-pair-tests: Likewise.
7640         * modules/unictype/property-line-separator-tests: Likewise.
7641         * modules/unictype/property-logical-order-exception-tests: Likewise.
7642         * modules/unictype/property-lowercase-tests: Likewise.
7643         * modules/unictype/property-math-tests: Likewise.
7644         * modules/unictype/property-non-break-tests: Likewise.
7645         * modules/unictype/property-not-a-character-tests: Likewise.
7646         * modules/unictype/property-numeric-tests: Likewise.
7647         * modules/unictype/property-other-alphabetic-tests: Likewise.
7648         * modules/unictype/property-other-default-ignorable-code-point-tests:
7649         Likewise.
7650         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7651         * modules/unictype/property-other-id-continue-tests: Likewise.
7652         * modules/unictype/property-other-id-start-tests: Likewise.
7653         * modules/unictype/property-other-lowercase-tests: Likewise.
7654         * modules/unictype/property-other-math-tests: Likewise.
7655         * modules/unictype/property-other-uppercase-tests: Likewise.
7656         * modules/unictype/property-paired-punctuation-tests: Likewise.
7657         * modules/unictype/property-paragraph-separator-tests: Likewise.
7658         * modules/unictype/property-pattern-syntax-tests: Likewise.
7659         * modules/unictype/property-pattern-white-space-tests: Likewise.
7660         * modules/unictype/property-private-use-tests: Likewise.
7661         * modules/unictype/property-punctuation-tests: Likewise.
7662         * modules/unictype/property-quotation-mark-tests: Likewise.
7663         * modules/unictype/property-radical-tests: Likewise.
7664         * modules/unictype/property-sentence-terminal-tests: Likewise.
7665         * modules/unictype/property-soft-dotted-tests: Likewise.
7666         * modules/unictype/property-space-tests: Likewise.
7667         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7668         * modules/unictype/property-test-tests: Likewise.
7669         * modules/unictype/property-titlecase-tests: Likewise.
7670         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7671         * modules/unictype/property-unified-ideograph-tests: Likewise.
7672         * modules/unictype/property-uppercase-tests: Likewise.
7673         * modules/unictype/property-variation-selector-tests: Likewise.
7674         * modules/unictype/property-white-space-tests: Likewise.
7675         * modules/unictype/property-xid-continue-tests: Likewise.
7676         * modules/unictype/property-xid-start-tests: Likewise.
7677         * modules/unictype/property-zero-width-tests: Likewise.
7678         * modules/unictype/scripts-tests: Likewise.
7679         * modules/unictype/syntax-c-ident-tests: Likewise.
7680         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7681         * modules/unictype/syntax-java-ident-tests: Likewise.
7682         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7683         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7684         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7685         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7686         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7687         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7688         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7689         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7690         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7691         * modules/uniname/uniname-tests: Likewise.
7692         * modules/uninorm/canonical-decomposition-tests: Likewise.
7693         * modules/uninorm/compat-decomposition-tests: Likewise.
7694         * modules/uninorm/composition-tests: Likewise.
7695         * modules/uninorm/decomposing-form-tests: Likewise.
7696         * modules/uninorm/decomposition-tests: Likewise.
7697         * modules/uninorm/filter-tests: Likewise.
7698         * modules/uninorm/nfc-tests: Likewise.
7699         * modules/uninorm/nfd-tests: Likewise.
7700         * modules/uninorm/nfkc-tests: Likewise.
7701         * modules/uninorm/nfkd-tests: Likewise.
7702         * modules/uninorm/u8-normcmp-tests: Likewise.
7703         * modules/uninorm/u8-normcoll-tests: Likewise.
7704         * modules/uninorm/u16-normcmp-tests: Likewise.
7705         * modules/uninorm/u16-normcoll-tests: Likewise.
7706         * modules/uninorm/u32-normcmp-tests: Likewise.
7707         * modules/uninorm/u32-normcoll-tests: Likewise.
7708         * modules/unistdio/u8-asnprintf-tests: Likewise.
7709         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7710         * modules/unistdio/u8-vasprintf-tests: Likewise.
7711         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7712         * modules/unistdio/u8-vsprintf-tests: Likewise.
7713         * modules/unistdio/u16-asnprintf-tests: Likewise.
7714         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7715         * modules/unistdio/u16-vasprintf-tests: Likewise.
7716         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7717         * modules/unistdio/u16-vsprintf-tests: Likewise.
7718         * modules/unistdio/u32-asnprintf-tests: Likewise.
7719         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7720         * modules/unistdio/u32-vasprintf-tests: Likewise.
7721         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7722         * modules/unistdio/u32-vsprintf-tests: Likewise.
7723         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7724         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7725         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7726         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7727         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7728         * modules/unistr/u8-check-tests: Likewise.
7729         * modules/unistr/u8-chr-tests: Likewise.
7730         * modules/unistr/u8-cmp-tests: Likewise.
7731         * modules/unistr/u8-cmp2-tests: Likewise.
7732         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7733         * modules/unistr/u8-cpy-tests: Likewise.
7734         * modules/unistr/u8-mblen-tests: Likewise.
7735         * modules/unistr/u8-mbsnlen-tests: Likewise.
7736         * modules/unistr/u8-mbtouc-tests: Likewise.
7737         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7738         * modules/unistr/u8-mbtoucr-tests: Likewise.
7739         * modules/unistr/u8-move-tests: Likewise.
7740         * modules/unistr/u8-next-tests: Likewise.
7741         * modules/unistr/u8-prev-tests: Likewise.
7742         * modules/unistr/u8-set-tests: Likewise.
7743         * modules/unistr/u8-stpcpy-tests: Likewise.
7744         * modules/unistr/u8-stpncpy-tests: Likewise.
7745         * modules/unistr/u8-strcat-tests: Likewise.
7746         * modules/unistr/u8-strcmp-tests: Likewise.
7747         * modules/unistr/u8-strcoll-tests: Likewise.
7748         * modules/unistr/u8-strcpy-tests: Likewise.
7749         * modules/unistr/u8-strdup-tests: Likewise.
7750         * modules/unistr/u8-strlen-tests: Likewise.
7751         * modules/unistr/u8-strmblen-tests: Likewise.
7752         * modules/unistr/u8-strmbtouc-tests: Likewise.
7753         * modules/unistr/u8-strncat-tests: Likewise.
7754         * modules/unistr/u8-strncmp-tests: Likewise.
7755         * modules/unistr/u8-strncpy-tests: Likewise.
7756         * modules/unistr/u8-strnlen-tests: Likewise.
7757         * modules/unistr/u8-to-u16-tests: Likewise.
7758         * modules/unistr/u8-to-u32-tests: Likewise.
7759         * modules/unistr/u8-uctomb-tests: Likewise.
7760         * modules/unistr/u16-check-tests: Likewise.
7761         * modules/unistr/u16-chr-tests: Likewise.
7762         * modules/unistr/u16-cmp-tests: Likewise.
7763         * modules/unistr/u16-cmp2-tests: Likewise.
7764         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7765         * modules/unistr/u16-cpy-tests: Likewise.
7766         * modules/unistr/u16-mblen-tests: Likewise.
7767         * modules/unistr/u16-mbsnlen-tests: Likewise.
7768         * modules/unistr/u16-mbtouc-tests: Likewise.
7769         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7770         * modules/unistr/u16-mbtoucr-tests: Likewise.
7771         * modules/unistr/u16-move-tests: Likewise.
7772         * modules/unistr/u16-next-tests: Likewise.
7773         * modules/unistr/u16-prev-tests: Likewise.
7774         * modules/unistr/u16-set-tests: Likewise.
7775         * modules/unistr/u16-stpcpy-tests: Likewise.
7776         * modules/unistr/u16-stpncpy-tests: Likewise.
7777         * modules/unistr/u16-strcat-tests: Likewise.
7778         * modules/unistr/u16-strcmp-tests: Likewise.
7779         * modules/unistr/u16-strcoll-tests: Likewise.
7780         * modules/unistr/u16-strcpy-tests: Likewise.
7781         * modules/unistr/u16-strdup-tests: Likewise.
7782         * modules/unistr/u16-strlen-tests: Likewise.
7783         * modules/unistr/u16-strmblen-tests: Likewise.
7784         * modules/unistr/u16-strmbtouc-tests: Likewise.
7785         * modules/unistr/u16-strncat-tests: Likewise.
7786         * modules/unistr/u16-strncmp-tests: Likewise.
7787         * modules/unistr/u16-strncpy-tests: Likewise.
7788         * modules/unistr/u16-strnlen-tests: Likewise.
7789         * modules/unistr/u16-to-u32-tests: Likewise.
7790         * modules/unistr/u16-to-u8-tests: Likewise.
7791         * modules/unistr/u16-uctomb-tests: Likewise.
7792         * modules/unistr/u32-check-tests: Likewise.
7793         * modules/unistr/u32-chr-tests: Likewise.
7794         * modules/unistr/u32-cmp-tests: Likewise.
7795         * modules/unistr/u32-cmp2-tests: Likewise.
7796         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7797         * modules/unistr/u32-cpy-tests: Likewise.
7798         * modules/unistr/u32-mblen-tests: Likewise.
7799         * modules/unistr/u32-mbsnlen-tests: Likewise.
7800         * modules/unistr/u32-mbtouc-tests: Likewise.
7801         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7802         * modules/unistr/u32-mbtoucr-tests: Likewise.
7803         * modules/unistr/u32-move-tests: Likewise.
7804         * modules/unistr/u32-next-tests: Likewise.
7805         * modules/unistr/u32-prev-tests: Likewise.
7806         * modules/unistr/u32-set-tests: Likewise.
7807         * modules/unistr/u32-stpcpy-tests: Likewise.
7808         * modules/unistr/u32-stpncpy-tests: Likewise.
7809         * modules/unistr/u32-strcat-tests: Likewise.
7810         * modules/unistr/u32-strcmp-tests: Likewise.
7811         * modules/unistr/u32-strcoll-tests: Likewise.
7812         * modules/unistr/u32-strcpy-tests: Likewise.
7813         * modules/unistr/u32-strdup-tests: Likewise.
7814         * modules/unistr/u32-strlen-tests: Likewise.
7815         * modules/unistr/u32-strmblen-tests: Likewise.
7816         * modules/unistr/u32-strmbtouc-tests: Likewise.
7817         * modules/unistr/u32-strncat-tests: Likewise.
7818         * modules/unistr/u32-strncmp-tests: Likewise.
7819         * modules/unistr/u32-strncpy-tests: Likewise.
7820         * modules/unistr/u32-strnlen-tests: Likewise.
7821         * modules/unistr/u32-to-u16-tests: Likewise.
7822         * modules/unistr/u32-to-u8-tests: Likewise.
7823         * modules/unistr/u32-uctomb-tests: Likewise.
7824         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7825         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7826         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7827         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7828         * modules/uniwidth/u8-strwidth-tests: Likewise.
7829         * modules/uniwidth/u8-width-tests: Likewise.
7830         * modules/uniwidth/u16-strwidth-tests: Likewise.
7831         * modules/uniwidth/u16-width-tests: Likewise.
7832         * modules/uniwidth/u32-strwidth-tests: Likewise.
7833         * modules/uniwidth/u32-width-tests: Likewise.
7834         * modules/uniwidth/width-tests: Likewise.
7835
7836 2010-05-18  Richard Jones  <rjones@redhat.com>
7837
7838         doc: users.txt: list hivex
7839         * users.txt: Add hivex.
7840
7841 2010-05-18  Richard Jones  <rjones@redhat.com>
7842
7843         doc: users.txt: list febootstrap
7844         * users.txt: Add febootstrap.
7845
7846 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7847
7848         bootstrap: fix an error when gnulib is not used as a git submodule
7849         * build-aux/bootstrap (gnulib_path): If its length is zero then
7850         assign "gnulib" to it.
7851         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7852
7853 2010-05-16  Bruno Haible  <bruno@clisp.org>
7854
7855         Avoid autoconf warnings about AM_ICONV.
7856         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7857         2.64.
7858
7859 2010-05-16  Bruno Haible  <bruno@clisp.org>
7860
7861         absolute-header: Make the macro usable in more situations.
7862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7863         from gl_ABSOLUTE_HEADER.
7864         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7865
7866 2010-05-16  James Youngman  <jay@gnu.org>
7867
7868         doc: update users.txt
7869         * users.txt: Add CSSC.
7870
7871 2010-05-16  Jim Meyering  <meyering@redhat.com>
7872
7873         init.sh: fix an error in the previous change; add more comments
7874         * tests/init.sh: Compare exit code in loop against 9, not 2.
7875         Patch by Bruno Haible.
7876         Make the two tests more similar by adding an empty "then" clause.
7877         Add comments.
7878
7879         init.sh: avoid unnecessary shell re-exec
7880         * tests/init.sh: Improve the re-exec-required check to first test the
7881         current shell.  If it passes the test, do not search for a shell that
7882         does pass, and do not re-exec.  This test is particularly contorted to
7883         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7884         of $(...) evokes a syntax error and causes immediate shell exit with
7885         status 2.  Bruno Haible reported that the re-exec made it impossible
7886         to single-step through any init.sh-using script.
7887
7888 2010-05-16  Bruno Haible  <bruno@clisp.org>
7889
7890         Fix collision between gnulib's and libintl's printf replacements.
7891         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7892         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7893         (printf): When using GNU C, map the __printf__ function to rpl_printf
7894         via __asm__. When not using GNU C, define rpl_printf instead of
7895         __printf__.
7896         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7897         commit.
7898         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7899         commit.
7900         * m4/asm-underscore.m4: New file.
7901         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7902         * modules/stdio (Files): Add m4/asm-underscore.m4.
7903         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7904         Reported by Ben Pfaff.
7905
7906 2010-05-16  Bruno Haible  <bruno@clisp.org>
7907
7908         verify: Avoid skipping the test on openSUSE 11.0.
7909         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7910
7911 2010-05-13  Bruno Haible  <bruno@clisp.org>
7912
7913         Avoid useless warnings from G++.
7914         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7915         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7916         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7917
7918 2010-05-11  Jim Meyering  <meyering@redhat.com>
7919
7920         maint.mk: tweak preceding change
7921         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7922         regexps tighter by anchoring at EOL, and make the new group "shy"
7923         for slightly decreased overhead.
7924
7925 2010-05-11  Eric Blake  <eblake@redhat.com>
7926
7927         maint.mk: gnulib doesn't guarantee NSIG
7928         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7929
7930 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7931
7932         test-pwrite.c: Remove unused variable declaration.
7933         * tests/test-pwrite.c (main): Remove read_buf declaration.
7934
7935         Remove useless test-pwrite.sh file.
7936         * tests/test-pwrite.sh: Delete file.
7937         * modules/pwrite-tests: Remove references.
7938         Reported by Bruno Haible.
7939
7940 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7941
7942         init.sh: fix a typo
7943         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7944
7945 2010-05-10  Jim Meyering  <meyering@redhat.com>
7946
7947         maint.mk: avoid using a temporary file in the always-defined-macros check
7948         * top/maint.mk (.re-defmac): Remove rule.
7949         (gl_trap_): Remove definition.
7950         (sc_prohibit_always-defined_macros): Rewrite not to create and
7951         depend on a temporary file.  Instead, depend on GNU grep's ability
7952         to read a list of regular expressions from stdin when given "-f -".
7953
7954 2010-05-09  Bruno Haible  <bruno@clisp.org>
7955
7956         Update to GNU gettext 0.18, part 1.
7957         * m4/gettext.m4: Update to GNU gettext 0.18.
7958         * m4/intl.m4: Likewise.
7959         * m4/po.m4: Likewise.
7960         * modules/gettext (Files): Add m4/fcntl-o.m4.
7961         (configure.ac): Require gettext infrastructure from version 0.18.
7962
7963 2010-05-09  Jim Meyering  <meyering@redhat.com>
7964
7965         init.sh: enable MALLOC_PERTURB_
7966         * tests/init.sh: Enable glibc's malloc-perturbing option.
7967
7968         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7969         With my recent change in init.sh from the two-line form:
7970             -#   : ${srcdir=.}
7971             -#   . "$srcdir/init.sh"; path_prepend_ .
7972             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7973         I noticed that using the one-line form would cause this test
7974         to fail with a false-positive, or to stop working altogether,
7975         depending on whether help-version changed or all the tests did.
7976         * top/maint.mk (_hv_regex): Remove this definition.
7977         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7978         (_hv_regex_strong): Use a stronger regex to check for conformance.
7979         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7980         Give a separate diagnostic for lack of conforming use.
7981
7982         maint.mk: prohibit definition of symbols defined by gnulib
7983         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7984         definition of symbols defined by gnulib.
7985
7986 2010-05-09  Bruno Haible  <bruno@clisp.org>
7987
7988         acl: Avoid test failure on Cygwin-hosted mingw.
7989         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7990
7991 2010-05-09  Bruno Haible  <bruno@clisp.org>
7992
7993         error: Use system's fcntl function.
7994         * lib/error.c (fcntl): Undefine.
7995
7996 2010-05-09  Jim Meyering  <meyering@redhat.com>
7997
7998         verify: adjust formatting to be more consistent
7999         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8000         argument-list '('s, and after one comma.
8001
8002 2010-05-09  Bruno Haible  <bruno@clisp.org>
8003
8004         error: More reliable output on mingw.
8005         * lib/error.c: Include <windows.h>.
8006         (is_open): New function.
8007         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8008         defined.
8009
8010 2010-05-09  Bruno Haible  <bruno@clisp.org>
8011
8012         vasnprintf: Fix syntax errors in libintl build on mingw.
8013         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8014         pad_ourselves and prec_ourselves after use.
8015
8016 2010-05-08  Bruno Haible  <bruno@clisp.org>
8017
8018         * lib/config.charset: Update comments for Cygwin 1.7.
8019         * lib/localcharset.c: Likewise.
8020
8021 2010-05-07  Jim Meyering  <meyering@redhat.com>
8022
8023         init.sh: improve comments
8024         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8025         . "${srcdir=.}/init.sh"; path_prepend_ .
8026         Add a note about path_prepend_ and the alternative of using
8027         TESTS_ENVIRONMENT.
8028
8029 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8030
8031         exclude: Unescape hashed patterns in wildcard mode.
8032         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8033         to the hash list.
8034         * tests/test-exclude8.sh: New test case.
8035         * modules/exclude-tests: Add new test.
8036
8037 2010-05-05  Eric Blake  <eblake@redhat.com>
8038
8039         verify: automate tests
8040         * modules/verify-tests: New module.
8041         * tests/test-verify.sh: New file.
8042         * tests/test-verify.c: Guard each negative test with a unique id.
8043         Also avoid warning about unused left hand of comma expressions.
8044
8045 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8046
8047         Further improvements to verify.h, suggested by Eric Blake.
8048         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8049         the GL_* versions, to avoid collision with OpenGL.
8050         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8051         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8052         than testing merely whether it's defined.
8053
8054         Modify verify.h to pacify gcc -Wredundant_decls.
8055         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8056         These use the prefix "GL_" since they're likely to be useful elsewhere.
8057         We may need to break them out into a different .h file.
8058         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8059         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8060         of verify_function__.
8061
8062 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8063
8064         Tests for module pwrite.
8065         * modules/pwrite-tests: New file.
8066         * tests/test-pwrite.sh: New file.
8067         * tests/test-pwrite.c: New file.
8068
8069         New module pwrite.
8070         * lib/unistd.in.h (pwrite): New declaration.
8071         * lib/pwrite.c: New file, from glibc with modifications.
8072         * m4/pwrite.m4: New file.
8073         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8074         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8075         REPLACE_PWRITE.
8076         * modules/pwrite: New file.
8077         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8078         REPLACE_PWRITE.
8079         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8080         * doc/posix-functions/pwrite.texi: Mention the new module.
8081
8082 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8083
8084         pread: Update documentation.
8085         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8086
8087 2010-05-04  Eric Blake  <eblake@redhat.com>
8088
8089         docs: update cygwin progress
8090         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8091         this bug.
8092         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8093         Added in cygwin 1.7.2.
8094         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8095         Likewise.
8096         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8097         Likewise.
8098         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8099         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8100         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8101         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8102         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8103         Mention nproc module.
8104         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8105         bug in cygwin 1.7.5 addition.
8106         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8107         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8108         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8109         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8110         1.7.5.
8111         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8112         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8113         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8114         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8115         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8116         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8117         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8118         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8119         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8120         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8121         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8122         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8123         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8124         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8125         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8126         Likewise.
8127         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8128         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8129         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8130         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8131         Likewise.
8132         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8133         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8134         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8135         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8136         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8137         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8138         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8139         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8140         Likewise.
8141         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8142         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8143         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8144         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8145         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8146         Likewise.
8147         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8148         Likewise.
8149         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8150         Likewise.
8151         * doc/glibc-functions/xdrrec_endofrecord.texi
8152         (xdrrec_endofrecord): Likewise.
8153         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8154         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8155         Likewise.
8156         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8157         Likewise.
8158
8159 2010-05-04  Jim Meyering  <meyering@redhat.com>
8160
8161         gendocs.sh: make its "-s FILE" option more useful
8162         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8163         $PACKAGE to reflect the probably-different basename of "FILE".
8164
8165 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8166
8167         bootstrap: don't ignore download_po_files failure
8168         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8169         failure.
8170
8171 2010-05-03  Jim Meyering  <meyering@redhat.com>
8172
8173         maint.mk: allow to pass options to gendocs.sh
8174         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8175         (gendocs_options_): New overridable variable.
8176
8177         gnu-web-doc-update: don't ignore configure or build failure
8178         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8179
8180         announce-gen: backslash-escape '@'s in --help output
8181         * build-aux/announce-gen: Fix syntax errors.
8182
8183         maint.mk, announce-gen: allow project-specific announcement mail headers
8184         * top/maint.mk (translation_project_): Define default.
8185         (announcement_Cc_, announcement_mail_headers_): Likewise.
8186         (announcement): Invoke announce-gen with new --mail-headers option.
8187         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8188
8189         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8190         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8191         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8192         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8193         line in the "err2" output file when running "make check" in verbose
8194         mode (i.e., with set -x enabled).
8195
8196 2010-05-03  Bruno Haible  <bruno@clisp.org>
8197
8198         wctob: Fix for weird platforms.
8199         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8200         argument value.
8201
8202 2010-05-03  Jim Meyering  <meyering@redhat.com>
8203
8204         maint.mk: prohibit unwarranted use of <strings.h>
8205         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8206         strings.h in a file that does not also use strcasecmp, strncasecmp,
8207         ffs or ffsll.
8208
8209         maint.mk: remove obsolete comments
8210         * top/maint.mk: Remove stale, commented-out rules.
8211
8212 2010-05-02  Bruno Haible  <bruno@clisp.org>
8213
8214         wcwidth: Declare also when it's aliased.
8215         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8216         macro.
8217
8218 2010-05-02  Bruno Haible  <bruno@clisp.org>
8219
8220         Fix regression from 2010-04-25.
8221         * gnulib-tool (func_modules_transitive_closure): Check the status of
8222         all modules, not only of the tests that are of the form foo-tests where
8223         foo is a module.
8224
8225 2010-05-02  Bruno Haible  <bruno@clisp.org>
8226
8227         wctob: Work around nasty Cygwin 1.7.2 bug.
8228         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8229         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8230
8231 2010-05-01  Bruno Haible  <bruno@clisp.org>
8232
8233         fpurge: Sharper test.
8234         * tests/test-fpurge.c (main): Add one more ftell check.
8235         * modules/fpurge-tests (Depends-on): Add ftell.
8236         Suggested by Eric Blake.
8237
8238 2010-05-01  Bruno Haible  <bruno@clisp.org>
8239
8240         ftello: Another test.
8241         * tests/test-ftello3.c: New file.
8242         * modules/ftello-tests (Files): Add it.
8243         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8244         MOSTLYCLEANFILES.
8245
8246         ftell: Another test.
8247         * tests/test-ftell3.c: New file.
8248         * modules/ftell-tests (Files): Add it.
8249         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8250         MOSTLYCLEANFILES.
8251
8252 2010-05-01  Bruno Haible  <bruno@clisp.org>
8253
8254         ftell, ftello: Work around Solaris bug.
8255         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8256         * lib/ftello.c: Include stdio-impl.h.
8257         (ftello): On Solaris, when _IOWRT is set, compute the result without
8258         looking at _IOREAD.
8259         * modules/ftello (Files): Add lib/stdio-impl.h.
8260         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8261         * doc/posix-functions/ftello.texi: Likewise.
8262         Reported by Eric Blake.
8263
8264 2010-05-01  Bruno Haible  <bruno@clisp.org>
8265
8266         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8267         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8268         the _IOWRT flag is also set.
8269
8270 2010-05-01  Bruno Haible  <bruno@clisp.org>
8271
8272         Fix doc about a HP-UX stdio bug.
8273         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8274         * doc/posix-functions/ftello.texi: Likewise.
8275
8276 2010-05-01  Bruno Haible  <bruno@clisp.org>
8277
8278         lseek test: Fix failure on Solaris.
8279         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8280         output.
8281
8282 2010-04-30  Jim Meyering  <meyering@redhat.com>
8283
8284         bootstrap: don't ignore failure to generate po*/Makevars
8285         * build-aux/bootstrap (with_gettext): Don't ignore failure
8286         to create po/Makevars or runtime-po/Makevars.
8287
8288 2010-04-29  Eric Blake  <eblake@redhat.com>
8289
8290         headers: relax license to LGPLv2+
8291         * modules/fcntl-h (License): Relax license.
8292         * modules/getopt-posix (License): Likewise.
8293         * modules/locale (License): Likewise.
8294         * modules/math (License): Likewise.
8295         * modules/pty (License): Likewise.
8296         * modules/sched (License): Likewise.
8297         * modules/search (License): Likewise.
8298         * modules/spawn (License): Likewise.
8299         * modules/stdarg (License): Likewise.
8300         * modules/sysexits (License): Likewise.
8301
8302 2010-04-29  Jim Meyering  <meyering@redhat.com>
8303
8304         inttypes: relax license to LGPLv2+
8305         * modules/inttypes (License): Relax license.
8306
8307 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8308
8309         * top/maint.mk (indent): Run twice to produce idempotent results.
8310
8311 2010-04-28  Bruno Haible  <bruno@clisp.org>
8312
8313         getdate: Generate getdate.c in the source directory.
8314         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8315         MOSTLYCLEANFILES.
8316         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8317
8318 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8319
8320         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8321         is not declared as a const *; avoid warnings in that case.
8322
8323 2010-04-28  Eric Blake  <eblake@redhat.com>
8324
8325         canonicalize-lgpl: avoid compiler warning
8326         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8327         declaration' / 'extraneous semicolon' warning with some compilers.
8328         Reported by Andreas Gruenbacher.
8329
8330 2010-04-28  Jim Meyering  <meyering@redhat.com>
8331
8332         init.sh: ensure a more reliable exit status when exiting via trap
8333         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8334         Inspired by patches from Dmitry V. Levin.
8335         Also trap on signal 3 (SIGQUIT).
8336
8337 2010-04-27  Bruno Haible  <bruno@clisp.org>
8338
8339         Update doc about utimes().
8340         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8341         'utimens' module.
8342         Reported by Andreas Gruenbacher <agruen@suse.de>.
8343
8344 2010-04-27  Eric Blake  <eblake@redhat.com>
8345
8346         full-read, full-write: relax license
8347         * modules/full-read (License): Drop to LGPLv2+.
8348         * modules/full-write (License): Likewise.
8349         * modules/safe-read (License): Likewise.
8350         * modules/safe-write (License): Likewise.
8351
8352         pthread: mention library for linking
8353         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8354
8355 2010-04-27  Jim Meyering  <meyering@redhat.com>
8356
8357         maint.mk: fix a bug introduced in last change
8358         * top/maint.mk (gl_assured_headers_): Now that all names are on
8359         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8360         is not anchored to end of word, it should be adequate.
8361
8362         maint.mk: avoid side-effect in latest syntax-check
8363         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8364         to run commands via $(shell...), and hence to incur cost only when
8365         the new rule is actually run.
8366
8367         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8368         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8369         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8370         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8371         (gl_assured_headers_, az_, AZ_): Define.
8372         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8373
8374 2010-04-26  Jim Meyering  <jim@meyering.net>
8375             Bruno Haible  <bruno@clisp.org>
8376
8377         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8378         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8379         Prompted by an exchange with Gilles Espinasse.
8380
8381 2010-04-26  Jim Meyering  <meyering@redhat.com>
8382
8383         git-version-gen: aesthetic tweak
8384         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8385         so that the command remains on a single line.
8386
8387 2010-04-26  Eric Blake  <eblake@redhat.com>
8388
8389         git-version-gen: allow use on EBCDIC hosts
8390         * build-aux/git-version-gen (dirty): Use literal rather than tying
8391         ourselves to ascii.
8392         Reported by Steve Goetze.
8393
8394 2010-04-25  Bruno Haible  <bruno@clisp.org>
8395
8396         netdb: Add support for GNULIB_POSIXCHECK.
8397         * lib/netdb.in.h: Include warn-on-use.h.
8398         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8399         functions are used when GNULIB_POSIXCHECK is defined and the
8400         getaddrinfo module is not in use.
8401         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8402         freeaddrinfo, gai_strerror, getnameinfo are declared.
8403         * modules/netdb (Depends-on): Add warn-on-use.
8404         (Makefile.am): Include warn-on-use.h in netdb.h.
8405
8406 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8407
8408         build: avoid "make check" failure without .git/ directory
8409         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8410         there is no .git/ directory.
8411
8412 2010-04-25  Bruno Haible  <bruno@clisp.org>
8413
8414         ptsname: Fix misuse of ttyname_r.
8415         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8416         of errno.
8417
8418 2010-04-25  Bruno Haible  <bruno@clisp.org>
8419
8420         ttyname_r: Make it work on Solaris 10.
8421         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8422         if the system function has the POSIX declaration. Test whether the
8423         function fails if the buffer is less than 128 bytes large.
8424         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8425         system's ttyname_r function. Provide a reasonably large buffer.
8426         * modules/ttyname_r (Depends-on): Add extensions.
8427         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8428
8429 2010-04-25  Bruno Haible  <bruno@clisp.org>
8430
8431         Use the 'extensions' module for some more functions on Solaris.
8432         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8433         module.
8434         * doc/posix-functions/ctime_r.texi: Likewise.
8435         * doc/posix-functions/getgrgid_r.texi: Likewise.
8436         * doc/posix-functions/getgrnam_r.texi: Likewise.
8437         * doc/posix-functions/getpwnam_r.texi: Likewise.
8438         * doc/posix-functions/getpwuid_r.texi: Likewise.
8439         * doc/posix-functions/readdir_r.texi: Likewise.
8440         * doc/posix-functions/sigwait.texi: Likewise.
8441         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8442         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8443
8444 2010-04-25  Bruno Haible  <bruno@clisp.org>
8445
8446         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8447         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8448         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8449         * lib/ttyname_r.c: Include <limits.h>.
8450         (ttyname_r): Define using the system's ttyname_r function, if it exists
8451         and not on Solaris.
8452         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8453         set.
8454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8455         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8456         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8457         Reported by Simon Josefsson.
8458
8459 2010-04-25  Bruno Haible  <bruno@clisp.org>
8460
8461         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8462         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8463         * doc/posix-functions/ctime_r.texi: Likewise.
8464         * doc/posix-functions/getgrgid_r.texi: Likewise.
8465         * doc/posix-functions/getgrnam_r.texi: Likewise.
8466         * doc/posix-functions/getlogin_r.texi: Likewise.
8467         * doc/posix-functions/getpwnam_r.texi: Likewise.
8468         * doc/posix-functions/getpwuid_r.texi: Likewise.
8469         * doc/posix-functions/readdir_r.texi: Likewise.
8470         * doc/posix-functions/sigwait.texi: Likewise.
8471         * doc/posix-functions/ttyname_r.texi: Likewise.
8472         Reported by Simon Josefsson.
8473
8474 2010-04-25  Bruno Haible  <bruno@clisp.org>
8475
8476         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8477         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8478         also to --create-testdir.
8479         (func_acceptable): Don't consider the status of *-tests modules here.
8480         (func_modules_transitive_closure): Consider it here, before including a
8481         test module.
8482         (func_import, func_create_testdir): Set inc_all_direct_tests,
8483         inc_all_indirect_tests.
8484         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8485         --create-testdir and --create-megatestdir.
8486
8487 2010-04-25  Bruno Haible  <bruno@clisp.org>
8488
8489         gnulib-tool: Add --without-*-tests options.
8490         * gnulib-tool (func_usage): Document the --without-*-tests options.
8491         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8492         excl_unportable_tests): New variables.
8493         Fail if they are specified with --import or --update.
8494         (func_acceptable): Respect the excl_*_tests variables.
8495         (func_import): Set the excl_*_tests variables to empty.
8496
8497 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8498             Bruno Haible  <bruno@clisp.org>
8499
8500         Work around a MacOS X 10.4 bug with openpty.
8501         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8502         * tests/test-openpty.c (main): Close the master side explicitly.
8503
8504 2010-04-25  Bruno Haible  <bruno@clisp.org>
8505
8506         strnlen: Fix a C++ test error on MacOS X and Solaris.
8507         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8508         the function is not declared.
8509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8510         Simon Josefsson.
8511
8512 2010-04-24  Bruno Haible  <bruno@clisp.org>
8513
8514         Avoid a gcc warning.
8515         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8516         of correct type for %08lx directive.
8517         Reported by Eric Blake.
8518
8519 2010-04-24  Bruno Haible  <bruno@clisp.org>
8520
8521         vasnprintf: Correct errno value in case of out-of-memory.
8522         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8523         or sprintf. Use the errno value from SNPRINTF or sprintf.
8524         Reported by Ian Beckwith <ianb@erislabs.net>.
8525
8526 2010-04-24  Bruno Haible  <bruno@clisp.org>
8527
8528         ansi-c++-opt: Find correct compiler when cross-compiling.
8529         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8530         AC_CHECK_PROGS.
8531         Reported by Simon Josefsson.
8532
8533 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8534
8535         vc-list-files: Add support for subversion
8536         * build-aux/vc-list-files: Use "svn list" to generate the list of
8537         files controlled by subversion.
8538
8539 2010-04-23  Jim Meyering  <meyering@redhat.com>
8540
8541         vc-list-files tests: convert to use init.sh
8542         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8543         path_prepend_.
8544         Use Exit, not exit.
8545         Use skip_ rather than open coding it.
8546         Remove trap set-up and compare definitions.
8547         * tests/test-vc-list-files-git.sh: Likewise.
8548         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8549
8550 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8551
8552         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8553         backup files.
8554
8555 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8556
8557         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8558
8559 2010-04-20  Eric Blake  <eblake@redhat.com>
8560
8561         tests: be robust to ignored SIGPIPE
8562         * tests/test-select-in.sh: Consume all output.
8563         * tests/test-lseek.sh: Check correct exit status, while avoiding
8564         EPIPE.
8565
8566 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8567             Bruno Haible  <bruno@clisp.org>
8568
8569         visibility: Don't use -fvisibility if it leads to a warning.
8570         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8571         yes, don't pretend that visibility works if it leads to a warning.
8572         Reported by Mike Gran <spk121@yahoo.com>.
8573
8574 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8575
8576         * build-aux/bootstrap: Use "git -h" for testing for supported options
8577         instead of "git --help".  The short-form option only shows a summary,
8578         and doesn't layout the full man page.  Grep for the full option name
8579         in the summary, too.
8580
8581 2010-04-19  Bruno Haible  <bruno@clisp.org>
8582
8583         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8584         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8585         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8586         mention of RELOCATABLE_STRIP.
8587         Reported by Sylvain Beucler <beuc@beuc.net>.
8588
8589 2010-04-19  Bruno Haible  <bruno@clisp.org>
8590
8591         * lib/diffseq.h: Fix typo in comment.
8592         Reported by Eric Blake.
8593
8594 2010-04-19  Bruno Haible  <bruno@clisp.org>
8595
8596         ioctl: Move autoconf macro to a .m4 file.
8597         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8598         * modules/ioctl (Files): Add it.
8599         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8600         Reported by Ian Beckwith <ianb@erislabs.net>.
8601
8602 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8603             Bruno Haible  <bruno@clisp.org>
8604
8605         diffseq: Accommodate use-case with abstract arrays.
8606         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8607         is not defined.
8608         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8609         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8610
8611 2010-04-18  Bruno Haible  <bruno@clisp.org>
8612
8613         * doc/posix-headers/stdbool.texi: More precise wording.
8614
8615 2010-04-17  Jim Meyering  <meyering@redhat.com>
8616
8617         maint.mk: use gnu-style indentation in an embedded perl script
8618         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8619         Rename variable: s/two/last_two_bytes/
8620
8621 2010-04-16  Eric Blake  <eblake@redhat.com>
8622
8623         test-stdbool: skip test that fails with Solaris CC
8624         * tests/test-stdbool.c (f): Skip test that causes compilation
8625         error under buggy C++ compiler.
8626         * lib/stdbool.in.h: Document the limitation.
8627         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8628
8629         setenv: allow compilation with C++
8630         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8631         register keyword.
8632
8633         stdint: allow test to pass with C++
8634         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8635
8636         getopt: allow compilation with C++
8637         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8638         struct.
8639         * lib/getopt.c (_getopt_internal_r): Use correct type.
8640         Reported by Dagobert Michelson, via Joel E. Denny.
8641
8642 2010-04-16  Bruno Haible  <bruno@clisp.org>
8643
8644         Override netdb.h always.
8645         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8646         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8647         Reported by Ludovic Courtès <ludo@gnu.org>.
8648
8649 2010-04-15  Bruno Haible  <bruno@clisp.org>
8650
8651         openpty: Fix mistake from 2010-03-21.
8652         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8653         Reported by Simon Josefsson.
8654
8655 2010-04-15  Eric Blake  <eblake@redhat.com>
8656
8657         test-forkpty: fix expected signature
8658         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8659         Reported by Simon Josefsson.
8660
8661 2010-04-15  Jim Meyering  <meyering@redhat.com>
8662
8663         maint.mk: texinfo_suffix_re_: correct the default regexp
8664         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8665
8666         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8667         make it configurable via texinfo_suffix_re_.
8668
8669 2010-04-14  Eric Blake  <eblake@redhat.com>
8670
8671         strtok_r: relax license to LGPLv2+
8672         * modules/strtok_r (License): Relax license.
8673         Reported by Matthias Bolte.
8674
8675 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8676
8677         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8678         version 1.4.4 by default instead of requiring the libgcrypt
8679         version used during build.  This makes it possible to use the
8680         application with older but still binary compatible libgcrypt
8681         versions.
8682
8683 2010-04-13  Eric Blake  <eblake@redhat.com>
8684
8685         getopt-gnu: match recent glibc fixes and posix ruling
8686         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8687         '+' handling, when requesting extensions.
8688         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8689         'W;' handling.
8690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8691         * doc/posix-functions/getopt.texi (getopt): Document this.
8692         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8693         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8694         Likewise.
8695
8696         getopt: merge bug fixes from glibc
8697         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8698         diagnostics.  Honor '+:' correctly.  Reject ';'.
8699
8700         getopt-posix: detect MacOS bug
8701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8702         optind when missing a required argument.
8703         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8704         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8705         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8706         Likewise.
8707
8708         getopt-posix: avoid spurious failure on Solaris
8709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8710         an indicator that setting optind=1 is sufficient for reset.
8711
8712         getopt-posix: avoid spurious failure on FreeBSD
8713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8714         in POSIX mode, since the m4 test uses it.
8715
8716         gnulib-tool: silence warning on BSD sh
8717         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8718
8719 2010-04-13  Jim Meyering  <meyering@redhat.com>
8720
8721         doc: users.txt: GNU patch now uses gnulib
8722         * users.txt: Add patch.
8723
8724 2010-04-12  Jim Meyering  <meyering@redhat.com>
8725
8726         maint.mk: generate more concise timing data for syntax-check rules
8727         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8728         " done" from each line that reports a syntax-check test duration.
8729
8730 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8731
8732         git-version-gen: use "git update-index..." rather than "git status"
8733         * build-aux/git-version-gen: Use git update-index --refresh, not
8734         "git status".  With some versions of git, "git status" would fail
8735         to update the index and result in an unwarranted "-dirty" suffix.
8736
8737 2010-04-11  Jim Meyering  <meyering@redhat.com>
8738
8739         openat: correct formatting (no semantic change)
8740         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8741         Suggested by Bruno Haible.
8742
8743 2010-04-11  Bruno Haible  <bruno@clisp.org>
8744
8745         Stricter declaration checking in testdirs.
8746         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8747         If for_tests is true, augment AM_CPPFLAGS to define
8748         GNULIB_STRICT_CHECKING.
8749         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8750         GNULIB_STRICT_CHECKING is defined, verify that the function is
8751         declared.
8752
8753 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8754             Bruno Haible  <bruno@clisp.org>
8755
8756         libunistring: Improve configure output.
8757         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8758         Don't say "consider installing GNU libunistring" when checking again
8759         with libiconv.
8760
8761 2010-04-11  Bruno Haible  <bruno@clisp.org>
8762
8763         libunistring: Correct value of $LTLIBUNISTRING.
8764         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8765         correct the value of $LTLIBUNISTRING.
8766
8767 2010-04-11  Bruno Haible  <bruno@clisp.org>
8768
8769         havelib: Add static libraries to LIBS in the right order.
8770         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8771         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8772
8773 2010-04-11  Bruno Haible  <bruno@clisp.org>
8774
8775         libunistring: Detect libunistring also when it depends on libiconv.
8776         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8777         the second AC_LIB_HAVE_LINKFLAGS invocation.
8778
8779 2010-04-11  James Youngman  <jay@gnu.org>
8780
8781         close-stream: declare local scalars to be "const"
8782         * lib/close-stream.c (close_stream): Make boolean variables const
8783         to document the fact that we set but do not change them.
8784
8785 2010-04-11  Bruno Haible  <bruno@clisp.org>
8786
8787         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8788
8789 2010-04-11  Jim Meyering  <meyering@redhat.com>
8790
8791         maint.mk: don't include dist-check.mk
8792         * top/maint.mk: Remove bogus include directive.
8793
8794         maint.mk: improve empty-line-at-EOF check
8795         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8796         solution, rather than tail+Perl-based one.  The latter would read
8797         a few kilobytes from the end of each file, and did not handle empty
8798         files properly.
8799
8800         maint.mk: print the elapsed time for each syntax-check rule
8801         * top/maint.mk (sc_m_rules_): Save start time in a file.
8802         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8803         (local-check): Interpose the .z rules
8804
8805 2010-04-11  Jim Meyering  <meyering@redhat.com>
8806
8807         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8808         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8809         empty file with one that ends in an empty line.
8810
8811 2010-04-10  Bruno Haible  <bruno@clisp.org>
8812
8813         mkdir: Make it work on mingw64.
8814         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8815         * lib/mkdir.c: Update comment.
8816         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8817
8818 2010-04-10  Bruno Haible  <bruno@clisp.org>
8819
8820         Don't override improved macro from newer autoconf.
8821         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8822         autoconf >= 2.62.
8823         Reported by Joel E. Denny <jdenny@clemson.edu>.
8824
8825 2010-04-10  Jim Meyering  <meyering@redhat.com>
8826
8827         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8828         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8829
8830         maint.mk: correct a diagnostic
8831         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8832         in diagnostic; now use $prohibit.
8833
8834 2010-04-10  Bruno Haible  <address@hidden>
8835
8836         fchownat: Fix a C++ test error on Solaris 8.
8837         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8838         the function does not exist.
8839
8840 2010-04-10  Bruno Haible  <bruno@clisp.org>
8841
8842         vasnprintf: Add more tests.
8843         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8844         (test_function): Test converting an invalid wide string.
8845
8846         vasnprintf: Correct handling of unconvertible wide string arguments.
8847         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8848         VASNPRINTF.
8849         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8850         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8851         smaller than the expected maximum need for the directive. Set errno to
8852         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8853         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8855         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8856         * modules/vasnprintf (Files): Add m4/printf.m4.
8857         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8858
8859 2010-04-10  Bruno Haible  <bruno@clisp.org>
8860
8861         vasnprintf: Fix crash in %ls directive.
8862         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8863         string is passed as argument to %ls, with no precision and no width.
8864         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8865
8866 2010-04-10  Bruno Haible  <bruno@clisp.org>
8867
8868         vasnprintf: Fix multiple test failures on mingw.
8869         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8870         _snprintf, or snwprintf, not _snwprintf.
8871
8872 2010-04-10  Bruno Haible  <bruno@clisp.org>
8873
8874         write: Fix a C++ test error on mingw.
8875         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8876
8877 2010-04-10  Bruno Haible  <bruno@clisp.org>
8878
8879         vasnprintf test: Reduce code duplication.
8880         * tests/test-vasnprintf.c (test_function): New function, extracted from
8881         test_vasnprintf.
8882         (test_vasnprintf, test_asnprintf): Invoke it.
8883
8884 2010-04-10  Bruno Haible  <bruno@clisp.org>
8885
8886         strnlen: Fix warning in C++ mode on MacOS X.
8887         * lib/string.in.h (strnlen): Use the modern idiom.
8888         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8889         defining strnlen as a macro already in <config.h>.
8890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8891         REPLACE_STRNLEN.
8892         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8893         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8894
8895 2010-04-08  James Youngman  <jay@gnu.org>
8896
8897         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8898         the example.
8899
8900 2010-04-09  Jim Meyering  <meyering@redhat.com>
8901
8902         maint.mk: print better diagnostic when there is no $(_hv_file)
8903         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8904         announce that when $(_hv_file) (aka help-version) does not exist.
8905
8906         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8907         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8908         not try to interpret its random input bytes.  Jarno Rajahalme reported
8909         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8910         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8911         (mktempd_): Likewise, just in case.
8912
8913         ftruncate: add two years to projected module removal date: 2012
8914         * m4/ftruncate.m4: Adjust comments.
8915
8916         ftruncate: mark module as obsolete; even MinGW provides it, now
8917         * modules/ftruncate (Status): Obsolete.
8918         (Notice): Say that.
8919         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8920         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8921
8922 2010-04-08  Bruno Haible  <bruno@clisp.org>
8923
8924         Fix side effects from tests-related modules.
8925         * modules/dprintf-posix (Comment): New section.
8926         * modules/fprintf-posix (Comment): Likewise.
8927         * modules/obstack-printf-posix (Comment): Likewise.
8928         * modules/printf-posix (Comment): Likewise.
8929         * modules/snprintf-posix (Comment): Likewise.
8930         * modules/sprintf-posix (Comment): Likewise.
8931         * modules/vasnprintf-posix (Comment): Likewise.
8932         * modules/vasprintf-posix (Comment): Likewise.
8933         * modules/vdprintf-posix (Comment): Likewise.
8934         * modules/vfprintf-posix (Comment): Likewise.
8935         * modules/vprintf-posix (Comment): Likewise.
8936         * modules/vsnprintf-posix (Comment): Likewise.
8937         * modules/vsprintf-posix (Comment): Likewise.
8938         * modules/xprintf-posix (Comment): Likewise.
8939         * modules/xvasprintf-posix (Comment): Likewise.
8940         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8941         * modules/floorf-tests (Depends-on): Likewise.
8942         * modules/round-tests (Depends-on): Likewise.
8943         * modules/roundf-tests (Depends-on): Likewise.
8944         * modules/trunc-tests (Depends-on): Likewise.
8945         * modules/truncf-tests (Depends-on): Likewise.
8946         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8947         'fprintf-posix' module is not present.
8948         * tests/test-floorf2.c (check): Likewise.
8949         * tests/test-trunc2.c (check): Likewise.
8950         * tests/test-truncf2.c (check): Likewise.
8951         * tests/test-round2.c (equal): Likewise.
8952         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8953
8954 2010-04-07  Karl Berry  <karl@gnu.org>
8955
8956         * config/srclist.txt,
8957         * config/srclistvars.sh,
8958         * config/srclist-update: doc fixes.
8959
8960 2010-04-07  Jim Meyering  <meyering@redhat.com>
8961
8962         maint.mk: add a PATH crosschecking syntax-check rule
8963         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8964         Useful if you use a test like the one in help-version (coreutils,
8965         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8966         printed by prog --version.
8967
8968 2010-04-06  Bruno Haible  <bruno@clisp.org>
8969
8970         Fix link error on mingw.
8971         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8972         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8973
8974 2010-04-06  Bruno Haible  <bruno@clisp.org>
8975
8976         Assume rmdir exists.
8977         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8978
8979 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8980
8981         doc: update users.txt
8982         * users.txt: Add gcal.
8983
8984 2010-04-06  Jim Meyering  <meyering@redhat.com>
8985
8986         init.sh: simply unset TMPDIR rather than risking env -i
8987         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8988         although it probably works fine on all Unix-based systems, some
8989         systems (Cygwin?) cannot tolerate a totally cleared environment.
8990         Suggestion from Eric Blake.
8991
8992 2010-04-06  Jim Meyering  <meyering@redhat.com>
8993
8994         init.sh: portability fix: use env's POSIX-specified -i option not -u
8995         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8996         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8997
8998 2010-04-05  Bruno Haible  <bruno@clisp.org>
8999
9000         btowc: Work around Cygwin 1.7.2 bug.
9001         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9002         does not map NUL to 0.
9003         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9004
9005 2010-04-05  Bruno Haible  <bruno@clisp.org>
9006
9007         Make the multithread modules work on Cygwin 1.7.2.
9008         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9009         imported symbols can be declared weak, so that it returns "no" on
9010         Cygwin 1.7.2.
9011
9012 2010-04-05  Bruno Haible  <bruno@clisp.org>
9013
9014         Use the module 'strncat'.
9015         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9016
9017         Tests for module 'strncat'.
9018         * modules/strncat-tests: New file.
9019         * tests/test-strncat.c: New file.
9020
9021         New module 'strncat'.
9022         * lib/string.in.h (strncat): New declaration.
9023         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9024         * m4/strncat.m4: New file, based on m4/memchr.m4.
9025         * modules/strncat: New file.
9026         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9027         is declared.
9028         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9029         REPLACE_STRNCAT.
9030         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9031         REPLACE_STRNCAT.
9032         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9033         module.
9034         * tests/test-string-c++.cc: Check signature of strncat.
9035
9036 2010-04-05  Jim Meyering  <meyering@redhat.com>
9037
9038         xstrtoumax-tests: convert to use init.sh
9039         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9040         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9041         Use Exit, not exit.
9042         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9043
9044         xstrtoimax-tests: convert to use init.sh
9045         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9046         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9047         Use Exit, not exit.
9048         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9049
9050 2010-04-05  Bruno Haible  <bruno@clisp.org>
9051
9052         sys_socket: Avoid #define replacements in C++ mode.
9053         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9054         warning to the function if possible, rather than #defining the symbol
9055         to a dysfunctional alias.
9056
9057 2010-04-05  Bruno Haible  <bruno@clisp.org>
9058
9059         fseeko: Fix C++ test error on mingw.
9060         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9061         gl_FUNC_FSEEKO.
9062         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9063         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9064         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9065         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9066
9067 2010-04-05  Bruno Haible  <bruno@clisp.org>
9068
9069         duplocale: Improve test output.
9070         * tests/test-duplocale.c (main): Print reason for skipped test.
9071
9072 2010-04-05  Bruno Haible  <bruno@clisp.org>
9073
9074         Assume rmdir exists.
9075         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9076         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9077
9078 2010-04-05  Bruno Haible  <bruno@clisp.org>
9079
9080         Fix link error on Solaris 8 with cc.
9081         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9082
9083 2010-04-05  Bruno Haible  <bruno@clisp.org>
9084
9085         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9086         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9087
9088 2010-04-05  Bruno Haible  <bruno@clisp.org>
9089
9090         vasprintf: Update documentation.
9091         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9092
9093 2010-04-05  Bruno Haible  <bruno@clisp.org>
9094
9095         ptsname: Improve test.
9096         * tests/test-ptsname.c (main): Also try the various master names of BSD
9097         systems.
9098
9099 2010-04-05  Bruno Haible  <bruno@clisp.org>
9100
9101         memchr: Avoid a possible C++ test error.
9102         * lib/string.in.h (memchr): Provide declaration if function is missing.
9103         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9104         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9106         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9107
9108 2010-04-05  Bruno Haible  <bruno@clisp.org>
9109
9110         strtok_r: Improve idiom.
9111         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9112         AC_LIBOBJ is used.
9113
9114 2010-04-05  Bruno Haible  <bruno@clisp.org>
9115
9116         strdup: Improve idiom.
9117         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9118         AC_LIBOBJ is used.
9119         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9120         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9121         when AC_LIBOBJ is used.
9122
9123 2010-04-05  Bruno Haible  <bruno@clisp.org>
9124
9125         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9126         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9127         don't set REPLACE_MBSINIT to 1.
9128         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9129         don't set REPLACE_MBRTOWC to 1.
9130         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9131         exist, don't set REPLACE_MBSRTOWCS to 1.
9132         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9133         exist, don't set REPLACE_MBSNRTOWCS to 1.
9134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9135         don't set REPLACE_WCRTOMB to 1.
9136         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9137         exist, don't set REPLACE_WCSRTOMBS to 1.
9138         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9139         exist, don't set REPLACE_WCSNRTOMBS to 1.
9140
9141 2010-04-05  Bruno Haible  <bruno@clisp.org>
9142
9143         ldexpl: Improve idiom.
9144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9145         make sure to set HAVE_DECL_LDEXPL to 0.
9146
9147 2010-04-05  Jim Meyering  <meyering@redhat.com>
9148
9149         xstrtol-tests: convert to use init.sh
9150         * modules/xstrtol-tests (Files): Add tests/init.sh.
9151         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9152         Use Exit, not exit.
9153         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9154
9155         atexit-tests: convert to use init.sh
9156         * modules/atexit-tests (Files): Add tests/init.sh.
9157         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9158         Use Exit, not exit.
9159         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9160
9161         init.sh: fix typo
9162         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9163
9164         init.sh: make it easier for a test script to write to the tty, ...
9165         when using automake's parallel-tests mode.
9166         * tests/init.sh (stderr_fileno_): Define overridable variable.
9167         (warn_): New function, to use it.
9168         (fail_, skip_, framework_failure_): Use warn_.
9169
9170 2010-04-04  Bruno Haible  <bruno@clisp.org>
9171
9172         btowc: Avoid warning.
9173         * lib/btowc.c: Include <stdlib.h>.
9174         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9175
9176 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9177             Bruno Haible  <bruno@clisp.org>
9178
9179         wchar: Port to NetBSD 1.5.
9180         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9181         * lib/wctype.in.h (WEOF): Likewise.
9182
9183 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9184             Bruno Haible  <bruno@clisp.org>
9185
9186         Port extended stdio to NetBSD 1.5.
9187         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9188         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9189         older.
9190
9191 2010-04-04  Bruno Haible  <bruno@clisp.org>
9192
9193         string: Remove unused substitution.
9194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9195         HAVE_DECL_STRERROR.
9196         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9197
9198 2010-04-04  Bruno Haible  <bruno@clisp.org>
9199
9200         strtod: Avoid a possible C++ test error.
9201         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9202         set REPLACE_STRTOD.
9203
9204 2010-04-04  Bruno Haible  <bruno@clisp.org>
9205
9206         strerror: Update documentation.
9207         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9208
9209 2010-04-04  Bruno Haible  <bruno@clisp.org>
9210
9211         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9212         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9213         _GL_CXXALIAS_SYS_CAST.
9214
9215 2010-04-04  Bruno Haible  <bruno@clisp.org>
9216
9217         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9218         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9219         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9220         REPLACE_FREXPL to 1.
9221         * doc/posix-functions/frexpl.texi: Update documentation.
9222
9223 2010-04-04  Bruno Haible  <bruno@clisp.org>
9224
9225         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9226         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9227
9228 2010-04-04  Bruno Haible  <bruno@clisp.org>
9229
9230         Implement nanosleep for native Windows.
9231         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9232
9233 2010-04-04  Bruno Haible  <bruno@clisp.org>
9234
9235         math: Fix some C++ test errors on Solaris 8.
9236         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9237
9238 2010-04-04  Bruno Haible  <bruno@clisp.org>
9239
9240         math: Fix some C++ test errors on Cygwin.
9241         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9242         truncl): Provide declaration if the system does not have it.
9243         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9244         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9245         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9246         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9247         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9248         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9249         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9250         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9251         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9252         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9253         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9254         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9255         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9256         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9257         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9258         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9260         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9261         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9262         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9263         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9264         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9265
9266 2010-04-04  Bruno Haible  <bruno@clisp.org>
9267
9268         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9269         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9270         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9271         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9272         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9273         * m4/isinf.m4 (gl_ISINF): Likewise.
9274         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9275
9276 2010-04-04  Bruno Haible  <bruno@clisp.org>
9277
9278         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9279         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9280
9281 2010-04-04  Bruno Haible  <bruno@clisp.org>
9282
9283         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9284         * modules/tmpfile (configure.ac): Update.
9285
9286         tmpfile: Fix C++ test error on mingw.
9287         * lib/stdio.in.h (tmpfile): New declaration.
9288         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9289         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9290         * modules/tmpfile (Depends-on): Add stdio.
9291         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9292         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9293         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9294         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9295         REPLACE_TMPFILE.
9296         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9297
9298 2010-04-04  Bruno Haible  <bruno@clisp.org>
9299
9300         ioctl: Fix C++ test error on mingw.
9301         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9302         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9303         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9304
9305 2010-04-03  Bruno Haible  <bruno@clisp.org>
9306
9307         wcwidth: Fix C++ test error on mingw.
9308         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9310         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9311
9312 2010-04-03  Bruno Haible  <bruno@clisp.org>
9313
9314         nanosleep: Fix C++ test error on mingw.
9315         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9316         * lib/time.in.h (nanosleep): Use modern idiom.
9317         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9318         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9319         REPLACE_NANOSLEEP to 1.
9320         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9321         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9322
9323 2010-04-03  Bruno Haible  <bruno@clisp.org>
9324
9325         strptime: Fix C++ test error on mingw.
9326         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9327         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9328         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9329         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9331         not REPLACE_STRPTIME.
9332         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9333         REPLACE_STRPTIME.
9334
9335 2010-04-03  Bruno Haible  <bruno@clisp.org>
9336
9337         timegm: Fix C++ test error on mingw.
9338         * lib/time.in.h (timegm): Use modern idiom.
9339         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9340         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9342         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9343
9344 2010-04-03  Bruno Haible  <bruno@clisp.org>
9345
9346         timegm: Assume declaration if function exists.
9347         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9348         if it exists. Don't clobber ac_cv_func_timegm.
9349
9350 2010-04-03  Bruno Haible  <bruno@clisp.org>
9351
9352         time_r: Fix C++ test error on mingw.
9353         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9354         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9355         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9356         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9357         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9358
9359 2010-04-03  Bruno Haible  <bruno@clisp.org>
9360
9361         time_r: Minor updates.
9362         * modules/time_r (Description): Mention the provided functions.
9363         * lib/time_r.c: Don't include <string.h>.
9364         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9365         * doc/posix-functions/localtime_r.texi: Likewise.
9366
9367 2010-04-03  Bruno Haible  <bruno@clisp.org>
9368
9369         time: Fix regression introduced on 2010-03-08.
9370         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9371         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9372
9373 2010-04-03  Jim Meyering  <meyering@redhat.com>
9374
9375         maint.mk: don't silently disable project-specific syntax-check rules
9376         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9377         that they need to convert their project-specific syntax-check rules
9378         to use the new _sc_search_regexp.
9379
9380 2010-04-03  Bruno Haible  <bruno@clisp.org>
9381
9382         fchdir: Fix regression introduced on 2010-03-08.
9383         * lib/unistd.in.h (fchdir): Fix declaration.
9384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9386         REPLACE_FCHDIR.
9387         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9388         REPLACE_FCHDIR.
9389
9390 2010-04-03  Bruno Haible  <bruno@clisp.org>
9391
9392         getpagesize: Fix C++ test error on mingw.
9393         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9394         system does not declare the function.
9395         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9396         declared.
9397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9398         HAVE_DECL_GETPAGESIZE.
9399         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9400
9401 2010-04-03  Bruno Haible  <bruno@clisp.org>
9402
9403         stdio: Make C++ tests work on mingw.
9404         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9405         does not declare the function.
9406
9407 2010-04-03  Bruno Haible  <bruno@clisp.org>
9408
9409         ftello: Fix C++ test error on mingw.
9410         * lib/stdio.in.h (ftello): Use modern idiom.
9411         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9412         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9413         is missing and that it needs to be replaced.
9414         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9416         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9417
9418 2010-04-03  Bruno Haible  <bruno@clisp.org>
9419
9420         fseeko: Fix C++ test error on mingw.
9421         * lib/stdio.in.h (fseeko): Use modern idiom.
9422         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9423         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9424         is missing and that it needs to be replaced.
9425         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9427         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9428
9429 2010-04-03  Bruno Haible  <bruno@clisp.org>
9430
9431         mkstemp: Fix C++ test error on mingw.
9432         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9433         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9434         function is missing and that it needs to be replaced.
9435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9436         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9437
9438 2010-04-03  Bruno Haible  <bruno@clisp.org>
9439
9440         stpncpy: Fix C++ test error on mingw.
9441         * lib/string.in.h (stpncpy): Use modern idiom.
9442         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9443         function is missing and that it needs to be replaced.
9444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9445         REPLACE_STPNCPY.
9446         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9447
9448 2010-04-03  Bruno Haible  <bruno@clisp.org>
9449
9450         sys_stat: Fix C++ test error on mingw.
9451         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9452         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9453
9454 2010-04-03  Bruno Haible  <bruno@clisp.org>
9455
9456         pty: Update doc.
9457         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9458
9459 2010-04-03  Bruno Haible  <bruno@clisp.org>
9460
9461         unistd: Fix C++ test error on mingw.
9462         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9463
9464 2010-04-03  Bruno Haible  <bruno@clisp.org>
9465
9466         Update doc regarding mingw.
9467         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9468         * doc/glibc-functions/login_tty.texi: Likewise.
9469         * doc/glibc-functions/forkpty.texi: Likewise.
9470
9471 2010-04-03  Bruno Haible  <bruno@clisp.org>
9472
9473         stdlib: Avoid compilation failure of c-strtold on mingw.
9474         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9475
9476 2010-04-03  Bruno Haible  <bruno@clisp.org>
9477
9478         locale: Make C++ tests work on Cygwin and mingw.
9479         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9480         cannot provide the function.
9481         Reported by Simon Josefsson.
9482
9483 2010-04-03  Bruno Haible  <bruno@clisp.org>
9484
9485         localename: Port to MacOS X 10.6.
9486         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9487         memory layout of the locales in MacOS X 10.6 as well.
9488         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9489
9490 2010-04-02  Bruno Haible  <bruno@clisp.org>
9491
9492         gnulib-tool: Ensure that long-running tests are executed last.
9493         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9494         running tests after the one for the other tests.
9495
9496 2010-04-02  Bruno Haible  <bruno@clisp.org>
9497
9498         gnulib-tool: Ensure the tests in the main directory are executed first.
9499         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9500         start with the current directory.
9501
9502 2010-04-02  Bruno Haible  <bruno@clisp.org>
9503
9504         Tests for module 'havelib', moved here from GNU gettext.
9505         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9506         modifications.
9507         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9508         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9509         with modifications.
9510         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9511         modifications.
9512         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9513         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9514         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9515         with modifications.
9516         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9517         with modifications.
9518         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9519         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9520         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9521         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9522         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9523         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9524         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9525         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9526         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9527         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9528         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9529         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9530         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9531         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9532         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9533         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9534         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9535         with modifications.
9536         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9537         with modifications.
9538         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9539         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9540         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9541         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9542         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9543         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9544         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9545         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9546         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9547         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9548         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9549         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9550         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9551         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9552         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9553         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9554         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9555         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9556         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9557         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9558         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9559         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9560         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9561         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9562         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9563         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9564         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9565         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9566         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9567         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9568         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9569         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9570         * tests/havelib/rpathx/rpathx.c: New file, from
9571         gettext/autoconf-lib-link.
9572         * tests/havelib/rpathx/Makefile.am: New file, from
9573         gettext/autoconf-lib-link.
9574         * tests/havelib/rpathx/configure.ac: New file, from
9575         gettext/autoconf-lib-link with modifications.
9576         * tests/havelib/rpathy/rpathy.c: New file, from
9577         gettext/autoconf-lib-link.
9578         * tests/havelib/rpathy/Makefile.am: New file, from
9579         gettext/autoconf-lib-link.
9580         * tests/havelib/rpathy/configure.ac: New file, from
9581         gettext/autoconf-lib-link with modifications.
9582         * tests/havelib/rpathz/rpathz.c: New file, from
9583         gettext/autoconf-lib-link.
9584         * tests/havelib/rpathz/Makefile.am: New file, from
9585         gettext/autoconf-lib-link.
9586         * tests/havelib/rpathz/configure.ac: New file, from
9587         gettext/autoconf-lib-link with modifications.
9588         * tests/havelib/rpathlx/usex.c: New file, from
9589         gettext/autoconf-lib-link.
9590         * tests/havelib/rpathlx/Makefile.am: New file, from
9591         gettext/autoconf-lib-link.
9592         * tests/havelib/rpathlx/configure.ac: New file, from
9593         gettext/autoconf-lib-link with modifications.
9594         * tests/havelib/rpathly/usey.c: New file, from
9595         gettext/autoconf-lib-link.
9596         * tests/havelib/rpathly/Makefile.am: New file, from
9597         gettext/autoconf-lib-link.
9598         * tests/havelib/rpathly/configure.ac: New file, from
9599         gettext/autoconf-lib-link with modifications.
9600         * tests/havelib/rpathlz/usez.c: New file, from
9601         gettext/autoconf-lib-link.
9602         * tests/havelib/rpathlz/Makefile.am: New file, from
9603         gettext/autoconf-lib-link.
9604         * tests/havelib/rpathlz/configure.ac: New file, from
9605         gettext/autoconf-lib-link with modifications.
9606         * tests/havelib/rpathlyx/usey.c: New file, from
9607         gettext/autoconf-lib-link.
9608         * tests/havelib/rpathlyx/Makefile.am: New file, from
9609         gettext/autoconf-lib-link.
9610         * tests/havelib/rpathlyx/configure.ac: New file, from
9611         gettext/autoconf-lib-link with modifications.
9612         * tests/havelib/rpathlzyx/usez.c: New file, from
9613         gettext/autoconf-lib-link.
9614         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9615         gettext/autoconf-lib-link.
9616         * tests/havelib/rpathlzyx/configure.ac: New file, from
9617         gettext/autoconf-lib-link with modifications.
9618         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9619         with modifications.
9620
9621 2010-04-02  Bruno Haible  <bruno@clisp.org>
9622
9623         gnulib-tool: Create distributed built sources also for the tests.
9624         * gnulib-tool (func_create_testdir): Also generate distributed built
9625         sources in the tests directory.
9626
9627 2010-04-02  Bruno Haible  <bruno@clisp.org>
9628
9629         gnulib-tool: Obey user's environment variables.
9630         * gnulib-tool (func_create_testdir): When creating built sources,
9631         respect the environment variables for autoconf, automake, etc. given by
9632         the user.
9633
9634 2010-04-02  Bruno Haible  <bruno@clisp.org>
9635
9636         gnulib-tool: Provide the value of --m4-base to modules.
9637         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9638         of gl_m4_base.
9639
9640 2010-04-02  Eric Blake  <eblake@redhat.com>
9641
9642         maint.mk: fix some fallout
9643         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9644         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9645
9646 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9647
9648         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9649         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9650         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9651         (sc_cast_of_x_alloc_return_value): Likewise.
9652         (sc_cast_of_alloca_return_value): Likewise.
9653         (sc_space_tab): Likewise.
9654         (sc_prohibit_atoi_atof): Likewise.
9655         (sc_prohibit_magic_number_exit): Likewise.
9656         (sc_error_exit_success): Likewise.
9657         (sc_file_system): Likewise.
9658         (sc_prohibit_have_config_h): Likewise.
9659         (sc_require_config_h): Likewise.
9660         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9661         (sc_obsolete_symbols): Likewise.
9662         (sc_changelog): Likewise.
9663         (sc_program_name): Likewise.
9664         (sc_the_the): Likewise.
9665         (sc_trailing_blank): Likewise.
9666         (sc_two_space_separator_in_usage): Likewise.
9667         (sc_useless_cpp_parens): Likewise.
9668         (sc_GPL_version): Likewise.
9669         (sc_GFDL_version): Likewise.
9670         (sc_texinfo_acronym): Likewise.
9671         (sc_prohibit_cvs_keyword): Likewise.
9672         (sc_prohibit_stat_st_blocks): Likewise.
9673         (sc_prohibit_S_IS_definition): Likewise.
9674         (sc_redundant_const): Likewise.
9675         (sc_makefile_TAB_only_indentation): Likewise.
9676         (sc_m4_quote_check): Likewise.
9677         (sc_makefile_path_separator_check): Likewise.
9678         (sc_copyright_check): Likewise.
9679         (sc_Wundef_boolean): Likewise.
9680         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9681
9682         maint.mk: match 0 or more whitespace-before-function-call '('
9683         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9684         that have zero or two-and-more spaces between the function name
9685         and the open parenthesis.
9686         (sc_error_message_warn_fatal): Likewise.
9687         (sc_error_message_uppercase): Likewise.
9688         (sc_error_message_period): Likewise.
9689
9690 2010-03-31  Eric Blake  <eblake@redhat.com>
9691
9692         maint.mk: check for [ as well as test
9693         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9694         Based on a libvirt report by Matthias Bolte.
9695
9696         gnumakefile: don't squelch _version output
9697         * top/GNUmakefile (_version): Create one-shot dependency rather
9698         than using $(shell) when version must be regenerated.
9699         (_autoreconf): Run verbosely, by default.
9700
9701         sys_time: avoid compiler warnings
9702         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9703         unconditional, fixing regression from 2010-03-29.
9704         Reported by Simon Josefsson.
9705
9706 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9707
9708         maint.mk: s/_header_without_use/_sc_header_without_use/
9709         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9710         (sc_prohibit_assert_without_use): Use the new name.
9711         (sc_prohibit_close_stream_without_use): Likewise.
9712         (sc_prohibit_getopt_without_use): Likewise.
9713         (sc_prohibit_quotearg_without_use): Likewise.
9714         (sc_prohibit_quote_without_use): Likewise.
9715         (sc_prohibit_long_options_without_use): Likewise.
9716         (sc_prohibit_inttostr_without_use): Likewise.
9717         (sc_prohibit_ignore_value_without_use): Likewise.
9718         (sc_prohibit_error_without_use): Likewise.
9719         (sc_prohibit_xalloc_without_use): Likewise.
9720         (sc_prohibit_hash_without_use): Likewise.
9721         (sc_prohibit_hash_pjw_without_use): Likewise.
9722         (sc_prohibit_safe_read_without_use): Likewise.
9723         (sc_prohibit_argmatch_without_use): Likewise.
9724         (sc_prohibit_canonicalize_without_use): Likewise.
9725         (sc_prohibit_root_dev_ino_without_use): Likewise.
9726         (sc_prohibit_openat_without_use): Likewise.
9727         (sc_prohibit_c_ctype_without_use): Likewise.
9728         (sc_prohibit_signal_without_use): Likewise.
9729         (sc_prohibit_intprops_without_use): Likewise.
9730
9731 2010-03-30  Eric Blake  <eblake@redhat.com>
9732
9733         maint: improve module indicators
9734         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9735         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9736         columns, and avoid extra macro expansion.
9737
9738         fdopendir: work around FreeBSD bug
9739         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9740         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9741         * modules/dirent (Makefile.am): Substitute it.
9742         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9743         declaration.
9744         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9745         fix.
9746         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9747
9748 2010-03-29  Bruno Haible  <bruno@clisp.org>
9749
9750         Emit #pragma system_header after the inclusion guard, not before.
9751         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9752         guard that spans the entire file, not before. This enables an
9753         optimization in GCC's preprocessor.
9754         * lib/ctype.in.h: Likewise.
9755         * lib/dirent.in.h: Likewise.
9756         * lib/errno.in.h: Likewise.
9757         * lib/float.in.h: Likewise.
9758         * lib/getopt.in.h: Likewise.
9759         * lib/iconv.in.h: Likewise.
9760         * lib/langinfo.in.h: Likewise.
9761         * lib/locale.in.h: Likewise.
9762         * lib/math.in.h: Likewise.
9763         * lib/netdb.in.h: Likewise.
9764         * lib/netinet_in.in.h: Likewise.
9765         * lib/pty.in.h: Likewise.
9766         * lib/sched.in.h: Likewise.
9767         * lib/se-selinux.in.h: Likewise.
9768         * lib/search.in.h: Likewise.
9769         * lib/spawn.in.h: Likewise.
9770         * lib/stdarg.in.h: Likewise.
9771         * lib/stdint.in.h: Likewise.
9772         * lib/string.in.h: Likewise.
9773         * lib/strings.in.h: Likewise.
9774         * lib/sys_file.in.h: Likewise.
9775         * lib/sys_ioctl.in.h: Likewise.
9776         * lib/sys_time.in.h: Likewise.
9777         * lib/sys_times.in.h: Likewise.
9778         * lib/sys_utsname.in.h: Likewise.
9779         * lib/sys_wait.in.h: Likewise.
9780         * lib/sysexits.in.h: Likewise.
9781         * lib/wctype.in.h: Likewise.
9782
9783 2010-03-28  James Youngman  <jay@gnu.org>
9784
9785         save-cwd: don't leak a file descriptor when the caller execs.
9786         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9787         saved file descriptor.
9788         * modules/save-cwd (Depends-on): Depend on cloexec.
9789
9790 2010-03-29  Bruno Haible  <bruno@clisp.org>
9791
9792         Remove vestiges of fts-lgpl module.
9793         * lib/fts_.h: Assume GNULIB_FTS is 1.
9794         * lib/fts.c: Likewise.
9795         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9796
9797 2010-03-28  Bruno Haible  <bruno@clisp.org>
9798
9799         Fix definition of tests witness macro.
9800         * gnulib-tool (func_import): Fix definition of witness macro.
9801
9802 2010-03-28  Bruno Haible  <bruno@clisp.org>
9803
9804         Fix ioctl's protoype on glibc systems.
9805         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9806         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9807         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9808         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9809         signature. If not, arrange to replace the ioctl function.
9810         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9811         REPLACE_IOCTL.
9812         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9813         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9814         Reported by Ludovic Courtès <ludo@gnu.org>.
9815
9816 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9817
9818         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9819         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9820         made it so grep -r --include=GLOB* ... did not work.
9821
9822 2010-03-26  Jim Meyering  <meyering@redhat.com>
9823             Eric Blake  <eblake@redhat.com>
9824
9825         maint.mk: prohibit use of test's -o and -a operators
9826         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9827
9828 2010-03-28  Bruno Haible  <bruno@clisp.org>
9829
9830         Remove unused GNULIB_XYZ macro definitions.
9831         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9832         invocation.
9833
9834 2010-03-28  Bruno Haible  <bruno@clisp.org>
9835
9836         Mark privileged tests modules.
9837         * modules/idpriv-drop-tests (Status): New section.
9838         * modules/idpriv-droptemp-tests (Status): New section.
9839
9840 2010-03-28  Bruno Haible  <bruno@clisp.org>
9841
9842         Split C++ tests into separate tests modules.
9843         * modules/dirent-c++-tests: New file, extracted from
9844         modules/dirent-tests.
9845         * modules/dirent-tests: Depend on it.
9846         * modules/fcntl-h-c++-tests: New file, extracted from
9847         modules/fcntl-h-tests.
9848         * modules/fcntl-h-tests: Depend on it.
9849         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9850         * modules/glob-tests: Depend on it.
9851         * modules/iconv-h-c++-tests: New file, extracted from
9852         modules/iconv-h-tests.
9853         * modules/iconv-h-tests: Depend on it.
9854         * modules/langinfo-c++-tests: New file, extracted from
9855         modules/langinfo-tests.
9856         * modules/langinfo-tests: Depend on it.
9857         * modules/locale-c++-tests: New file, extracted from
9858         modules/locale-tests.
9859         * modules/locale-tests: Depend on it.
9860         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9861         * modules/math-tests: Depend on it.
9862         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9863         * modules/pty-tests: Depend on it.
9864         * modules/search-c++-tests: New file, extracted from
9865         modules/search-tests.
9866         * modules/search-tests: Depend on it.
9867         * modules/signal-c++-tests: New file, extracted from
9868         modules/signal-tests.
9869         * modules/signal-tests: Depend on it.
9870         * modules/spawn-c++-tests: New file, extracted from
9871         modules/spawn-tests.
9872         * modules/spawn-tests: Depend on it.
9873         * modules/stdio-c++-tests: New file, extracted from
9874         modules/stdio-tests.
9875         * modules/stdio-tests: Depend on it.
9876         * modules/stdlib-c++-tests: New file, extracted from
9877         modules/stdlib-tests.
9878         * modules/stdlib-tests: Depend on it.
9879         * modules/string-c++-tests: New file, extracted from
9880         modules/string-tests.
9881         * modules/string-tests: Depend on it.
9882         * modules/sys_ioctl-c++-tests: New file, extracted from
9883         modules/sys_ioctl-tests.
9884         * modules/sys_ioctl-tests: Depend on it.
9885         * modules/sys_select-c++-tests: New file, extracted from
9886         modules/sys_select-tests.
9887         * modules/sys_select-tests: Depend on it.
9888         * modules/sys_socket-c++-tests: New file, extracted from
9889         modules/sys_socket-tests.
9890         * modules/sys_socket-tests: Depend on it.
9891         * modules/sys_stat-c++-tests: New file, extracted from
9892         modules/sys_stat-tests.
9893         * modules/sys_stat-tests: Depend on it.
9894         * modules/sys_time-c++-tests: New file, extracted from
9895         modules/sys_time-tests.
9896         * modules/sys_time-tests: Depend on it.
9897         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9898         * modules/time-tests: Depend on it.
9899         * modules/unistd-c++-tests: New file, extracted from
9900         modules/unistd-tests.
9901         * modules/unistd-tests: Depend on it.
9902         * modules/wchar-c++-tests: New file, extracted from
9903         modules/wchar-tests.
9904         * modules/wchar-tests: Depend on it.
9905         * modules/wctype-c++-tests: New file, extracted from
9906         modules/wctype-tests.
9907         * modules/wctype-tests: Depend on it.
9908         Reported by Simon Josefsson.
9909
9910 2010-03-28  Bruno Haible  <bruno@clisp.org>
9911
9912         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9913         * gnulib-tool (func_exists_module): New function, extracted from
9914         func_verify_module.
9915         (func_verify_module): Use it.
9916         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9917         'foo' only if 'foo' exists.
9918         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9919         module.
9920
9921 2010-03-28  Bruno Haible  <bruno@clisp.org>
9922
9923         gnulib-tool: Add support for special categories of tests.
9924         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9925         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9926         (func_usage): Document them.
9927         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9928         inc_unportable_tests, inc_all_tests): New variables.
9929         (func_acceptable): Consider these variables.
9930         (func_modules_transitive_closure): Make it work when the 'Status' field
9931         consists of multiple words.
9932         (func_import): Store and restore the values of inc_cxx_tests,
9933         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9934         inc_all_tests in gnulib-comp.m4.
9935         (func_create_testdir): Set inc_all_tests to true.
9936         * doc/gnulib.texi (Extra tests modules): New section.
9937         Suggested by Jim Meyering.
9938
9939 2010-03-28  Bruno Haible  <bruno@clisp.org>
9940
9941         ansi-c++-opt: Allow turning off the C++ build by default.
9942         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9943         gl_CXX_CHOICE_DEFAULT_NO is defined.
9944         Requested by Eric Blake.
9945
9946 2010-03-28  Bruno Haible  <bruno@clisp.org>
9947
9948         unistd: Avoid #define replacements in C++ mode.
9949         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9950         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9951         setsockopt, shutdown, select): In C++, attach a warning to the function
9952         if possible, rather than #defining the symbol to a dysfunctional alias.
9953         Reported by John W. Eaton <jwe@gnu.org>.
9954
9955 2010-03-28  Bruno Haible  <bruno@clisp.org>
9956
9957         Fix link errors on mingw.
9958         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9959         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9960         $(LIBSOCKET).
9961         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9962         $(LIBSOCKET).
9963
9964 2010-03-28  Bruno Haible  <bruno@clisp.org>
9965             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9966
9967         lib-ignore: Determine different options for different compilers.
9968         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9969         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9970         Add comments.
9971         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9972         * NEWS: Mention the change.
9973
9974 2010-03-27  Bruno Haible  <bruno@clisp.org>
9975
9976         Remove unused GNULIB_XYZ macro definitions.
9977         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9978         * modules/fseek (configure.ac): Likewise.
9979         * modules/ioctl (configure.ac): Likewise.
9980         * modules/open (configure.ac): Likewise.
9981         * modules/stdlib-safer (configure.ac): Likewise.
9982
9983 2010-03-27  Bruno Haible  <bruno@clisp.org>
9984
9985         Add a remark about certain modules.
9986         * modules/malloc (Comment): New section.
9987         * modules/realloc (Comment): Likewise.
9988         * modules/sigpipe (Comment): Likewise.
9989
9990 2010-03-27  Bruno Haible  <bruno@clisp.org>
9991
9992         Resolve conflict between the two kinds of module indicators.
9993         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9994         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9995         * modules/canonicalize (configure.ac): Invoke
9996         gl_MODULE_INDICATOR_FOR_TESTS.
9997         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9998         GNULIB_XYZ.
9999         * tests/test-dirent-c++.cc: Likewise.
10000         * tests/test-dirent-safer.c: Likewise.
10001         * tests/test-dup2.c: Likewise.
10002         * tests/test-fchdir.c: Likewise.
10003         * tests/test-fcntl-h-c++.cc: Likewise.
10004         * tests/test-getopt.c: Likewise.
10005         * tests/test-getopt.h: Likewise.
10006         * tests/test-langinfo-c++.cc: Likewise.
10007         * tests/test-locale-c++.cc: Likewise.
10008         * tests/test-math-c++.cc: Likewise.
10009         * tests/test-pty-c++.cc: Likewise.
10010         * tests/test-search-c++.cc: Likewise.
10011         * tests/test-signal-c++.cc: Likewise.
10012         * tests/test-spawn-c++.cc: Likewise.
10013         * tests/test-stdio-c++.cc: Likewise.
10014         * tests/test-stdlib-c++.cc: Likewise.
10015         * tests/test-string-c++.cc: Likewise.
10016         * tests/test-sys_ioctl-c++.cc: Likewise.
10017         * tests/test-sys_select-c++.cc: Likewise.
10018         * tests/test-sys_socket-c++.cc: Likewise.
10019         * tests/test-sys_stat-c++.cc: Likewise.
10020         * tests/test-sys_time-c++.cc: Likewise.
10021         * tests/test-time-c++.cc: Likewise.
10022         * tests/test-unistd-c++.cc: Likewise.
10023         * tests/test-wchar-c++.cc: Likewise.
10024         * tests/uninorm/test-u8-nfc.c: Likewise.
10025         * tests/uninorm/test-u8-nfd.c: Likewise.
10026         * tests/uninorm/test-u8-nfkc.c: Likewise.
10027         * tests/uninorm/test-u8-nfkd.c: Likewise.
10028         * tests/uninorm/test-u16-nfc.c: Likewise.
10029         * tests/uninorm/test-u16-nfd.c: Likewise.
10030         * tests/uninorm/test-u16-nfkc.c: Likewise.
10031         * tests/uninorm/test-u16-nfkd.c: Likewise.
10032         * tests/uninorm/test-u32-nfc.c: Likewise.
10033         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10034         * tests/uninorm/test-u32-nfd.c: Likewise.
10035         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10036         * tests/uninorm/test-u32-nfkc.c: Likewise.
10037         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10038         * tests/uninorm/test-u32-nfkd.c: Likewise.
10039         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10040         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10041
10042 2010-03-27  Bruno Haible  <bruno@clisp.org>
10043
10044         Distinguish two kinds of module indicators.
10045         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10046         gl_MODULE_INDICATOR.
10047         (gl_MODULE_INDICATOR): New macro.
10048         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10049         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10050         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10051         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10052         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10053         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10054         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10055         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10056         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10057         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10058         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10059         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10061         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10062         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10063         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10064         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10065         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10066         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10067         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10068         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10069         * modules/cloexec (configure.ac): Likewise.
10070         * modules/getopt-gnu (configure.ac): Likewise.
10071         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10072         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10073         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10074         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10075
10076 2010-03-27  Bruno Haible  <bruno@clisp.org>
10077
10078         New module description field 'Comment'.
10079         * gnulib-tool: New option --extract-comment.
10080         (func_usage): Document it.
10081         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10082         (func_get_comment): New function.
10083         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10084
10085 2010-03-27  Bruno Haible  <bruno@clisp.org>
10086
10087         Addendum to 2010-02-07 commit.
10088         * gnulib-tool (func_usage): Document --extract-applicability option.
10089
10090 2010-03-27  Bruno Haible  <bruno@clisp.org>
10091
10092         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10093         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10094         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10095         rather than link errors.
10096
10097 2010-03-27  Bruno Haible  <bruno@clisp.org>
10098
10099         Avoid side effects from tests-related modules on the compilation of lib.
10100         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10101         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10102         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10103         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10104         macro.
10105         (func_import): Define a witness macro. Assign it a value that depends
10106         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10107         tests-related modules.
10108         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10109         Reported by Jim Meyering.
10110
10111 2010-03-27  Bruno Haible  <bruno@clisp.org>
10112
10113         Factorize common .m4 code.
10114         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10115         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10116         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10117         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10118         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10119         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10120         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10121         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10122         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10123         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10124         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10125         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10126         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10127         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10128         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10129         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10130         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10131         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10133         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10134         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10135         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10136         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10137         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10138         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10139         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10140         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10141         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10142         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10143         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10144         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10145         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10146
10147 2010-03-27  Bruno Haible  <bruno@clisp.org>
10148
10149         Fix a compilation error on Cygwin with g++ >= 4.3.
10150         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10151         if it is undefined or if we alias it to chmod.
10152         (lstat): Don't warn about the use of this function if it is undefined
10153         or if we alias it to stat.
10154         Reported by Simon Josefsson.
10155
10156 2010-03-27  Bruno Haible  <bruno@clisp.org>
10157
10158         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10159         * modules/getlogin (configure.ac): Update.
10160
10161         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10162         * modules/getlogin_r (configure.ac): Update.
10163
10164         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10166         * modules/inet_ntop (configure.ac): Update.
10167
10168         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10169         * modules/inet_pton (configure.ac): Update.
10170
10171         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10172         * modules/mbslen (configure.ac): Update.
10173
10174         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10175         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10176         * modules/forkpty (configure.ac): Update.
10177         * modules/openpty (configure.ac): Update.
10178
10179 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10180
10181         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10182         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10183
10184 2010-03-25  Eric Blake  <eblake@redhat.com>
10185
10186         maint: use pragma consistently across replacement headers
10187         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10188         * lib/dirent.in.h (system_header): Likewise.
10189         * lib/errno.in.h (system_header): Likewise.
10190         * lib/float.in.h (system_header): Likewise.
10191         * lib/getopt.in.h (system_header): Likewise.
10192         * lib/iconv.in.h (system_header): Likewise.
10193         * lib/inttypes.in.h (system_header): Likewise.
10194         * lib/langinfo.in.h (system_header): Likewise.
10195         * lib/locale.in.h (system_header): Likewise.
10196         * lib/math.in.h (system_header): Likewise.
10197         * lib/netdb.in.h (system_header): Likewise.
10198         * lib/netinet_in.in.h (system_header): Likewise.
10199         * lib/pty.in.h (system_header): Likewise.
10200         * lib/sched.in.h (system_header): Likewise.
10201         * lib/se-selinux.in.h (system_header): Likewise.
10202         * lib/search.in.h (system_header): Likewise.
10203         * lib/spawn.in.h (system_header): Likewise.
10204         * lib/stdarg.in.h (system_header): Likewise.
10205         * lib/stdint.in.h (system_header): Likewise.
10206         * lib/string.in.h (system_header): Likewise.
10207         * lib/strings.in.h (system_header): Likewise.
10208         * lib/sys_file.in.h (system_header): Likewise.
10209         * lib/sys_ioctl.in.h (system_header): Likewise.
10210         * lib/sys_socket.in.h (system_header): Likewise.
10211         * lib/sys_times.in.h (system_header): Likewise.
10212         * lib/sys_utsname.in.h (system_header): Likewise.
10213         * lib/sys_wait.in.h (system_header): Likewise.
10214         * lib/sysexits.in.h (system_header): Likewise.
10215         * lib/unistd.in.h (system_header): Likewise.
10216         * lib/wctype.in.h (system_header): Likewise.
10217
10218         arpa/inet: fix mingw compilation warning
10219         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10220         Reported by Matthew Bolte.
10221
10222 2010-03-25  Bruno Haible  <bruno@clisp.org>
10223
10224         Avoid collision between gnulib wrapper and libintl wrapper.
10225         * lib/printf.c (printf): Don't define if a printf wrapper is already
10226         defined in intl/printf.c.
10227         Reported by Michel Boaventura <michel@michelboaventura.com>.
10228
10229 2010-03-25  Bruno Haible  <bruno@clisp.org>
10230
10231         Use ANSI C.
10232         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10233
10234 2010-03-25  Bruno Haible  <bruno@clisp.org>
10235
10236         Minor formatting changes.
10237         * lib/acosl.c: Insert space before function argument list.
10238         * lib/argz.c: Likewise.
10239         * lib/asinl.c: Likewise.
10240         * lib/expl.c: Likewise.
10241         * lib/gen-uni-tables.c: Likewise.
10242         * lib/gettext.h: Likewise.
10243         * lib/glthread/lock.h: Likewise.
10244         * lib/tanl.c: Likewise.
10245         * lib/uniname/uniname.c: Likewise.
10246         * tests/test-idpriv-drop.c: Likewise.
10247         * tests/test-idpriv-droptemp.c: Likewise.
10248         * tests/test-lock.c: Likewise.
10249         * tests/test-tls.c: Likewise.
10250         * lib/argp-help.c: Insert space before function-like macro argument
10251         list.
10252         * lib/memcmp.c: Likewise.
10253         * tests/test-base64.c: Likewise.
10254         * lib/localename.c: Insert space before sizeof's argument list.
10255         * lib/safe-alloc.h: Likewise.
10256         * lib/file-set.h: Insert space before macro argument list.
10257         * tests/test-argp.c: Likewise.
10258         * lib/argp-namefrob.h: Insert space before function parameter list.
10259         * lib/getaddrinfo.c: Likewise.
10260         * lib/netdb.in.h: Likewise.
10261         * lib/parse-duration.h: Likewise.
10262         * lib/parse-duration.c: Likewise.
10263         * lib/poll.c: Likewise.
10264         * lib/select.c: Likewise.
10265         * lib/trim.h: Likewise.
10266         * tests/test-usleep.c: Likewise.
10267         * lib/ldexpl.c: Insert space before function parameter list and before
10268         function argument list.
10269         * lib/logl.c: Likewise.
10270         * lib/sqrtl.c: Likewise.
10271         * lib/trim.c: Likewise.
10272         * lib/cosl.c: Use GNU style indentation. Insert space before function
10273         argument list.
10274         * lib/sinl.c: Likewise.
10275         * lib/tsearch.c: Insert space after 'for'.
10276         Reported by Jim Meyering.
10277
10278 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10279
10280         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10281         config header before grepping, as it's not present before
10282         autoreconf/configure are run.  Reported by Simon Josefsson.
10283
10284 2010-03-23  Bruno Haible  <bruno@clisp.org>
10285
10286         pt_chown: Make it work with automake < 1.11.
10287         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10288         Reported by Simon Josefsson.
10289
10290 2010-03-23  Bruno Haible  <bruno@clisp.org>
10291
10292         pt_chown: Don't depend on GPLed modules.
10293         * lib/pt_chown.c: Don't include idpriv.h.
10294         (main): Don't drop privileges.
10295         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10296         Reported by Simon Josefsson.
10297
10298 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10299
10300         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10301         suggestions from karl@freefriends.org (Karl Berry).
10302
10303 2010-03-22  Eric Blake  <eblake@redhat.com>
10304
10305         gethostname: further tweaks
10306         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10307         are overriding gethostname.
10308         Suggested by Bruno Haible.
10309
10310 2010-03-21  Bruno Haible  <bruno@clisp.org>
10311
10312         Fix comments.
10313         * lib/forkpty.c (rpl_forkpty): Fix comment.
10314         * lib/openpty.c (rpl_openpty): Likewise.
10315         Reported by Eric Blake.
10316
10317 2010-03-22  Eric Blake  <eblake@redhat.com>
10318
10319         gethostname: fix build on mingw
10320         * lib/unistd.in.h (includes): Work around fact that mingw
10321         <winsock2.h> re-includes <unistd.h>, by avoiding any
10322         redeclarations if we are being included by <winsock2.h>.
10323         Reported by Matthias Bolte.
10324
10325 2010-03-21  Bruno Haible  <bruno@clisp.org>
10326
10327         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10328         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10329         modifications.
10330         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10331         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10332         provide the replacement.
10333         * modules/forkpty (Depends-on): Add openpty, login_tty.
10334         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10335         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10336         * doc/glibc-functions/forkpty.texi: More supported platforms.
10337         * config/srclist.txt: Add forkpty.c (commented).
10338
10339 2010-03-21  Bruno Haible  <bruno@clisp.org>
10340
10341         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10342         (Makefile.am): Verify that PTY_LIB is defined.
10343
10344         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10345
10346 2010-03-21  Bruno Haible  <bruno@clisp.org>
10347
10348         Tests for module 'login_tty'.
10349         * modules/login_tty-tests: New file.
10350         * tests/test-login_tty.c: New file.
10351
10352         New module 'login_tty'.
10353         * lib/login_tty.c: New file.
10354         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10355         * modules/login_tty: New file.
10356         * doc/glibc-functions/login_tty.texi: Mention the new module.
10357
10358 2010-03-21  Bruno Haible  <bruno@clisp.org>
10359
10360         login_tty: Documentation.
10361         * doc/glibc-functions/login_tty.texi: New file.
10362         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10363
10364 2010-03-21  Bruno Haible  <bruno@clisp.org>
10365
10366         pty: Consistent macro naming.
10367         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10368         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10369         * modules/pty (configure.ac): Update.
10370
10371 2010-03-21  Bruno Haible  <bruno@clisp.org>
10372
10373         Tests for openpty: Make stricter.
10374         * tests/test-openpty.c (main): Add test of canonical processing and
10375         erase.
10376         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10377
10378         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10379         * lib/openpty.c (openpty): New replacement function.
10380         * lib/pty.in.h: Include <termios.h>.
10381         (openpty): Update declaration. Add comments.
10382         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10383         is not declared, arrange to provide the replacement. Check for _getpty
10384         and posix_openpt.
10385         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10386         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10387         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10388         * modules/pty-tests (test_pty_c___LDADD): New variable.
10389         * doc/glibc-functions/openpty.texi: More supported platforms.
10390
10391 2010-03-21  Bruno Haible  <bruno@clisp.org>
10392
10393         setenv: Tweaks.
10394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10395         the test program.
10396         * doc/posix-functions/setenv.texi: Update platforms list.
10397
10398 2010-03-21  Bruno Haible  <bruno@clisp.org>
10399
10400         New module 'unlockpt'.
10401         * lib/unlockpt.c: New file, from glibc with modifications.
10402         * m4/unlockpt.m4: New file.
10403         * modules/unlockpt: New file.
10404         * lib/stdlib.in.h (unlockpt): New declaration.
10405         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10406         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10407         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10408         HAVE_UNLOCKPT.
10409         * doc/posix-functions/unlockpt.texi: Mention the new module.
10410         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10411         * config/srclist.txt: Add unlockpt.c (commented).
10412
10413 2010-03-21  Jim Meyering  <meyering@redhat.com>
10414
10415         maint.mk: prohibit inclusion of "intprops.h" without use
10416         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10417
10418 2010-03-21  Bruno Haible  <bruno@clisp.org>
10419
10420         New module 'grantpt'.
10421         * lib/grantpt.c: New file, from glibc with modifications.
10422         * m4/grantpt.m4: New file.
10423         * modules/grantpt: New file.
10424         * lib/stdlib.in.h (grantpt): New declaration.
10425         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10426         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10427         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10428         HAVE_GRANTPT.
10429         * doc/posix-functions/grantpt.texi: Mention the new module.
10430         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10431         * config/srclist.txt: Add grantpt.c (commented).
10432
10433 2010-03-21  Bruno Haible  <bruno@clisp.org>
10434
10435         New module 'pt_chown'.
10436         * lib/pt_chown.c: New file, from glibc with modifications.
10437         * lib/pty-private.h: New file, from glibc with modifications.
10438         * modules/pt_chown: New file.
10439         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10440
10441 2010-03-21  Bruno Haible  <bruno@clisp.org>
10442
10443         Tests for module 'ptsname'.
10444         * modules/ptsname-tests: New file.
10445         * tests/test-ptsname.c: New file.
10446
10447         New module 'ptsname'.
10448         * lib/ptsname.c: New file, from glibc with modifications.
10449         * m4/ptsname.m4: New file.
10450         * modules/ptsname: New file.
10451         * lib/stdlib.in.h (ptsname): New declaration.
10452         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10453         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10454         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10455         HAVE_PTSNAME.
10456         * doc/posix-functions/ptsname.texi: Mention the new module.
10457         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10458         * config/srclist.txt: Add ptsname.c (commented).
10459
10460 2010-03-21  Bruno Haible  <bruno@clisp.org>
10461
10462         Tests for module 'ttyname_r'.
10463         * modules/ttyname_r-tests: New file.
10464         * tests/test-ttyname_r.c: New file.
10465
10466         New module 'ttyname_r'.
10467         * lib/ttyname_r.c: New file.
10468         * m4/ttyname_r.m4: New file.
10469         * modules/ttyname_r: New file.
10470         * lib/unistd.in.h (ttyname_r): New declaration.
10471         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10472         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10473         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10474         HAVE_TTYNAME_R.
10475         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10476         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10477
10478 2010-03-20  Bruno Haible  <bruno@clisp.org>
10479
10480         signal: Undefine macro definitions in C++ mode.
10481         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10482         sigfillset): Undefine macro definitions from the system header in C++
10483         mode.
10484         Reported by John W. Eaton <jwe@gnu.org>.
10485
10486 2010-03-20  Bruno Haible  <bruno@clisp.org>
10487
10488         Ensure no #include statements inside extern "C" { ... }.
10489         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10490         contain #include statements.
10491         * lib/time.in.h: Likewise.
10492
10493 2010-03-20  Bruno Haible  <bruno@clisp.org>
10494
10495         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10496         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10497         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10498         Reported by John W. Eaton <jwe@gnu.org>.
10499
10500 2010-03-20  Bruno Haible  <bruno@clisp.org>
10501
10502         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10503         Reported by Jim Meyering.
10504
10505 2010-03-20  Bruno Haible  <bruno@clisp.org>
10506
10507         pipe: Set errno upon failure.
10508         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10509         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10510         errno value in error message.
10511
10512 2010-03-20  Bruno Haible  <bruno@clisp.org>
10513             Jim Meyering  <meyering@redhat.com>
10514
10515         lchown: Avoid "unused variable" warning.
10516         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10517
10518 2010-03-20  Bruno Haible  <bruno@clisp.org>
10519
10520         Work around unlink() bug on MacOS X 10.5.6.
10521         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10522         attempting to unlink a parent directory.
10523         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10524         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10525         activate for the replacement function.
10526         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10527
10528 2010-03-20  Bruno Haible  <bruno@clisp.org>
10529
10530         Fix link errors on Solaris 8.
10531         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10532         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10533
10534 2010-03-19  Jim Meyering  <meyering@redhat.com>
10535
10536         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10537         The _LIBC implementation of build_range_exp correctly honors the
10538         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10539         However, the non-_LIBC implementation would ignore that syntax-bit
10540         flag and return REG_ERANGE unconditionally.
10541         This change makes it honor that flag.
10542         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10543         Make two pointer parameters "const".
10544         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10545         (parse_bracket_exp): Update caller.
10546
10547         regex.m4: correct the reversed range endpoint ([b-a]) test
10548         * m4/regex.m4: When requiring that [b-a] evoke failure,
10549         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10550         test pass once again for x86-based systems.
10551
10552 2010-03-19  Bruno Haible  <bruno@clisp.org>
10553
10554         scandir: Fix link error on Solaris 8.
10555         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10556         macros.
10557
10558 2010-03-19  Bruno Haible  <bruno@clisp.org>
10559
10560         getusershell: Fix documentation.
10561         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10562         module.
10563         * doc/glibc-functions/setusershell.texi: Likewise.
10564
10565         getusershell: Provide declaration, missing on Solaris 9.
10566         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10567         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10568         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10569         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10571         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10572         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10573         HAVE_GETUSERSHELL.
10574         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10575
10576 2010-03-19  Bruno Haible  <bruno@clisp.org>
10577
10578         wctype: Provide iswblank function.
10579         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10580         exists and is fine.
10581         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10582         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10583         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10584         * doc/posix-functions/iswblank.texi: Update.
10585
10586 2010-03-19  Bruno Haible  <bruno@clisp.org>
10587
10588         Tests of module 'pty' in C++ mode.
10589         * modules/pty-tests: New file.
10590         * tests/test-pty-c++.cc: New file.
10591         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10592
10593 2010-03-19  Eric Blake  <eblake@redhat.com>
10594
10595         logb: fix documentation
10596         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10597         1.5 declaration bug.
10598
10599         forkpty, openpty: prefer glibc's const-safe prototype
10600         * lib/forkpty.c (rpl_forkpty): New file.
10601         * lib/openpty.c (rpl_openpty): Likewise.
10602         * modules/forkpty (Files): Distribute it.
10603         * modules/openpty (Files): Likewise.
10604         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10605         check...
10606         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10607         replacement for for non-const BSD signature.
10608         * modules/pty (Makefile.am): Substitute witnesses.
10609         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10610         * tests/test-forkpty.c: Update signature check.
10611         * tests/test-openpty.c: Likewise.
10612         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10613         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10614
10615         forkpty, openpty: split functions into new modules
10616         * modules/pty (Makefile.am): Substitute new witnesses.
10617         (Libraries): Move library detection...
10618         * modules/forkpty: ...into new module.
10619         * modules/openpty: Another new module.
10620         * modules/pty-tests: Rename and split...
10621         * modules/forkpty-tests: ...to this...
10622         * modules/openpty-tests: ...and this.
10623         * tests/test-pty.c: Rename and split...
10624         * tests/test-forkpty.c: ...to this...
10625         * tests/test-openpty.c: ...and this.
10626         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10627         (gl_PTY): Split library searching...
10628         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10629         (gl_FORKPTY, gl_OPENPTY): New macros.
10630         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10631         * NEWS: Mention the split.
10632         * MODULES.html.sh (Misc): Document the modules.
10633         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10634         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10635
10636         pty: improve replacement header
10637         * lib/pty.in.h: New file.
10638         * modules/pty (Files): Ship it.
10639         (Makefile.am): Always build replacement.
10640         * m4/pty.m4: Rename...
10641         * m4/pty_h.m4: ...to this.
10642         (gl_PTY): Modernize setting of witness macros; update check of
10643         forkpty to take proper advantage of cache.
10644         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10645
10646         getopt: avoid compiler warning
10647         * lib/getopt.c (attribute_hidden): Remove unused macro.
10648
10649 2010-03-18  Bruno Haible  <bruno@clisp.org>
10650
10651         Fix link errors on Solaris 8.
10652         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10653         * modules/search-tests (test_search_c___LDADD): Likewise.
10654         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10655         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10656         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10657         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10658         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10659         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10660         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10661
10662 2010-03-18  Bruno Haible  <bruno@clisp.org>
10663
10664         Fix bug introduced on 2010-03-14.
10665         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10666         (gl_SPAWN_H): Require it.
10667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10668         Reported by Simon Josefsson.
10669
10670 2010-03-18  Bruno Haible  <bruno@clisp.org>
10671
10672         Fix typo introduced on 2009-12-31.
10673         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10674         posix_spawn_file_actions_adddup2.
10675
10676 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10677         and Eric Blake  <eblake@redhat.com>
10678
10679         test-vc-list-files-git: make more robust
10680         * tests/test-vc-list-files-git.sh: Unset problematic environment
10681         variables.  Chain commands together.
10682
10683 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10684
10685         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10686         `AC_CHECK_DECL' invocation.
10687
10688 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10689
10690         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10691         appears before executable statements. Suggested by Petr Sumbera
10692         <Petr.Sumbera@Sun.COM>.
10693
10694 2010-03-14  Bruno Haible  <bruno@clisp.org>
10695
10696         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10697         portability problems. Instead use a simpler test.
10698         (main): Check that invalid arguments are rejected only on Linux.
10699
10700 2010-03-14  Bruno Haible  <bruno@clisp.org>
10701
10702         Fix bug introduced on 2009-12-31.
10703         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10704         gl_PREREQ_SYS_H_WINSOCK2 always.
10705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10706         SYS_SOCKET_H variable.
10707         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10708         Update comments.
10709         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10710         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10711         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10712         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10713         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10714
10715 2010-03-14  Bruno Haible  <bruno@clisp.org>
10716
10717         Fix values returned by sinl, cosl.
10718         * lib/trigl.h: Add specification comments.
10719         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10720         that combines the values from the precomputed table with the values of
10721         the Chebyshev polynomials.
10722
10723 2010-03-14  Bruno Haible  <bruno@clisp.org>
10724
10725         Fix compilation error when modules 'posix_spawn[p]' are not used.
10726         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10727         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10728
10729 2010-03-14  Bruno Haible  <bruno@clisp.org>
10730
10731         Fix compilation error on mingw when module 'time_r' is not used.
10732         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10733         is 1.
10734         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10735         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10736         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10737         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10738
10739 2010-03-14  Bruno Haible  <bruno@clisp.org>
10740
10741         Fix compilation error with Sun C.
10742         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10743         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10744         instead of GCC specific ULONG_LONG_MAX.
10745         * lib/xstrtoll.c: Likewise.
10746         * lib/xstrtoull.c: Likewise.
10747
10748 2010-03-13  Bruno Haible  <bruno@clisp.org>
10749
10750         Allow the user to disable C++ code and tests.
10751         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10752         (gl_PROG_ANSI_CXX): Require it.
10753
10754 2010-03-13  Bruno Haible  <bruno@clisp.org>
10755
10756         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10757         cases.
10758
10759 2010-03-13  Bruno Haible  <bruno@clisp.org>
10760
10761         Test that gnulib does not break the standard C++ headers.
10762         * tests/test-locale-c++2.cc: New file.
10763         * modules/locale-tests (Files): Add it.
10764         (Makefile.am): Compile it for test-locale-c++.
10765         * tests/test-math-c++2.cc: New file.
10766         * modules/math-tests (Files): Add it.
10767         (Makefile.am): Compile it for test-math-c++.
10768         * tests/test-signal-c++2.cc: New file.
10769         * modules/signal-tests (Files): Add it.
10770         (Makefile.am): Compile it for test-signal-c++.
10771         * tests/test-stdio-c++2.cc: New file.
10772         * modules/stdio-tests (Files): Add it.
10773         (Makefile.am): Compile it for test-stdio-c++.
10774         * tests/test-stdlib-c++2.cc: New file.
10775         * modules/stdlib-tests (Files): Add it.
10776         (Makefile.am): Compile it for test-stdlib-c++.
10777         * tests/test-string-c++2.cc: New file.
10778         * modules/string-tests (Files): Add it.
10779         (Makefile.am): Compile it for test-string-c++.
10780         * tests/test-time-c++2.cc: New file.
10781         * modules/time-tests (Files): Add it.
10782         (Makefile.am): Compile it for test-time-c++.
10783         Reported by John W. Eaton <jwe@gnu.org>.
10784
10785 2010-03-13  Bruno Haible  <bruno@clisp.org>
10786
10787         * gnulib-tool (func_usage): Clarify which options are available for
10788         --create-testdir and --create-megatestdir.
10789
10790 2010-03-13  Bruno Haible  <bruno@clisp.org>
10791
10792         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10793         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10794         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10795         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10796         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10797         when appropriate.
10798         Reported by Jim Meyering.
10799
10800 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10801
10802         * gnulib-tool (func_import): Explain origin of code.
10803
10804 2010-03-12  Bruno Haible  <bruno@clisp.org>
10805
10806         Fix problem with automake's definition of CXXLINK.
10807         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10808         Reported by Simon Josefsson and Ludovic Courtès.
10809
10810 2010-03-12  Bruno Haible  <bruno@clisp.org>
10811
10812         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10813         stable releases.
10814
10815 2010-03-11  Bruno Haible  <bruno@clisp.org>
10816
10817         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10818         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10819         whether the system provides one variant or multiple variants of the
10820         function.
10821         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10822         C++ compilers.
10823         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10824         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10825         Reported by Jim Meyering.
10826
10827 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10828
10829         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10830
10831 2010-03-08  Bruno Haible  <bruno@clisp.org>
10832
10833         gnulib-tool: Add support for --libtool in --create-testdir.
10834         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10835         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10836
10837 2010-03-08  Eric Blake  <eblake@redhat.com>
10838
10839         gnulib-tool.texi: mention possibility of git submodule
10840         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10841         submodules.
10842         * doc/.gitignore: Ignore another generated file.
10843
10844 2010-03-08  Karl Berry  <karl@gnu.org>
10845
10846         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10847         of committing gnulib files while skipping others.
10848
10849 2010-03-07  Bruno Haible  <bruno@clisp.org>
10850
10851         Tests of module 'wctype' in C++ mode.
10852         * tests/test-wctype-c++.cc: New file.
10853         * modules/wctype-tests (Files): Add it and tests/signature.h.
10854         (Depends-on): Add ansi-c++-opt.
10855         (Makefile.am): Arrange to compile and run test-wctype-c++.
10856
10857         Tests of module 'wchar' in C++ mode.
10858         * tests/test-wchar-c++.cc: New file.
10859         * modules/wchar-tests (Files): Add it and tests/signature.h.
10860         (Depends-on): Add ansi-c++-opt.
10861         (Makefile.am): Arrange to compile and run test-wchar-c++.
10862         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10863         gl_MODULE_INDICATOR.
10864
10865         Tests of module 'unistd' in C++ mode.
10866         * tests/test-unistd-c++.cc: New file.
10867         * modules/unistd-tests (Files): Add it and tests/signature.h.
10868         (Depends-on): Add ansi-c++-opt.
10869         (Makefile.am): Arrange to compile and run test-unistd-c++.
10870         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10871         gl_MODULE_INDICATOR.
10872
10873         Tests of module 'time' in C++ mode.
10874         * tests/test-time-c++.cc: New file.
10875         * modules/time-tests (Files): Add it and tests/signature.h.
10876         (Depends-on): Add ansi-c++-opt.
10877         (Makefile.am): Arrange to compile and run test-time-c++.
10878         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10879
10880         Tests of module 'sys_time' in C++ mode.
10881         * tests/test-sys_time-c++.cc: New file.
10882         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10883         (Depends-on): Add ansi-c++-opt.
10884         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10885         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10886         gl_MODULE_INDICATOR.
10887
10888         Tests of module 'sys_stat' in C++ mode.
10889         * tests/test-sys_stat-c++.cc: New file.
10890         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10891         (Depends-on): Add ansi-c++-opt.
10892         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10893         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10894         gl_MODULE_INDICATOR.
10895
10896         Tests of module 'sys_socket' in C++ mode.
10897         * tests/test-sys_socket-c++.cc: New file.
10898         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10899         (Depends-on): Add ansi-c++-opt.
10900         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10901         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10902         gl_MODULE_INDICATOR.
10903
10904         Tests of module 'sys_select' in C++ mode.
10905         * tests/test-sys_select-c++.cc: New file.
10906         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10907         (Depends-on): Add ansi-c++-opt.
10908         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10909         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10910         gl_MODULE_INDICATOR.
10911
10912         Tests of module 'sys_ioctl' in C++ mode.
10913         * tests/test-sys_ioctl-c++.cc: New file.
10914         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10915         (Depends-on): Add ansi-c++-opt.
10916         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10917         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10918         gl_MODULE_INDICATOR.
10919
10920         Tests of module 'string' in C++ mode.
10921         * tests/test-string-c++.cc: New file.
10922         * modules/string-tests (Files): Add it and tests/signature.h.
10923         (Depends-on): Add ansi-c++-opt.
10924         (Makefile.am): Arrange to compile and run test-string-c++.
10925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10926         gl_MODULE_INDICATOR.
10927
10928         Tests of module 'stdlib' in C++ mode.
10929         * tests/test-stdlib-c++.cc: New file.
10930         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10931         (Depends-on): Add ansi-c++-opt.
10932         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10933         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10934         gl_MODULE_INDICATOR.
10935
10936         Tests of module 'stdio' in C++ mode.
10937         * tests/test-stdio-c++.cc: New file.
10938         * modules/stdio-tests (Files): Add it and tests/signature.h.
10939         (Depends-on): Add ansi-c++-opt.
10940         (Makefile.am): Arrange to compile and run test-stdio-c++.
10941         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10942         gl_MODULE_INDICATOR.
10943
10944         Tests of module 'spawn' in C++ mode.
10945         * tests/test-spawn-c++.cc: New file.
10946         * modules/spawn-tests (Files): Add it and tests/signature.h.
10947         (Depends-on): Add ansi-c++-opt.
10948         (Makefile.am): Arrange to compile and run test-spawn-c++.
10949         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10950         gl_MODULE_INDICATOR.
10951
10952         Tests of module 'signal' in C++ mode.
10953         * tests/test-signal-c++.cc: New file.
10954         * modules/signal-tests (Files): Add it and tests/signature.h.
10955         (Depends-on): Add ansi-c++-opt.
10956         (Makefile.am): Arrange to compile and run test-signal-c++.
10957         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10958         gl_MODULE_INDICATOR.
10959
10960         Tests of module 'search' in C++ mode.
10961         * tests/test-search-c++.cc: New file.
10962         * modules/search-tests (Files): Add it and tests/signature.h.
10963         (Depends-on): Add ansi-c++-opt.
10964         (Makefile.am): Arrange to compile and run test-search-c++.
10965         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10966         gl_MODULE_INDICATOR.
10967
10968         Tests of module 'math' in C++ mode.
10969         * tests/test-math-c++.cc: New file.
10970         * modules/math-tests (Files): Add it and tests/signature.h.
10971         (Depends-on): Add ansi-c++-opt.
10972         (Makefile.am): Arrange to compile and run test-math-c++.
10973         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10974
10975         Tests of module 'locale' in C++ mode.
10976         * tests/test-locale-c++.cc: New file.
10977         * modules/locale-tests (Files): Add it and tests/signature.h.
10978         (Depends-on): Add ansi-c++-opt.
10979         (Makefile.am): Arrange to compile and run test-locale-c++.
10980         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10981         gl_MODULE_INDICATOR.
10982
10983         Tests of module 'langinfo' in C++ mode.
10984         * tests/test-langinfo-c++.cc: New file.
10985         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10986         (Depends-on): Add ansi-c++-opt.
10987         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10988         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10989         gl_MODULE_INDICATOR.
10990
10991         Tests of module 'iconv-h' in C++ mode.
10992         * tests/test-iconv-h-c++.cc: New file.
10993         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10994         (Depends-on): Add ansi-c++-opt.
10995         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10996
10997         Tests of module 'glob' in C++ mode.
10998         * tests/test-glob-c++.cc: New file.
10999         * modules/glob-tests (Files): Add it.
11000         (Depends-on): Add ansi-c++-opt.
11001         (Makefile.am): Arrange to compile and run test-glob-c++.
11002
11003         Tests of module 'fcntl-h' in C++ mode.
11004         * tests/test-fcntl-h-c++.cc: New file.
11005         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11006         (Depends-on): Add ansi-c++-opt.
11007         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11008         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11009         gl_MODULE_INDICATOR.
11010
11011         Tests of module 'dirent' in C++ mode.
11012         * tests/test-dirent-c++.cc: New file.
11013         * modules/dirent-tests (Files): Add it and tests/signature.h.
11014         (Depends-on): Add ansi-c++-opt.
11015         (Makefile.am): Arrange to compile and run test-dirent-c++.
11016         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11017         gl_MODULE_INDICATOR.
11018
11019         New module 'ansi-c++-opt'.
11020         * modules/ansi-c++-opt: New file.
11021         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11022
11023         Document C++ namespace mode.
11024         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11025
11026         wctype: Avoid #define replacements in C++ mode.
11027         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11028         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11029         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11030         In C++, define a namespaced alias symbol.
11031         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11032         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11033         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11034         rule.
11035
11036         wchar: Avoid #define replacements in C++ mode.
11037         * lib/wchar.in.h: Include c++defs.h.
11038         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11039         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11040         symbol.
11041         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11042         * modules/wchar (Depends-on): Add c++defs.
11043         (Makefile.am): Update wchar.h rule.
11044
11045         unistd: Avoid #define replacements in C++ mode.
11046         * lib/unistd.in.h: Include c++defs.h.
11047         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11048         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11049         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11050         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11051         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11052         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11053         symbol.
11054         (environ): Update.
11055         * modules/unistd (Depends-on): Add c++defs.
11056         (Makefile.am): Update unistd.h rule.
11057
11058         time: Avoid #define replacements in C++ mode.
11059         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11060         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11061         define a namespaced alias symbol.
11062         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11063         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11064         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11065         * modules/time (Depends-on): Add c++defs, warn-on-use.
11066         (Makefile.am): Update time.h rule.
11067         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11068         * modules/nanosleep (configure.ac): Likewise.
11069         * modules/strptime (configure.ac): Likewise.
11070         * modules/timegm (configure.ac): Likewise.
11071
11072         sys_time: Avoid #define replacements in C++ mode.
11073         * lib/sys_time.in.h: Include c++defs.h.
11074         (gettimeofday): In C++, define a namespaced alias symbol.
11075         * modules/sys_time (Depends-on): Add c++defs.
11076         (Makefile.am): Update sys/time.h rule.
11077
11078         sys_stat: Avoid #define replacements in C++ mode.
11079         * lib/sys_stat.in.h: Include c++defs.h.
11080         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11081         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11082         namespaced alias symbol.
11083         In C++, define a namespaced alias symbol.
11084         * modules/sys_stat (Depends-on): Add c++defs.
11085         (Makefile.am): Update sys/stat.h rule.
11086
11087         sys_socket: Avoid #define replacements in C++ mode.
11088         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11089         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11090         definitions also when the system has a <sys/socket.h>.
11091         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11092         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11093         In C++, define a namespaced alias symbol.
11094         * modules/sys_socket (Depends-on): Add c++defs.
11095         (Makefile.am): Update sys/socket.h rule.
11096
11097         sys_select: Avoid #define replacements in C++ mode.
11098         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11099         definitions also when the system has a <sys/select.h>.
11100         (select): In C++, define a namespaced alias symbol.
11101         * modules/sys_select (Depends-on): Add c++defs.
11102         (Makefile.am): Update sys/select.h rule.
11103
11104         sys_ioctl: Avoid #define replacements in C++ mode.
11105         * lib/sys_ioctl.in.h: Include c++defs.h.
11106         (ioctl): In C++, define a namespaced alias symbol.
11107         * modules/sys_ioctl (Depends-on): Add c++defs.
11108         (Makefile.am): Update sys/ioctl.h rule.
11109
11110         string: Avoid #define replacements in C++ mode.
11111         * lib/string.in.h: Include c++defs.h.
11112         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11113         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11114         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11115         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11116         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11117         * modules/string (Depends-on): Add c++defs.
11118         (Makefile.am): Update string.h rule.
11119
11120         stdlib: Avoid #define replacements in C++ mode.
11121         * lib/stdlib.in.h: Include c++defs.h.
11122         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11123         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11124         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11125         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11126         symbol.
11127         * modules/stdlib (Depends-on): Add c++defs.
11128         (Makefile.am): Update stdlib.h rule.
11129
11130         stdio: Avoid #define replacements in C++ mode.
11131         * lib/stdio.in.h: Include c++defs.h.
11132         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11133         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11134         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11135         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11136         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11137         namespaced alias symbol.
11138         * modules/stdio (Depends-on): Add c++defs.
11139         (Makefile.am): Update stdio.h rule.
11140
11141         spawn: Avoid #define replacements in C++ mode.
11142         * lib/spawn.in.h: Include c++defs.h.
11143         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11144         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11145         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11146         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11147         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11148         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11149         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11150         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11151         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11152         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11153         In C++, define a namespaced alias symbol.
11154         * modules/spawn (Depends-on): Add c++defs.
11155         (Makefile.am): Update spawn.h rule.
11156
11157         signal: Avoid #define replacements in C++ mode.
11158         * lib/signal.in.h: Include c++defs.h.
11159         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11160         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11161         namespaced alias symbol.
11162         * modules/signal (Depends-on): Add c++defs.
11163         (Makefile.am): Update signal.h rule.
11164
11165         search: Avoid #define replacements in C++ mode.
11166         * lib/search.in.h: Include c++defs.h.
11167         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11168         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11169         symbol.
11170         * modules/search (Depends-on): Add c++defs.
11171         (Makefile.am): Update search.h rule.
11172
11173         math: Avoid #define replacements in C++ mode.
11174         * lib/math.in.h: Include c++defs.h.
11175         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11176         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11177         trunc, truncl): In C++, define a namespaced alias symbol.
11178         * modules/math (Depends-on): Add c++defs.
11179         (Makefile.am): Update math.h rule.
11180
11181         locale: Avoid #define replacements in C++ mode.
11182         * lib/locale.in.h: Include c++defs.h.
11183         (duplocale): In C++, define a namespaced alias symbol.
11184         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11185         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11186         * modules/locale (Depends-on): Add c++defs.
11187         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11188
11189         langinfo: Avoid #define replacements in C++ mode.
11190         * lib/langinfo.in.h: Include c++defs.h.
11191         (nl_langinfo): In C++, define a namespaced alias symbol.
11192         * modules/langinfo (Depends-on): Add c++defs.
11193         (Makefile.am): Update langinfo.h rule.
11194
11195         iconv-h: Avoid #define replacements in C++ mode.
11196         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11197         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11198         symbol.
11199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11200         whenever iconv is present.
11201         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11202         (Makefile.am): Update iconv.h rule.
11203
11204         glob: Avoid #define replacements in C++ mode.
11205         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11206         (_gl_glob_errfunc_fn): New type.
11207         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11208         symbol.
11209         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11210         (Makefile.am): Update glob.h rule.
11211
11212         fcntl-h: Avoid #define replacements in C++ mode.
11213         * lib/fcntl.in.h: Include c++defs.h.
11214         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11215         * modules/fcntl-h (Depends-on): Add c++defs.
11216         (Makefile.am): Update fcntl.h rule.
11217
11218         dirent: Avoid #define replacements in C++ mode.
11219         * lib/dirent.in.h: Include c++defs.h.
11220         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11221         namespaced alias symbol.
11222         (dirfd): Update declaration.
11223         * modules/dirent (Depends-on): Add c++defs.
11224         (Makefile.am): Update dirent.h rule.
11225
11226         ctype: Make it usable in C++ code.
11227         * lib/ctype.in.h: Include c++defs.h.
11228         (isblank): Declare as extern "C".
11229         * modules/ctype (Depends-on): Add c++defs.
11230         (Makefile.am): Update ctype.h rule.
11231
11232         New module 'c++defs'.
11233         * modules/c++defs: New file.
11234         * build-aux/c++defs.h: New file.
11235         Reported by John W. Eaton <jwe@gnu.org>.
11236
11237 2010-03-07  Bruno Haible  <bruno@clisp.org>
11238
11239         logb: Provide missing declaration for Cygwin.
11240         * lib/math.in.h (logb): New declaration.
11241         * m4/logb.m4: New file.
11242         * modules/logb (Files): Add m4/logb.m4.
11243         (Depends-on): Add math.
11244         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11245         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11247         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11248         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11249
11250 2010-03-07  Bruno Haible  <bruno@clisp.org>
11251
11252         Fix test-cond link error.
11253         * tests/test-cond.c: Include <stdio.h>.
11254
11255 2010-03-07  Bruno Haible  <bruno@clisp.org>
11256
11257         Fix test-dirent-safer link error.
11258         * modules/dirent-safer-tests (Makefile.am): Define
11259         test_dirent_safer_LDADD.
11260
11261 2010-03-07  Bruno Haible  <bruno@clisp.org>
11262
11263         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11264         among default module list.
11265
11266 2010-03-07  Bruno Haible  <bruno@clisp.org>
11267
11268         Fix link error on platforms with GNU libiconv.
11269         * modules/unistr/u8-strcoll-tests (Makefile): Define
11270         test_u8_strcoll_LDADD.
11271         * modules/unistr/u16-strcoll-tests (Makefile): Define
11272         test_u16_strcoll_LDADD.
11273         * modules/unistr/u32-strcoll-tests (Makefile): Define
11274         test_u32_strcoll_LDADD.
11275
11276 2010-03-07  Bruno Haible  <bruno@clisp.org>
11277
11278         Use POSIX declarations for socket functions.
11279         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11280         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11281         rpl_sendto): Change declaration to match POSIX.
11282         * lib/connect.c (rpl_connect): Likewise.
11283         * lib/accept.c (rpl_accept): Likewise.
11284         * lib/bind.c (rpl_bind): Likewise.
11285         * lib/getpeername.c (rpl_getpeername): Likewise.
11286         * lib/getsockname.c (rpl_getsockname): Likewise.
11287         * lib/recv.c (rpl_recv): Likewise.
11288         * lib/send.c (rpl_send): Likewise.
11289         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11290         * lib/sendto.c (rpl_sendto): Likewise.
11291
11292 2010-03-06  Bruno Haible  <bruno@clisp.org>
11293
11294         Clarify access, euidaccess, faccessat.
11295         * doc/posix-functions/faccessat.texi: Mention security problem under
11296         "Other problems", not "Portability problems".
11297         * doc/posix-functions/access.texi: Likewise. Mention a related security
11298         problem.
11299         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11300         * lib/euidaccess.c: Add comments about platforms.
11301         * lib/unistd.in.h (access, euidaccess): Add warnings.
11302
11303 2010-03-07  Bruno Haible  <bruno@clisp.org>
11304
11305         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11306         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11307         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11308         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11309         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11310         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11311         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11312         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11313         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11314         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11315         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11316         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11317         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11318         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11319         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11320         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11321         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11322         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11323         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11324         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11325         Likewise.
11326         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11327         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11328         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11329         Likewise.
11330         * tests/test-spawn.c (main): Make it work when
11331         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11332
11333 2010-03-07  Bruno Haible  <bruno@clisp.org>
11334
11335         Fix incorrect Makefile.am generation in German locale.
11336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11337         Execute sed command with character range in C locale.
11338
11339 2010-03-06  Bruno Haible  <bruno@clisp.org>
11340
11341         Tests for module 'iconv-h'.
11342         * modules/iconv-h-tests: New file.
11343         * tests/test-iconv-h.c: New file.
11344
11345         New module 'iconv-h'.
11346         * modules/iconv-h: New file.
11347         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11348         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11349         (configure.ac): Remove gl_ICONV_H.
11350         (Makefile.am): Remove rule for iconv.h.
11351
11352 2010-03-06  Bruno Haible  <bruno@clisp.org>
11353
11354         More consistent naming of *.m4 files.
11355         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11356         * modules/wctype (Files): Update.
11357
11358         More consistent naming of *.m4 files.
11359         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11360         * modules/wchar (Files): Update.
11361
11362 2010-03-06  Jim Meyering  <meyering@redhat.com>
11363
11364         euidaccess: relax license to LGPLv2+
11365         * modules/euidaccess (License): Relax to LGPLv2+.
11366
11367 2010-03-06  Bruno Haible  <bruno@clisp.org>
11368
11369         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11370         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11371         (Makefile.am): Augment lib_SOURCES instead.
11372
11373 2010-03-04  Jim Meyering  <meyering@redhat.com>
11374
11375         utime: remove obsolete module
11376         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11377         unnecessary for years, and has been marked as obsolete for 10 months.
11378         * modules/utime: Remove file.
11379         * lib/utime.c: Remove file.
11380         * m4/utime.m4: Remove file.
11381         * m4/utimes-null.m4: Remove file.
11382         * doc/posix-functions/utime.texi (utime): Remove reference to
11383         the module.  Move the sole "fixed by gnulib" item into the
11384         "problems not fixed by Gnulib" list.
11385         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11386
11387 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11388
11389         * modules/exit (License): Relax license to LGPLv2+.
11390         (Status): Mark as obsolete.
11391         * NEWS: Mention deprecated 'exit' module.
11392         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11393         of now obsolete 'exit'.
11394
11395 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11396
11397         fts-lgpl: remove unused module
11398         * modules/fts-lgpl: Remove.
11399         * MODULES.html.sh (func_all_modules): Adjust.
11400         * check-module (find_included_lib_files): Adjust.
11401         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11402
11403 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11404
11405         copy-acl: enhance Solaris ACL error handling
11406         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11407         * lib/set-mode-acl.c (qset_acl): Likewise.
11408
11409 2010-03-02  Bruno Haible  <bruno@clisp.org>
11410
11411         spawn: Don't override the system defined values on FreeBSD 8.
11412         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11413         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11414         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11415         if HAVE_POSIX_SPAWN is 1.
11416         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11417
11418 2010-03-01  Bruno Haible  <bruno@clisp.org>
11419
11420         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11421         regarding Automake.
11422
11423 2010-02-25  Bruno Haible  <bruno@clisp.org>
11424
11425         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11426         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11427         setting, not afterwards.
11428         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11429
11430 2010-02-24  Eric Blake  <eblake@redhat.com>
11431
11432         bootstrap, git-version-gen: use timestamp
11433         * build-aux/git-version-gen (scriptversion): Force UTC.
11434         * build-aux/bootstrap (scriptversion): New variable.
11435
11436         bootstrap: allow older git
11437         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11438         older than 1.6.4.  Requested by the libvirt project.
11439
11440 2010-02-23  Eric Blake  <eblake@redhat.com>
11441
11442         warn-on-use: work with old autoconf
11443         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11444         AS_VAR semantics of autoconf 2.60.
11445         Reported by Bruno Haible.
11446
11447         bootstrap: improve some comments
11448         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11449         clarification comments.
11450
11451         gettimeofday: provide correct function
11452         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11453         when replacement is declared, otherwise provide gettimeofday.
11454         Reported by Michael Goffioul.
11455
11456 2010-02-23  Jim Meyering  <meyering@redhat.com>
11457
11458         lib-ignore: relax license to "unlimited", not LGPLv2+
11459         * modules/lib-ignore (License): Relax to "unlimited".
11460
11461 2010-02-23  Jim Meyering  <meyering@redhat.com>
11462
11463         lib-ignore: relax license to LGPLv2+
11464         * modules/lib-ignore (License): Relax to LGPLv2+.
11465
11466 2010-02-22  Eric Blake  <eblake@redhat.com>
11467
11468         lseek: avoid bash 3.2 broken pipe bug
11469         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11470         warning from bash 3.2.
11471         Reported by Ben Pfaff, with analysis from Bruno Haible.
11472
11473         bootstrap: support non-FSF copyright holder
11474         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11475         bootstrap.conf override of COPYRIGHT_HOLDER.
11476         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11477
11478         bootstrap: interoperate with gettext 0.14.1
11479         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11480
11481         bootstrap: allow for alternate submodule location
11482         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11483         hardcoding submodule location.
11484         (gnulib_mk): Allow direct use of Makefile.am.
11485
11486         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11487         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11488         rather than reconfiguring where the submodule points.
11489
11490         gettimeofday: restore support for platforms that lack function
11491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11492         replacement if function is missing.
11493         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11494         * modules/sys_time (Makefile.am): Substitute it.
11495         * lib/sys_time.in.h (gettimeofday): Check it.
11496         Reported by Michael Goffioul.
11497
11498 2010-02-21  Bruno Haible  <bruno@clisp.org>
11499
11500         * lib/stdio.in.h (obstack_printf): Fix typo.
11501
11502 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11503
11504         vc-list-files: use bzr ls's -R option
11505         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11506         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11507
11508 2010-02-21  Jim Meyering  <meyering@redhat.com>
11509
11510         init.sh: fix EXEEXT shims to work also for names like test-prog
11511         * tests/init.sh: Re-exec a better shell, when needed.
11512         If the current shell lacks support for posix $(...), an init.sh-using
11513         test will now try to find a shell that supports that.  If EXEEXT is
11514         nonempty, we also require support for hyphen-in-alias-name and shell
11515         substitutions like ${var#glob}.  Failure to find such a shell results
11516         in a skipped test.
11517
11518 2010-02-21  Bruno Haible  <bruno@clisp.org>
11519
11520         Really work around around "broken pipe" error message from bash 3.2.
11521         * gnulib-tool (func_reset_sigpipe): Remove function.
11522         (echo): In bash 3.2, define to a function that uses printf.
11523         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11524
11525 2010-02-20  Bruno Haible  <bruno@clisp.org>
11526
11527         Restore support for automake 1.9.6 with autoconf 2.61.
11528         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11529         Reported by James Youngman <jay@gnu.org>.
11530
11531 2010-02-20  Bruno Haible  <bruno@clisp.org>
11532
11533         Improve *printf warning condition.
11534         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11535         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11536         and the function is overridden due to SIGPIPE emulation.
11537
11538 2010-02-20  Bruno Haible  <bruno@clisp.org>
11539
11540         * lib/stdio.in.h: Tweak comments.
11541
11542 2010-02-19  Bruno Haible  <bruno@clisp.org>
11543
11544         Make it easier to find modules. New gnulib-tool option '--find'.
11545         * gnulib-tool: New option --find.
11546         (func_usage): Document it.
11547         (func_sanitize_modulelist): New function, extracted from
11548         func_all_modules.
11549         (func_all_modules): Invoke it.
11550         * doc/gnulib-tool.texi (Which modules?): New node.
11551
11552 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11553
11554         * lib/sys_select.in.h: Provide select replacement even if
11555         sys/select.h exists on a system, for Interix.
11556
11557 2010-02-18  Jim Meyering  <meyering@redhat.com>
11558
11559         init.sh: don't use $(...) just yet
11560         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11561         to accommodate e.g., Solaris' /bin/sh.
11562
11563 2010-02-17  Bruno Haible  <bruno@clisp.org>
11564
11565         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11566         Reported by Ludovic Courtès <ludo@gnu.org>.
11567
11568 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11569
11570         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11571         linking with -lintl.
11572
11573 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11574
11575         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11576         if not provided by the system's netdb.h.  Reported by
11577         ludo@gnu.org (Ludovic Courtès).
11578
11579 2010-02-15  Jim Meyering  <meyering@redhat.com>
11580
11581         init.sh: improve portability and efficiency
11582         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11583         "dummy" in a for loop.
11584         Use '!', not '^' to select the complement of a character set used
11585         in a "case" statement.
11586         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11587         Suggestions from Eric Blake.
11588
11589         init.sh: automatically accommodate programs with the .exe suffix
11590         Automatically arrange for an invocation of "prog" to execute the
11591         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11592         may use the simpler "prog", yet still work when built on a system
11593         that requires specifying the added suffix.
11594         Do this by constructing a function named "prog" that invokes
11595         "prog.exe" for each .exe file in selected directories.
11596         * tests/init.sh (find_exe_basenames_): New function.
11597         (create_exe_shim_functions_): New function.
11598         (path_prepend_): Use it.
11599
11600         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11601         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11602         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11603
11604 2010-02-14  Jim Meyering  <meyering@redhat.com>
11605
11606         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11607         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11608         (sc_prohibit_hash_pjw_without_use): New rule.
11609
11610         maint.mk: allow the default upload destination dir to be overridden
11611         * top/maint.mk (upload_dest_dir_): Define with a default that
11612         preserves the status quo.
11613         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11614         Reported by Peter Simons.
11615
11616         maint.mk: prohibit inclusion of "hash.h" without_use
11617         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11618
11619 2010-02-10  Jim Meyering  <meyering@redhat.com>
11620
11621         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11622         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11623
11624 2010-02-09  Eric Blake  <ebb9@byu.net>
11625         and Bruno Haible  <bruno@clisp.org>
11626
11627         obstack-printf-posix: ensure declaration
11628         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11629         extracted from gl_FUNC_OBSTACK_PRINTF.
11630         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11631         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11632         Likewise.
11633         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11634         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11635         0.
11636
11637 2010-02-08  Bruno Haible  <bruno@clisp.org>
11638
11639         gnulib-tool: Fix typo in 2010-02-07 commit.
11640         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11641         Reported by Eric Blake.
11642
11643 2010-02-07  Bruno Haible  <bruno@clisp.org>
11644
11645         gnulib-tool: Fix up caching patches.
11646         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11647         option --no-cache. Use associative arrays when supported by the shell.
11648         (sed_comments): New variable.
11649         (modcache): Renamed from do_cache.
11650         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11651         abbreviate unnecessarily.
11652         (have_associative): New variable.
11653         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11654         way also for ksh and zsh.
11655         (func_init_sed_convert_to_cache_statements): New function, extracted
11656         from func_cache_lookup_module. Add support for associative arrays.
11657         Don't set the c_MODULE_cached variable here. Ignore all lines before
11658         the first field header. Remove only the final newline, not all trailing
11659         newlines. Support empty fields correctly. Limit the use of 'eval' to
11660         assignments.
11661         (func_get_description, func_get_status, func_get_notice,
11662         func_get_applicability, func_get_filelist, func_get_dependencies,
11663         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11664         func_get_automake_snippet, func_get_include_directive,
11665         func_get_link_directive, func_get_license, func_get_maintainer):
11666         Update documentation. List the unoptimized code first. Add support for
11667         associative arrays. Limit the use of 'eval' to assignments.
11668         (func_get_applicability): Undo stylistic pessimisations.
11669         (func_get_automake_snippet, func_get_include_directive): Reduce code
11670         duplication.
11671         (func_modules_transitive_closure, func_modules_add_dummy,
11672         func_modules_notice, func_modules_to_filelist, func_add_file,
11673         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11674         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11675         func_create_testdir, func_create_megatestdir): Update documentation.
11676
11677 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11678
11679         * gnulib-tool (func_cache_lookup_module): Store the module name
11680         belonging to the cache variable; error out if two different
11681         module names map to the same cache variable name.
11682
11683 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11684
11685         gnulib-tool: Make caching optional.
11686         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11687         Update matching short versions of --no-changelog.
11688         (func_usage): Update.
11689         (sed_extract_cache_prog): Renamed from ...
11690         (sed_extract_prog): ... this; revert to old extraction script.
11691         (func_get_description, func_get_status)
11692         (func_get_notice, func_get_applicability, func_get_filelist)
11693         (func_get_dependencies, func_get_autoconf_early_snippet)
11694         (func_get_autoconf_snippet, func_get_automake_snippet)
11695         (func_get_include_directive, func_get_link_directive)
11696         (func_get_license, func_get_maintainer): If $do_cache is false,
11697         use old, non-caching extraction scripts.
11698         Suggestion by Bruno Haible.
11699
11700 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11701
11702         gnulib-tool: cache module metainformation.
11703         * gnulib-tool (sed_extract_prog): Match newline before each
11704         header, and rewrite header to a shell variable suffix.
11705         (func_cache_var, func_cache_lookup_module): New functions,
11706         to turn a module name into a cache variable prefix, and to
11707         look up and cache module metainformation.
11708         (func_get_description, func_get_status)
11709         (func_get_notice, func_get_applicability, func_get_filelist)
11710         (func_get_dependencies, func_get_autoconf_early_snippet)
11711         (func_get_autoconf_snippet, func_get_automake_snippet)
11712         (func_get_include_directive, func_get_link_directive)
11713         (func_get_license, func_get_maintainer): Use
11714         func_cache_lookup_module.
11715
11716 2010-02-07  Bruno Haible  <bruno@clisp.org>
11717
11718         fnctl: Fix missing dependency.
11719         * modules/fcntl (Depends-on): Add getdtablesize.
11720         Reported by John W. Eaton <jwe@gnu.org>.
11721
11722 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11723
11724         Argp: fix recognition of short alias options.
11725
11726         * lib/argp-parse.c (convert_options): Fix improper use of
11727         `|' between character values.
11728         * tests/test-argp.c (group1_option): New alias option
11729         --read (-r).
11730         (group1_parser): Special handling for 'r'.
11731         (test15): New test case.
11732         (test_fun): Add test15.
11733         * tests/test-argp-2.sh: Update expected --help and --usage
11734         outputs.
11735
11736 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11737
11738         * tests/test-argp.c: Fix indentation.
11739
11740 2010-02-04  Eric Blake  <ebb9@byu.net>
11741
11742         gettimeofday: expose type of second argument
11743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11744         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11745         * tests/test-gettimeofday.c: Use it to silence warning.
11746         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11747         the issue.
11748
11749 2010-02-03  Jim Meyering  <meyering@redhat.com>
11750
11751         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11752         * lib/regcomp.c (TYPE_SIGNED): Define.
11753         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11754
11755         regcomp.c: avoid a new -Wshadow warning
11756         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11757
11758 2010-02-01  Jim Meyering  <meyering@redhat.com>
11759
11760         removing useless parentheses in cpp #define directives
11761         For motivation, see commit c0221df4, "define STREQ(a,b)
11762         consistently, removing useless parentheses"
11763         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11764         * lib/mountlist.c (MNT_IGNORE): Likewise.
11765         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11766
11767 2010-02-01  Eric Blake  <ebb9@byu.net>
11768
11769         sys_time: use link-warning
11770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11771         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11772         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11773         * modules/sys_time (Depends-on): Add warn-on-use.
11774         (Makefile.am): Always build replacement.
11775         (configure.ac): Update substitutions.
11776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11777         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11778         bother with SYS_TIME_H.
11779         * modules/gettimeofday (configure.ac): Declare indicator.
11780         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11781         in use.
11782
11783         closein-tests: silence compiler warning
11784         * tests/test-closein.c (main): Ignore fread result.
11785         * modules/closein-tests (Depends-on): Add ignore-value.
11786
11787         tests: silence warning about system return
11788         * tests/test-areadlink-with-size.c (main): Ignore system result.
11789         * tests/test-areadlink.c (main): Likewise.
11790         * tests/test-areadlinkat-with-size.c (main): Likewise.
11791         * tests/test-areadlinkat.c (main): Likewise.
11792         * tests/test-canonicalize-lgpl.c (main): Likewise.
11793         * tests/test-canonicalize.c (main): Likewise.
11794         * tests/test-chown.c (main): Likewise.
11795         * tests/test-fchownat.c (main): Likewise.
11796         * tests/test-fdutimensat.c (main): Likewise.
11797         * tests/test-fstatat.c (main): Likewise.
11798         * tests/test-futimens.c (main): Likewise.
11799         * tests/test-lchown.c (main): Likewise.
11800         * tests/test-link.c (main): Likewise.
11801         * tests/test-linkat.c (main): Likewise.
11802         * tests/test-lstat.c (main): Likewise.
11803         * tests/test-mkdir.c (main): Likewise.
11804         * tests/test-mkdirat.c (main): Likewise.
11805         * tests/test-mkfifo.c (main): Likewise.
11806         * tests/test-mkfifoat.c (main): Likewise.
11807         * tests/test-mknod.c (main): Likewise.
11808         * tests/test-readlink.c (main): Likewise.
11809         * tests/test-remove.c (main): Likewise.
11810         * tests/test-rename.c (main): Likewise.
11811         * tests/test-renameat.c (main): Likewise.
11812         * tests/test-rmdir.c (main): Likewise.
11813         * tests/test-symlink.c (main): Likewise.
11814         * tests/test-symlinkat.c (main): Likewise.
11815         * tests/test-unlink.c (main): Likewise.
11816         * tests/test-unlinkat.c (main): Likewise.
11817         * tests/test-utimens.c (main): Likewise.
11818         * tests/test-utimensat.c (main): Likewise.
11819         * modules/areadlink-tests (Depends-on): Add ignore-value.
11820         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11821         * modules/areadlinkat-tests (Depends-on): Likewise.
11822         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11823         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11824         * modules/canonicalize-tests (Depends-on): Likewise.
11825         * modules/chown-tests (Depends-on): Likewise.
11826         * modules/fdutimensat-tests (Depends-on): Likewise.
11827         * modules/futimens-tests (Depends-on): Likewise.
11828         * modules/lchown-tests (Depends-on): Likewise.
11829         * modules/link-tests (Depends-on): Likewise.
11830         * modules/linkat-tests (Depends-on): Likewise.
11831         * modules/lstat-tests (Depends-on): Likewise.
11832         * modules/mkdir-tests (Depends-on): Likewise.
11833         * modules/mkfifo-tests (Depends-on): Likewise.
11834         * modules/mkfifoat-tests (Depends-on): Likewise.
11835         * modules/mknod-tests (Depends-on): Likewise.
11836         * modules/openat-tests (Depends-on): Likewise.
11837         * modules/readlink-tests (Depends-on): Likewise.
11838         * modules/remove-tests (Depends-on): Likewise.
11839         * modules/rename-tests (Depends-on): Likewise.
11840         * modules/renameat-tests (Depends-on): Likewise.
11841         * modules/rmdir-tests (Depends-on): Likewise.
11842         * modules/symlink-tests (Depends-on): Likewise.
11843         * modules/symlinkat-tests (Depends-on): Likewise.
11844         * modules/unlink-tests (Depends-on): Likewise.
11845         * modules/utimens-tests (Depends-on): Likewise.
11846         * modules/utimensat-tests (Depends-on): Likewise.
11847
11848 2010-01-31  Bruno Haible  <bruno@clisp.org>
11849
11850         Perform the same test for many <math.h> functions.
11851         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11852         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11853         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11854         of gl_MATHFUNC.
11855         * modules/acos (configure.ac): Likewise.
11856         * modules/asin (configure.ac): Likewise.
11857         * modules/atan (configure.ac): Likewise.
11858         * modules/atan2 (configure.ac): Likewise.
11859         * modules/cbrt (configure.ac): Likewise.
11860         * modules/copysign (configure.ac): Likewise.
11861         * modules/cos (configure.ac): Likewise.
11862         * modules/cosh (configure.ac): Likewise.
11863         * modules/erf (configure.ac): Likewise.
11864         * modules/erfc (configure.ac): Likewise.
11865         * modules/exp (configure.ac): Likewise.
11866         * modules/fmod (configure.ac): Likewise.
11867         * modules/hypot (configure.ac): Likewise.
11868         * modules/j0 (configure.ac): Likewise.
11869         * modules/j1 (configure.ac): Likewise.
11870         * modules/jn (configure.ac): Likewise.
11871         * modules/lgamma (configure.ac): Likewise.
11872         * modules/log (configure.ac): Likewise.
11873         * modules/log10 (configure.ac): Likewise.
11874         * modules/log1p (configure.ac): Likewise.
11875         * modules/pow (configure.ac): Likewise.
11876         * modules/remainder (configure.ac): Likewise.
11877         * modules/sin (configure.ac): Likewise.
11878         * modules/sinh (configure.ac): Likewise.
11879         * modules/tan (configure.ac): Likewise.
11880         * modules/tanh (configure.ac): Likewise.
11881         * modules/y0 (configure.ac): Likewise.
11882         * modules/y1 (configure.ac): Likewise.
11883         * modules/yn (configure.ac): Likewise.
11884         Suggested by Paolo Bonzini.
11885
11886 2010-01-31  Bruno Haible  <bruno@clisp.org>
11887
11888         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11889
11890 2010-01-31  Bruno Haible  <bruno@clisp.org>
11891
11892         Work around getdelim() bug on FreeBSD 8.0.
11893         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11894         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11895         not work.
11896         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11897         is 1.
11898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11899         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11900         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11901         a non-zero size.
11902         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11903
11904 2010-01-31  Bruno Haible  <bruno@clisp.org>
11905
11906         Work around getline() bug on FreeBSD 8.0.
11907         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11908         and a non-zero size.
11909         * tests/test-getline.c (main): Likewise.
11910         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11911         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11912
11913 2010-01-28  Eric Blake  <ebb9@byu.net>
11914
11915         regex: fix build failure
11916         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11917         platforms.
11918
11919 2010-01-28  Jim Meyering  <meyering@redhat.com>
11920
11921         regex: do not ignore memory allocation failure
11922         * lib/regex_internal.c (create_cd_newstate): Detect
11923         re_node_set_init_copy failure.   Extracted from glibc commit
11924         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11925
11926         regex: sync more white-space changes from libc
11927         * lib/regex_internal.c: White-space only changes.
11928         * lib/regexec.c: Likewise.
11929
11930         regex: add many uses of __attribute_warn_unused_result__
11931         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11932         * lib/regexec.c: Likewise.
11933         Extracted from a messy glibc commit.
11934
11935         regcomp.c: spelling and merge-artifact from glibc
11936         * lib/regcomp.c: Merge remainder of glibc's
11937         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11938
11939         regcomp.c: sync white-space changes from glibc
11940         * lib/regcomp.c: Merge to accommodate white space
11941         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11942
11943         regcomp.c: do not ignore internal return values
11944         * lib/regcomp.c: Do not ignore internal return values.
11945         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11946         but without its white-space changes and spelling fixes.
11947
11948         regex_internal.h: define __attribute_warn_unused_result__
11949         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11950
11951         maint: add a syntax-check rule to check for vulnerable Makefile.in
11952         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11953
11954 2010-01-27  Jim Meyering  <meyering@redhat.com>
11955
11956         ncftpput-ftp: clean up spaces
11957         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11958         Remove trailing blanks.
11959
11960 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11961
11962         * build-aux/git-version-gen: Fix copyright statement.
11963         * build-aux/gnupload: Likewise.
11964         * tests/test-arcfour.c: Likewise.
11965         * tests/test-arctwo.c: Likewise.
11966         * tests/test-count-one-bits.c: Likewise.
11967         * tests/test-crc.c: Likewise.
11968         * tests/test-des.c: Likewise.
11969         * tests/test-gc-arcfour.c: Likewise.
11970         * tests/test-gc-arctwo.c: Likewise.
11971         * tests/test-gc-des.c: Likewise.
11972         * tests/test-gc-hmac-md5.c: Likewise.
11973         * tests/test-gc-hmac-sha1.c: Likewise.
11974         * tests/test-gc-md2.c: Likewise.
11975         * tests/test-gc-md4.c: Likewise.
11976         * tests/test-gc-md5.c: Likewise.
11977         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11978         * tests/test-gc-rijndael.c: Likewise.
11979         * tests/test-gc-sha1.c: Likewise.
11980         * tests/test-gc.c: Likewise.
11981         * tests/test-gethostname.c: Likewise.
11982         * tests/test-gettimeofday.c: Likewise.
11983         * tests/test-hash.c: Likewise.
11984         * tests/test-hmac-md5.c: Likewise.
11985         * tests/test-hmac-sha1.c: Likewise.
11986         * tests/test-md2.c: Likewise.
11987         * tests/test-md4.c: Likewise.
11988         * tests/test-md5.c: Likewise.
11989         * tests/test-memchr.c: Likewise.
11990         * tests/test-memchr2.c: Likewise.
11991         * tests/test-memcmp.c: Likewise.
11992         * tests/test-memmem.c: Likewise.
11993         * tests/test-memrchr.c: Likewise.
11994         * tests/test-rawmemchr.c: Likewise.
11995         * tests/test-read-file.c: Likewise.
11996         * tests/test-rijndael.c: Likewise.
11997         * tests/test-sockets.c: Likewise.
11998         * tests/test-strchrnul.c: Likewise.
11999         * tests/test-strstr.c: Likewise.
12000         * tests/test-strtod.c: Likewise.
12001         * build-aux/ncftpput-ftp: Likewise.
12002
12003 2010-01-26  Eric Blake  <ebb9@byu.net>
12004
12005         ignore-value: update recommended header name
12006         * modules/ignore-value (Include): Only use <> for headers that
12007         exist in glibc.
12008
12009 2010-01-26  Jim Meyering  <meyering@redhat.com>
12010
12011         test-userspec.c: avoid compiler warnings
12012         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12013         and "initialization discards qualifiers..." warnings.
12014         Put the first "uid" in its own scope, and make char* members "const".
12015
12016 2010-01-25  Bruno Haible  <bruno@clisp.org>
12017
12018         gnulib-tool: Make warning diagnostics consistent.
12019         * gnulib-tool (func_warning): New function.
12020         Use it everywhere where gnulib-tool produces output to stderr and it is
12021         not a fatal error.
12022
12023 2010-01-25  Bruno Haible  <bruno@clisp.org>
12024
12025         Fix test dependencies.
12026         * modules/xstrtol-tests (Depends-on): Add inttypes.
12027         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12028
12029 2010-01-25 Pádraig Brady <P@draigBrady.com>
12030
12031         syntax-check: detect incorrect boolean macro values in config.h
12032         * modules/maintainer-makefile (configure.ac): Parameterize the location
12033         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12034         The logic is from Eric Blake and the location indicated by Jim Meyering.
12035         Note the more natural CONFIG_HEADER name is prohibited by automake
12036         for backwards compatibility reasons.
12037         * top/maint.mk (sc_Wundef_boolean): New rule.
12038
12039 2010-01-25  Jim Meyering  <meyering@redhat.com>
12040
12041         bootstrap: detect MacOS 10.6's shasum, too
12042         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12043         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12044
12045 2010-01-23  Jim Meyering  <meyering@redhat.com>
12046
12047         xstrtoll: new module
12048         * modules/xstrtoll: New file.
12049         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12050         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12051         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12052         ./configure fails if you use this module and lack "long long".
12053         * modules/xstrtoll-tests: New module.
12054         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12055         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12056         new init.sh-based test framework.
12057
12058 2010-01-24  Bruno Haible  <bruno@clisp.org>
12059
12060         Tests for module 'yn'.
12061         * modules/yn-tests: New file.
12062         * tests/test-yn.c: New file.
12063
12064         Tests for module 'y1'.
12065         * modules/y1-tests: New file.
12066         * tests/test-y1.c: New file.
12067
12068         Tests for module 'y0'.
12069         * modules/y0-tests: New file.
12070         * tests/test-y0.c: New file.
12071
12072         Tests for module 'tanh'.
12073         * modules/tanh-tests: New file.
12074         * tests/test-tanh.c: New file.
12075
12076         Tests for module 'tan'.
12077         * modules/tan-tests: New file.
12078         * tests/test-tan.c: New file.
12079
12080         Tests for module 'sqrt'.
12081         * modules/sqrt-tests: New file.
12082         * tests/test-sqrt.c: New file.
12083
12084         Tests for module 'sinh'.
12085         * modules/sinh-tests: New file.
12086         * tests/test-sinh.c: New file.
12087
12088         Tests for module 'sin'.
12089         * modules/sin-tests: New file.
12090         * tests/test-sin.c: New file.
12091
12092         Tests for module 'rint'.
12093         * modules/rint-tests: New file.
12094         * tests/test-rint.c: New file.
12095
12096         Tests for module 'remainder'.
12097         * modules/remainder-tests: New file.
12098         * tests/test-remainder.c: New file.
12099
12100         Tests for module 'pow'.
12101         * modules/pow-tests: New file.
12102         * tests/test-pow.c: New file.
12103
12104         Tests for module 'nextafter'.
12105         * modules/nextafter-tests: New file.
12106         * tests/test-nextafter.c: New file.
12107
12108         Tests for module 'modf'.
12109         * modules/modf-tests: New file.
12110         * tests/test-modf.c: New file.
12111
12112         Tests for module 'logb'.
12113         * modules/logb-tests: New file.
12114         * tests/test-logb.c: New file.
12115
12116         Tests for module 'log1p'.
12117         * modules/log1p-tests: New file.
12118         * tests/test-log1p.c: New file.
12119
12120         Tests for module 'log10'.
12121         * modules/log10-tests: New file.
12122         * tests/test-log10.c: New file.
12123
12124         Tests for module 'log'.
12125         * modules/log-tests: New file.
12126         * tests/test-log.c: New file.
12127
12128         Tests for module 'lgamma'.
12129         * modules/lgamma-tests: New file.
12130         * tests/test-lgamma.c: New file.
12131
12132         Tests for module 'ldexp'.
12133         * modules/ldexp-tests: New file.
12134         * tests/test-ldexp.c: New file.
12135
12136         Tests for module 'jn'.
12137         * modules/jn-tests: New file.
12138         * tests/test-jn.c: New file.
12139
12140         Tests for module 'j1'.
12141         * modules/j1-tests: New file.
12142         * tests/test-j1.c: New file.
12143
12144         Tests for module 'j0'.
12145         * modules/j0-tests: New file.
12146         * tests/test-j0.c: New file.
12147
12148         Tests for module 'hypot'.
12149         * modules/hypot-tests: New file.
12150         * tests/test-hypot.c: New file.
12151
12152         Tests for module 'fmod'.
12153         * modules/fmod-tests: New file.
12154         * tests/test-fmod.c: New file.
12155
12156         Tests for module 'fabs'.
12157         * modules/fabs-tests: New file.
12158         * tests/test-fabs.c: New file.
12159
12160         Tests for module 'exp'.
12161         * modules/exp-tests: New file.
12162         * tests/test-exp.c: New file.
12163
12164         Tests for module 'erfc'.
12165         * modules/erfc-tests: New file.
12166         * tests/test-erfc.c: New file.
12167
12168         Tests for module 'erf'.
12169         * modules/erf-tests: New file.
12170         * tests/test-erf.c: New file.
12171
12172         Tests for module 'cosh'.
12173         * modules/cosh-tests: New file.
12174         * tests/test-cosh.c: New file.
12175
12176         Tests for module 'cos'.
12177         * modules/cos-tests: New file.
12178         * tests/test-cos.c: New file.
12179
12180         Tests for module 'copysign'.
12181         * modules/copysign-tests: New file.
12182         * tests/test-copysign.c: New file.
12183
12184         Tests for module 'cbrt'.
12185         * modules/cbrt-tests: New file.
12186         * tests/test-cbrt.c: New file.
12187
12188         Tests for module 'atan2'.
12189         * modules/atan2-tests: New file.
12190         * tests/test-atan2.c: New file.
12191
12192         Tests for module 'atan'.
12193         * modules/atan-tests: New file.
12194         * tests/test-atan.c: New file.
12195
12196         Tests for module 'asin'.
12197         * modules/asin-tests: New file.
12198         * tests/test-asin.c: New file.
12199
12200         Tests for module 'acos'.
12201         * modules/acos-tests: New file.
12202         * tests/test-acos.c: New file.
12203
12204 2010-01-24  Bruno Haible  <bruno@clisp.org>
12205
12206         Fix tests for common <math.h> functions.
12207         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12208         code snippet that references the function pointer, rather than merely
12209         calling the function. Substitute the FUNC_LIBM variable.
12210         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12211         * modules/acos (configure.ac): Likewise.
12212         * modules/asin (configure.ac): Likewise.
12213         * modules/atan (configure.ac): Likewise.
12214         * modules/atan2 (configure.ac): Likewise.
12215         * modules/cbrt (configure.ac): Likewise.
12216         * modules/copysign (configure.ac): Likewise.
12217         * modules/cos (configure.ac): Likewise.
12218         * modules/cosh (configure.ac): Likewise.
12219         * modules/erf (configure.ac): Likewise.
12220         * modules/erfc (configure.ac): Likewise.
12221         * modules/exp (configure.ac): Likewise.
12222         * modules/fabs (configure.ac): Likewise.
12223         * modules/fmod (configure.ac): Likewise.
12224         * modules/hypot (configure.ac): Likewise.
12225         * modules/j0 (configure.ac): Likewise.
12226         * modules/j1 (configure.ac): Likewise.
12227         * modules/jn (configure.ac): Likewise.
12228         * modules/ldexp (configure.ac): Likewise.
12229         * modules/lgamma (configure.ac): Likewise.
12230         * modules/log (configure.ac): Likewise.
12231         * modules/log10 (configure.ac): Likewise.
12232         * modules/log1p (configure.ac): Likewise.
12233         * modules/logb (configure.ac): Likewise.
12234         * modules/modf (configure.ac): Likewise.
12235         * modules/nextafter (configure.ac): Likewise.
12236         * modules/pow (configure.ac): Likewise.
12237         * modules/remainder (configure.ac): Likewise.
12238         * modules/rint (configure.ac): Likewise.
12239         * modules/sin (configure.ac): Likewise.
12240         * modules/sinh (configure.ac): Likewise.
12241         * modules/tan (configure.ac): Likewise.
12242         * modules/tanh (configure.ac): Likewise.
12243         * modules/y0 (configure.ac): Likewise.
12244         * modules/y1 (configure.ac): Likewise.
12245         * modules/yn (configure.ac): Likewise.
12246
12247 2010-01-24  Bruno Haible  <bruno@clisp.org>
12248
12249         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12250         * tests/test-acosl.c (x): New variable.
12251         (main): Store argument in x and fetch it from x.
12252         * tests/test-asinl.c (x): New variable.
12253         (main): Store argument in x and fetch it from x.
12254         * tests/test-atanl.c (x): New variable.
12255         (main): Store argument in x and fetch it from x.
12256         * tests/test-cosl.c (x): New variable.
12257         (main): Store argument in x and fetch it from x.
12258         * tests/test-expl.c (x): New variable.
12259         (main): Store argument in x and fetch it from x.
12260         * tests/test-logl.c (x): New variable.
12261         (main): Store argument in x and fetch it from x.
12262         * tests/test-sinl.c (x): New variable.
12263         (main): Store argument in x and fetch it from x.
12264         * tests/test-sqrtl.c (x): New variable.
12265         (main): Store argument in x and fetch it from x.
12266         * tests/test-tanl.c (x): New variable.
12267         (main): Store argument in x and fetch it from x.
12268
12269 2010-01-24  Bruno Haible  <bruno@clisp.org>
12270
12271         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12272         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12273         assignments to the initial TESTS_ENVIRONMENT.
12274         * doc/gnulib.texi (Unit test modules): Document it.
12275         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12276         TESTS_ENVIRONMENT.
12277         * modules/btowc-tests (Makefile.am): Likewise.
12278         * modules/c-stack-tests (Makefile.am): Likewise.
12279         * modules/c-strcase-tests (Makefile.am): Likewise.
12280         * modules/copy-file-tests (Makefile.am): Likewise.
12281         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12282         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12283         * modules/mbrtowc-tests (Makefile.am): Likewise.
12284         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12285         * modules/mbscasestr-tests (Makefile.am): Likewise.
12286         * modules/mbschr-tests (Makefile.am): Likewise.
12287         * modules/mbscspn-tests (Makefile.am): Likewise.
12288         * modules/mbsinit-tests (Makefile.am): Likewise.
12289         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12290         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12291         * modules/mbspbrk-tests (Makefile.am): Likewise.
12292         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12293         * modules/mbsrchr-tests (Makefile.am): Likewise.
12294         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12295         * modules/mbsspn-tests (Makefile.am): Likewise.
12296         * modules/mbsstr-tests (Makefile.am): Likewise.
12297         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12298         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12299         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12300         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12301         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12302         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12303         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12304         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12305         * modules/wcrtomb-tests (Makefile.am): Likewise.
12306         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12307         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12308         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12309         assignments from TESTS_ENVIRONMENT.
12310         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12311         augmentation.
12312         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12313         * modules/atexit-tests (Makefile.am): Likewise.
12314         * modules/binary-io-tests (Makefile.am): Likewise.
12315         * modules/closein-tests (Makefile.am): Likewise.
12316         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12317         * modules/exclude-tests (Makefile.am): Likewise.
12318         * modules/fflush-tests (Makefile.am): Likewise.
12319         * modules/fpending-tests (Makefile.am): Likewise.
12320         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12321         * modules/freadahead-tests (Makefile.am): Likewise.
12322         * modules/freadptr-tests (Makefile.am): Likewise.
12323         * modules/freadseek-tests (Makefile.am): Likewise.
12324         * modules/fseek-tests (Makefile.am): Likewise.
12325         * modules/fseeko-tests (Makefile.am): Likewise.
12326         * modules/ftell-tests (Makefile.am): Likewise.
12327         * modules/ftello-tests (Makefile.am): Likewise.
12328         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12329         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12330         * modules/lseek-tests (Makefile.am): Likewise.
12331         * modules/parse-duration-tests (Makefile.am): Likewise.
12332         * modules/perror-tests (Makefile.am): Likewise.
12333         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12334         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12335         * modules/pipe-tests (Makefile.am): Likewise.
12336         * modules/pread-tests (Makefile.am): Likewise.
12337         * modules/printf-posix-tests (Makefile.am): Likewise.
12338         * modules/select-tests (Makefile.am): Likewise.
12339         * modules/sigpipe-tests (Makefile.am): Likewise.
12340         * modules/tsearch-tests (Makefile.am): Likewise.
12341         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12342         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12343         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12344         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12345         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12346         * modules/version-etc-tests (Makefile.am): Likewise.
12347         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12348         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12349         * modules/xalloc-die-tests (Makefile.am): Likewise.
12350         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12351         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12352         * modules/xstrtol-tests (Makefile.am): Likewise.
12353         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12354         * modules/yesno-tests (Makefile.am): Likewise.
12355         Suggested by Jim Meyering.
12356
12357 2010-01-24  Bruno Haible  <bruno@clisp.org>
12358
12359         More documentation.
12360         * doc/gnulib.texi (Writing modules): New chapter.
12361         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12362         the new chapter.
12363
12364 2010-01-24  Jim Meyering  <meyering@redhat.com>
12365
12366         maint.mk: do not prepend "./" after filtering
12367         * top/maint.mk (_prepend_srcdir_prefix): New variable
12368         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12369         "./" when $(srcdir) is ".".
12370
12371         define STREQ(a,b) consistently, removing useless parentheses
12372         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12373         since the only risk is that "a" or "b" contains an unparenthesized
12374         comma, but if either did that, STREQ would have 3 or more arguments.
12375         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12376         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12377         * lib/hash-triple.c (STREQ): Likewise.
12378         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12379         * lib/getugroups.c (STREQ): Likewise.
12380
12381 2010-01-23  Jim Meyering  <meyering@redhat.com>
12382
12383         maint.mk: fix syntax-check in a non-srcdir build directory
12384         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12385         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12386
12387 2010-01-22  Jim Meyering  <meyering@redhat.com>
12388
12389         userspec: add unit tests
12390         * tests/test-userspec.c: New file.
12391         * modules/userspec-tests: Likewise.
12392
12393 2010-01-21  Jim Meyering  <meyering@redhat.com>
12394
12395         maint.mk: handle source file names containing "." robustly
12396         * top/maint.mk (_dot_escaped_srcdir): Define.
12397         (VC_LIST): Use it in LHS of sed substitution.
12398
12399 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12400
12401         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12402         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12403         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12404         from a non-srcdir build.
12405
12406 2010-01-20  Eric Blake  <ebb9@byu.net>
12407
12408         warn-on-use: use instead of link-warning
12409         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12410         * modules/unistd (Depends-on, Makefile.am): Likewise.
12411         * modules/arpa_inet (Depends-on): Replace link-warning with
12412         warn-on-use.
12413         (Makefile.am): Update rules accordingly.
12414         * modules/ctype (Depends-on, Makefile.am): Likewise.
12415         * modules/dirent (Depends-on, Makefile.am): Likewise.
12416         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12417         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12418         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12419         * modules/locale (Depends-on, Makefile.am): Likewise.
12420         * modules/math (Depends-on, Makefile.am): Likewise.
12421         * modules/search (Depends-on, Makefile.am): Likewise.
12422         * modules/signal (Depends-on, Makefile.am): Likewise.
12423         * modules/spawn (Depends-on, Makefile.am): Likewise.
12424         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12425         * modules/string (Depends-on, Makefile.am): Likewise.
12426         * modules/strings (Depends-on, Makefile.am): Likewise.
12427         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12428         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12429         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12430         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12431         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12432         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12433         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12434         * modules/wchar (Depends-on, Makefile.am): Likewise.
12435         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12436         should be poisoned.
12437         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12438         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12439         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12440         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12441         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12442         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12443         * m4/math_h.m4 (gl_MATH_H): Likewise.
12444         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12445         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12446         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12447         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12448         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12449         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12450         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12451         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12452         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12454         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12455         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12456         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12457         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12458         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12459         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12460         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12461         GL_LINK_WARNING.
12462         * lib/ctype.in.h: Likewise.
12463         * lib/dirent.in.h: Likewise.
12464         * lib/fcntl.in.h: Likewise.
12465         * lib/inttypes.in.h: Likewise.
12466         * lib/langinfo.in.h: Likewise.
12467         * lib/locale.in.h: Likewise.
12468         * lib/math.in.h: Likewise.
12469         * lib/search.in.h: Likewise.
12470         * lib/signal.in.h: Likewise.
12471         * lib/spawn.in.h: Likewise.
12472         * lib/stdio.in.h: Likewise.
12473         * lib/stdlib.in.h: Likewise.
12474         * lib/string.in.h: Likewise.
12475         * lib/strings.in.h: Likewise.
12476         * lib/sys_file.in.h: Likewise.
12477         * lib/sys_ioctl.in.h: Likewise.
12478         * lib/sys_select.in.h: Likewise.
12479         * lib/sys_socket.in.h: Likewise.
12480         * lib/sys_stat.in.h: Likewise.
12481         * lib/sys_times.in.h: Likewise.
12482         * lib/sys_utsname.in.h: Likewise.
12483         * lib/unistd.in.h: Likewise.
12484         * lib/wchar.in.h: Likewise.
12485
12486 2010-01-20  Bruno Haible  <bruno@clisp.org>
12487
12488         Avoid duplicate -lm.
12489         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12490         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12491         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12493         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12494         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12495         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12496         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12497         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12498         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12499         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12500         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12501         Reported by Paolo Bonzini.
12502
12503 2010-01-19  Bruno Haible  <bruno@clisp.org>
12504
12505         langinfo, nl_langinfo: Relicense under LGPLv2+.
12506         * modules/langinfo (License): Change to LGPLv2+.
12507         * modules/nl_langinfo (License): Likewise.
12508         Patch by David Lutterkort <lutter@redhat.com>.
12509
12510 2010-01-19  Bruno Haible  <bruno@clisp.org>
12511
12512         Avoid compilation error with cc on OSF/1 5.1.
12513         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12514         statement, not before.
12515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12516
12517 2010-01-18  Bruno Haible  <bruno@clisp.org>
12518
12519         Avoid a link error due to the __printf__ symbol.
12520         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12521         and 2.6.x.
12522         (__format__, __printf__): Remove definitions.
12523         * lib/argp-fmtstream.h: Likewise.
12524         * lib/argp.h: Likewise.
12525         * lib/error.h: Likewise.
12526         * lib/vasnprintf.h: Likewise.
12527         * lib/xprintf.h: Likewise.
12528         * lib/xvasprintf.h: Likewise.
12529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12530
12531 2010-01-18  Bruno Haible  <bruno@clisp.org>
12532
12533         Tests for module 'tanl'.
12534         * modules/tanl-tests: New file.
12535         * tests/test-tanl.c: New file.
12536
12537         Tests for module 'sqrtl'.
12538         * modules/sqrtl-tests: New file.
12539         * tests/test-sqrtl.c: New file.
12540
12541         Tests for module 'sinl'.
12542         * modules/sinl-tests: New file.
12543         * tests/test-sinl.c: New file.
12544
12545         Tests for module 'logl'.
12546         * modules/logl-tests: New file.
12547         * tests/test-logl.c: New file.
12548
12549         Tests for module 'expl'.
12550         * modules/expl-tests: New file.
12551         * tests/test-expl.c: New file.
12552
12553         Tests for module 'cosl'.
12554         * modules/cosl-tests: New file.
12555         * tests/test-cosl.c: New file.
12556
12557         Tests for module 'atanl'.
12558         * modules/atanl-tests: New file.
12559         * tests/test-atanl.c: New file.
12560
12561         Tests for module 'asinl'.
12562         * modules/asinl-tests: New file.
12563         * tests/test-asinl.c: New file.
12564
12565         Tests for module 'acosl'.
12566         * modules/acosl-tests: New file.
12567         * tests/test-acosl.c: New file.
12568
12569         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12570         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12571         tanl): Use the standard gnulib idiom.
12572         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12573         * lib/sinl.c: Likewise.
12574         * lib/tanl.c: Don't include trigl.c.
12575         (kernel_tanl): Make static.
12576         * lib/sincosl.c: Include trigl.h first.
12577         * lib/trigl.c: Likewise.
12578         * m4/acosl.m4: New file.
12579         * m4/asinl.m4: New file.
12580         * m4/atanl.m4: New file.
12581         * m4/cosl.m4: New file.
12582         * m4/expl.m4: New file.
12583         * m4/logl.m4: New file.
12584         * m4/sinl.m4: New file.
12585         * m4/sqrtl.m4: New file.
12586         * m4/tanl.m4: New file.
12587         * m4/mathl.m4: Remove file.
12588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12589         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12590         Don't initialize GNULIB_MATHL.
12591         * modules/acosl: New file.
12592         * modules/asinl: New file.
12593         * modules/atanl: New file.
12594         * modules/cosl: New file.
12595         * modules/expl: New file.
12596         * modules/logl: New file.
12597         * modules/sinl: New file.
12598         * modules/sqrtl: New file.
12599         * modules/tanl: New file.
12600         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12601         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12602         substitute GNULIB_MATHL.
12603         * modules/mathl: Rewritten.
12604         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12605         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12606         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12607         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12608         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12609         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12610         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12611         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12612         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12613
12614 2010-01-18  Bruno Haible  <bruno@clisp.org>
12615
12616         sqrt: Make gl_FUNC_SQRT requirable.
12617         * m4/sqrt.m4: New file.
12618         * modules/sqrt (Files): Add it.
12619         (configure.ac): Invoke gl_FUNC_SQRT.
12620
12621 2010-01-18  Bruno Haible  <bruno@clisp.org>
12622
12623         New modules for common <math.h> functions.
12624         * m4/mathfunc.m4: New file.
12625         * modules/acos: New file.
12626         * modules/asin: New file.
12627         * modules/atan: New file.
12628         * modules/atan2: New file.
12629         * modules/cbrt: New file.
12630         * modules/copysign: New file.
12631         * modules/cos: New file.
12632         * modules/cosh: New file.
12633         * modules/erf: New file.
12634         * modules/erfc: New file.
12635         * modules/exp: New file.
12636         * modules/fabs: New file.
12637         * modules/fmod: New file.
12638         * modules/hypot: New file.
12639         * modules/j0: New file.
12640         * modules/j1: New file.
12641         * modules/jn: New file.
12642         * modules/ldexp: New file.
12643         * modules/lgamma: New file.
12644         * modules/log: New file.
12645         * modules/log10: New file.
12646         * modules/log1p: New file.
12647         * modules/logb: New file.
12648         * modules/modf: New file.
12649         * modules/nextafter: New file.
12650         * modules/pow: New file.
12651         * modules/remainder: New file.
12652         * modules/rint: New file.
12653         * modules/sin: New file.
12654         * modules/sinh: New file.
12655         * modules/sqrt: New file.
12656         * modules/tan: New file.
12657         * modules/tanh: New file.
12658         * modules/y0: New file.
12659         * modules/y1: New file.
12660         * modules/yn: New file.
12661         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12662         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12663         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12664         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12665         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12666         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12667         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12668         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12669         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12670         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12671         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12672         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12673         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12674         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12675         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12676         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12677         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12678         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12679         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12680         * doc/posix-functions/log.texi: Mention the 'log' module.
12681         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12682         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12683         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12684         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12685         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12686         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12687         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12688         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12689         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12690         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12691         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12692         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12693         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12694         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12695         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12696         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12697
12698 2010-01-18  Jim Meyering  <meyering@redhat.com>
12699
12700         ignore-value: relax license to LGPLv2+
12701         * modules/ignore-value (License): Relax to LGPLv2+.
12702
12703         getdate: don't leak when TZ contains two or more '"'s
12704         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12705         double quote in TZ after the first one.
12706
12707         readtokens: do not leak internal token_lengths buffer
12708         * lib/readtokens.c (readtokens): Free the local, lengths,
12709         when the supplied "token_lengths" parameter is NULL.
12710
12711 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12712
12713         Fix a couple of missing LIBTHREAD link failures on AIX.
12714         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12715         $(LIBTHREAD).
12716         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12717
12718         Link test-poll against INET_PTON_LIB.
12719         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12720         for inet_pton on Solaris 10.
12721
12722 2010-01-17  Bruno Haible  <bruno@clisp.org>
12723
12724         unistdio/*-sprintf: Fix typo in module description.
12725         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12726         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12727         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12728         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12729         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12730         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12731         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12733
12734 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12735
12736         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12737         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12738         variables in shell case patterns, for AIX and HP-UX ksh.
12739
12740         Split large sed scripts, for HP-UX sed.
12741         * modules/stdio: Split sed scripts around 50 sed commands,
12742         to avoid HP-UX limit of 99 commands, in the near future.
12743         * modules/string: Likewise.
12744         * modules/unistd: Likewise.
12745
12746         gnulib-tool: avoid writing in the current directory.
12747         * gnulib-tool (func_emit_lib_Makefile_am)
12748         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12749         not in the current directory, so concurrent gnulib-tool
12750         instances do not interfere.
12751
12752 2010-01-16  Jim Meyering  <meyering@redhat.com>
12753
12754         doc: update users.txt
12755         * users.txt: Add grep.
12756         (diffutils, gzip): Update URLs.
12757
12758 2010-01-12  Bruno Haible  <bruno@clisp.org>
12759
12760         posix_spawn: Avoid test failure on Cygwin.
12761         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12762         characters.
12763         Reported by Simon Josefsson.
12764
12765 2010-01-12  Bruno Haible  <bruno@clisp.org>
12766
12767         * tests/test-cond.c (main): When skipping the test, show the reason.
12768
12769 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12770
12771         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12772
12773 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12774
12775         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12776         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12777
12778 2010-01-12  Eric Blake  <ebb9@byu.net>
12779
12780         build: guarantee AS_VAR_IF
12781         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12782         (gl_AS_VAR_IF): Move...
12783         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12784         Reported by Simon Josefsson.
12785
12786 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12787
12788         * lib/stdio.in.h: Fix typo.
12789
12790 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12791
12792         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12793         libgpg-error.
12794
12795 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12796
12797         * tests/test-xalloc-die.sh: Use $EXEEXT.
12798
12799 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12800             Bruno Haible  <bruno@clisp.org>
12801
12802         getlogin, getlogin_r: Avoid test failure.
12803         * tests/test-getlogin.c: Include <stdio.h>.
12804         (main): Skip the test when the function fails because stdin is not a
12805         tty.
12806         * tests/test-getlogin_r.c: Include <stdio.h>.
12807         (main): Skip the test when the function fails because stdin is not a
12808         tty.
12809
12810 2010-01-11  Eric Blake  <ebb9@byu.net>
12811
12812         tests: avoid more large file warnings
12813         * tests/test-fflush.c: Avoid warning about ftell use.
12814         * tests/test-fseek.c: Avoid warning about fseek use.
12815
12816 2010-01-10  Bruno Haible  <bruno@clisp.org>
12817
12818         nproc: Work better on Linux when /proc and /sys are not mounted.
12819         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12820         as lower bound when, on glibc/Linux systems,
12821         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12822         Suggested by Pádraig Brady <P@draigbrady.com>.
12823         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12824
12825         nproc: Refactor.
12826         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12827         extracted from num_processors.
12828         (num_processors): Call it.
12829
12830 2010-01-11  Jim Meyering  <meyering@redhat.com>
12831
12832         utimecmp: avoid new warning from upcoming gcc-4.5.0
12833         * lib/utimecmp.c (BILLION): Define using #define rather than an
12834         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12835
12836 2010-01-11  Eric Blake  <ebb9@byu.net>
12837
12838         math: add portability warnings for classification macros
12839         * modules/math (Depends-on): Add warn-on-use.
12840         (Makefile.am): Provide new substitutions.
12841         * m4/math_h.m4 (gl_MATH_H): Require inline.
12842         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12843         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12844         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12845         implement warnings.
12846
12847         unistd: warn on use of environ without module
12848         * modules/unistd (Depends-on): Add warn-on-use.
12849         (Makefile.am): Provide new substitutions.
12850         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12851         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12852
12853         stdio: warn on suspicious uses
12854         * modules/stdio (Depends-on): Add warn-on-use.
12855         (Makefile.am): Provide new substitutions.
12856         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12857         fseeko.
12858         * lib/stdio.in.h (gets): Always warn on use.
12859         (fseek, ftell): Adjust when warnings are issued, and honor
12860         _GL_NO_LARGE_FILES as a way to silence the warning.
12861         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12862         any warning about large file offsets.
12863         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12864         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12865         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12866         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12867         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12868         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12869         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12870         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12871
12872         warn-on-use: new module
12873         * modules/warn-on-use: New file.
12874         * build-aux/warn-on-use.h: Likewise.
12875         * m4/warn-on-use.m4: Likewise.
12876         * MODULES.html.sh (Support for building): Mention it.
12877
12878 2010-01-10  Bruno Haible  <bruno@clisp.org>
12879
12880         Tests for module 'unistr/u32-strdup'.
12881         * modules/unistr/u32-strdup-tests: New file.
12882         * tests/unistr/test-u32-strdup.c: New file.
12883
12884         Tests for module 'unistr/u16-strdup'.
12885         * modules/unistr/u16-strdup-tests: New file.
12886         * tests/unistr/test-u16-strdup.c: New file.
12887
12888         Tests for module 'unistr/u8-strdup'.
12889         * modules/unistr/u8-strdup-tests: New file.
12890         * tests/unistr/test-u8-strdup.c: New file.
12891         * tests/unistr/test-strdup.h: New file.
12892
12893         Tests for module 'unistr/u32-strncmp'.
12894         * modules/unistr/u32-strncmp-tests: New file.
12895         * tests/unistr/test-u32-strncmp.c: New file.
12896
12897         Tests for module 'unistr/u16-strncmp'.
12898         * modules/unistr/u16-strncmp-tests: New file.
12899         * tests/unistr/test-u16-strncmp.c: New file.
12900
12901         Tests for module 'unistr/u8-strncmp'.
12902         * modules/unistr/u8-strncmp-tests: New file.
12903         * tests/unistr/test-u8-strncmp.c: New file.
12904         * tests/unistr/test-strncmp.h: New file.
12905
12906         Tests for module 'unistr/u32-strcoll'.
12907         * modules/unistr/u32-strcoll-tests: New file.
12908         * tests/unistr/test-u32-strcoll.c: New file.
12909
12910         Tests for module 'unistr/u16-strcoll'.
12911         * modules/unistr/u16-strcoll-tests: New file.
12912         * tests/unistr/test-u16-strcoll.c: New file.
12913
12914         Tests for module 'unistr/u8-strcoll'.
12915         * modules/unistr/u8-strcoll-tests: New file.
12916         * tests/unistr/test-u8-strcoll.c: New file.
12917
12918         Tests for module 'unistr/u32-strcmp'.
12919         * modules/unistr/u32-strcmp-tests: New file.
12920         * tests/unistr/test-u32-strcmp.c: New file.
12921         * tests/unistr/test-u32-strcmp.h: New file.
12922
12923         Tests for module 'unistr/u16-strcmp'.
12924         * modules/unistr/u16-strcmp-tests: New file.
12925         * tests/unistr/test-u16-strcmp.c: New file.
12926         * tests/unistr/test-u16-strcmp.h: New file.
12927
12928         Tests for module 'unistr/u8-strcmp'.
12929         * modules/unistr/u8-strcmp-tests: New file.
12930         * tests/unistr/test-u8-strcmp.c: New file.
12931         * tests/unistr/test-u8-strcmp.h: New file.
12932         * tests/unistr/test-strcmp.h: New file.
12933
12934         Tests for module 'unistr/u32-strncat'.
12935         * modules/unistr/u32-strncat-tests: New file.
12936         * tests/unistr/test-u32-strncat.c: New file.
12937
12938         Tests for module 'unistr/u16-strncat'.
12939         * modules/unistr/u16-strncat-tests: New file.
12940         * tests/unistr/test-u16-strncat.c: New file.
12941
12942         Tests for module 'unistr/u8-strncat'.
12943         * modules/unistr/u8-strncat-tests: New file.
12944         * tests/unistr/test-u8-strncat.c: New file.
12945         * tests/unistr/test-strncat.h: New file.
12946
12947         Tests for module 'unistr/u32-strcat'.
12948         * modules/unistr/u32-strcat-tests: New file.
12949         * tests/unistr/test-u32-strcat.c: New file.
12950
12951         Tests for module 'unistr/u16-strcat'.
12952         * modules/unistr/u16-strcat-tests: New file.
12953         * tests/unistr/test-u16-strcat.c: New file.
12954
12955         Tests for module 'unistr/u8-strcat'.
12956         * modules/unistr/u8-strcat-tests: New file.
12957         * tests/unistr/test-u8-strcat.c: New file.
12958         * tests/unistr/test-strcat.h: New file.
12959
12960         Tests for module 'unistr/u32-stpncpy'.
12961         * modules/unistr/u32-stpncpy-tests: New file.
12962         * tests/unistr/test-u32-stpncpy.c: New file.
12963
12964         Tests for module 'unistr/u16-stpncpy'.
12965         * modules/unistr/u16-stpncpy-tests: New file.
12966         * tests/unistr/test-u16-stpncpy.c: New file.
12967
12968         Tests for module 'unistr/u8-stpncpy'.
12969         * modules/unistr/u8-stpncpy-tests: New file.
12970         * tests/unistr/test-u8-stpncpy.c: New file.
12971         * tests/unistr/test-stpncpy.h: New file.
12972
12973         Tests for module 'unistr/u32-strncpy'.
12974         * modules/unistr/u32-strncpy-tests: New file.
12975         * tests/unistr/test-u32-strncpy.c: New file.
12976
12977         Tests for module 'unistr/u16-strncpy'.
12978         * modules/unistr/u16-strncpy-tests: New file.
12979         * tests/unistr/test-u16-strncpy.c: New file.
12980
12981         Tests for module 'unistr/u8-strncpy'.
12982         * modules/unistr/u8-strncpy-tests: New file.
12983         * tests/unistr/test-u8-strncpy.c: New file.
12984         * tests/unistr/test-strncpy.h: New file.
12985
12986         Tests for module 'unistr/u32-stpcpy'.
12987         * modules/unistr/u32-stpcpy-tests: New file.
12988         * tests/unistr/test-u32-stpcpy.c: New file.
12989
12990         Tests for module 'unistr/u16-stpcpy'.
12991         * modules/unistr/u16-stpcpy-tests: New file.
12992         * tests/unistr/test-u16-stpcpy.c: New file.
12993
12994         Tests for module 'unistr/u8-stpcpy'.
12995         * modules/unistr/u8-stpcpy-tests: New file.
12996         * tests/unistr/test-u8-stpcpy.c: New file.
12997         * tests/unistr/test-stpcpy.h: New file.
12998
12999         Tests for module 'unistr/u32-strcpy'.
13000         * modules/unistr/u32-strcpy-tests: New file.
13001         * tests/unistr/test-u32-strcpy.c: New file.
13002
13003         Tests for module 'unistr/u16-strcpy'.
13004         * modules/unistr/u16-strcpy-tests: New file.
13005         * tests/unistr/test-u16-strcpy.c: New file.
13006
13007         Tests for module 'unistr/u8-strcpy'.
13008         * modules/unistr/u8-strcpy-tests: New file.
13009         * tests/unistr/test-u8-strcpy.c: New file.
13010         * tests/unistr/test-strcpy.h: New file.
13011
13012         Tests for module 'unistr/u32-strnlen'.
13013         * modules/unistr/u32-strnlen-tests: New file.
13014         * tests/unistr/test-u32-strnlen.c: New file.
13015
13016         Tests for module 'unistr/u16-strnlen'.
13017         * modules/unistr/u16-strnlen-tests: New file.
13018         * tests/unistr/test-u16-strnlen.c: New file.
13019
13020         Tests for module 'unistr/u8-strnlen'.
13021         * modules/unistr/u8-strnlen-tests: New file.
13022         * tests/unistr/test-u8-strnlen.c: New file.
13023         * tests/unistr/test-strnlen.h: New file.
13024
13025         Tests for module 'unistr/u32-strlen'.
13026         * modules/unistr/u32-strlen-tests: New file.
13027         * tests/unistr/test-u32-strlen.c: New file.
13028
13029         Tests for module 'unistr/u16-strlen'.
13030         * modules/unistr/u16-strlen-tests: New file.
13031         * tests/unistr/test-u16-strlen.c: New file.
13032
13033         Tests for module 'unistr/u8-strlen'.
13034         * modules/unistr/u8-strlen-tests: New file.
13035         * tests/unistr/test-u8-strlen.c: New file.
13036
13037         Tests for module 'unistr/u32-prev'.
13038         * modules/unistr/u32-prev-tests: New file.
13039         * tests/unistr/test-u32-prev.c: New file.
13040
13041         Tests for module 'unistr/u16-prev'.
13042         * modules/unistr/u16-prev-tests: New file.
13043         * tests/unistr/test-u16-prev.c: New file.
13044
13045         Tests for module 'unistr/u8-prev'.
13046         * modules/unistr/u8-prev-tests: New file.
13047         * tests/unistr/test-u8-prev.c: New file.
13048
13049         Tests for module 'unistr/u32-next'.
13050         * modules/unistr/u32-next-tests: New file.
13051         * tests/unistr/test-u32-next.c: New file.
13052
13053         Tests for module 'unistr/u16-next'.
13054         * modules/unistr/u16-next-tests: New file.
13055         * tests/unistr/test-u16-next.c: New file.
13056
13057         Tests for module 'unistr/u8-next'.
13058         * modules/unistr/u8-next-tests: New file.
13059         * tests/unistr/test-u8-next.c: New file.
13060
13061         Tests for module 'unistr/u32-strmbtouc'.
13062         * modules/unistr/u32-strmbtouc-tests: New file.
13063         * tests/unistr/test-u32-strmbtouc.c: New file.
13064
13065         Tests for module 'unistr/u16-strmbtouc'.
13066         * modules/unistr/u16-strmbtouc-tests: New file.
13067         * tests/unistr/test-u16-strmbtouc.c: New file.
13068
13069         Tests for module 'unistr/u8-strmbtouc'.
13070         * modules/unistr/u8-strmbtouc-tests: New file.
13071         * tests/unistr/test-u8-strmbtouc.c: New file.
13072
13073         Tests for module 'unistr/u32-strmblen'.
13074         * modules/unistr/u32-strmblen-tests: New file.
13075         * tests/unistr/test-u32-strmblen.c: New file.
13076
13077         Tests for module 'unistr/u16-strmblen'.
13078         * modules/unistr/u16-strmblen-tests: New file.
13079         * tests/unistr/test-u16-strmblen.c: New file.
13080
13081         Tests for module 'unistr/u8-strmblen'.
13082         * modules/unistr/u8-strmblen-tests: New file.
13083         * tests/unistr/test-u8-strmblen.c: New file.
13084
13085         Tests for module 'unistr/u32-cpy-alloc'.
13086         * modules/unistr/u32-cpy-alloc-tests: New file.
13087         * tests/unistr/test-u32-cpy-alloc.c: New file.
13088
13089         Tests for module 'unistr/u16-cpy-alloc'.
13090         * modules/unistr/u16-cpy-alloc-tests: New file.
13091         * tests/unistr/test-u16-cpy-alloc.c: New file.
13092
13093         Tests for module 'unistr/u8-cpy-alloc'.
13094         * modules/unistr/u8-cpy-alloc-tests: New file.
13095         * tests/unistr/test-u8-cpy-alloc.c: New file.
13096         * tests/unistr/test-cpy-alloc.h: New file.
13097
13098         Tests for module 'unistr/u32-mbsnlen'.
13099         * modules/unistr/u32-mbsnlen-tests: New file.
13100         * tests/unistr/test-u32-mbsnlen.c: New file.
13101
13102         Tests for module 'unistr/u16-mbsnlen'.
13103         * modules/unistr/u16-mbsnlen-tests: New file.
13104         * tests/unistr/test-u16-mbsnlen.c: New file.
13105
13106         Tests for module 'unistr/u8-mbsnlen'.
13107         * modules/unistr/u8-mbsnlen-tests: New file.
13108         * tests/unistr/test-u8-mbsnlen.c: New file.
13109
13110         Tests for module 'unistr/u32-chr'.
13111         * modules/unistr/u32-chr-tests: New file.
13112         * tests/unistr/test-u32-chr.c: New file.
13113
13114         Tests for module 'unistr/u16-chr'.
13115         * modules/unistr/u16-chr-tests: New file.
13116         * tests/unistr/test-u16-chr.c: New file.
13117
13118         Tests for module 'unistr/u8-chr'.
13119         * modules/unistr/u8-chr-tests: New file.
13120         * tests/unistr/test-u8-chr.c: New file.
13121         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13122
13123         Tests for module 'unistr/u32-cmp2'.
13124         * modules/unistr/u32-cmp2-tests: New file.
13125         * tests/unistr/test-u32-cmp2.c: New file.
13126
13127         Tests for module 'unistr/u16-cmp2'.
13128         * modules/unistr/u16-cmp2-tests: New file.
13129         * tests/unistr/test-u16-cmp2.c: New file.
13130
13131         Tests for module 'unistr/u8-cmp2'.
13132         * modules/unistr/u8-cmp2-tests: New file.
13133         * tests/unistr/test-u8-cmp2.c: New file.
13134         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13135
13136         Tests for module 'unistr/u32-cmp'.
13137         * modules/unistr/u32-cmp-tests: New file.
13138         * tests/unistr/test-u32-cmp.c: New file.
13139
13140         Tests for module 'unistr/u16-cmp'.
13141         * modules/unistr/u16-cmp-tests: New file.
13142         * tests/unistr/test-u16-cmp.c: New file.
13143
13144         Tests for module 'unistr/u8-cmp'.
13145         * modules/unistr/u8-cmp-tests: New file.
13146         * tests/unistr/test-u8-cmp.c: New file.
13147         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13148
13149         Tests for module 'unistr/u32-set'.
13150         * modules/unistr/u32-set-tests: New file.
13151         * tests/unistr/test-u32-set.c: New file.
13152
13153         Tests for module 'unistr/u16-set'.
13154         * modules/unistr/u16-set-tests: New file.
13155         * tests/unistr/test-u16-set.c: New file.
13156
13157         Tests for module 'unistr/u8-set'.
13158         * modules/unistr/u8-set-tests: New file.
13159         * tests/unistr/test-u8-set.c: New file.
13160         * tests/unistr/test-set.h: New file.
13161
13162         Tests for module 'unistr/u32-move'.
13163         * modules/unistr/u32-move-tests: New file.
13164         * tests/unistr/test-u32-move.c: New file.
13165
13166         Tests for module 'unistr/u16-move'.
13167         * modules/unistr/u16-move-tests: New file.
13168         * tests/unistr/test-u16-move.c: New file.
13169
13170         Tests for module 'unistr/u8-move'.
13171         * modules/unistr/u8-move-tests: New file.
13172         * tests/unistr/test-u8-move.c: New file.
13173         * tests/unistr/test-move.h: New file.
13174
13175         Tests for module 'unistr/u32-cpy'.
13176         * modules/unistr/u32-cpy-tests: New file.
13177         * tests/unistr/test-u32-cpy.c: New file.
13178
13179         Tests for module 'unistr/u16-cpy'.
13180         * modules/unistr/u16-cpy-tests: New file.
13181         * tests/unistr/test-u16-cpy.c: New file.
13182
13183         Tests for module 'unistr/u8-cpy'.
13184         * modules/unistr/u8-cpy-tests: New file.
13185         * tests/unistr/test-u8-cpy.c: New file.
13186         * tests/unistr/test-cpy.h: New file.
13187
13188 2010-01-09  Bruno Haible  <bruno@clisp.org>
13189
13190         Tests for module 'unistr/u32-uctomb'.
13191         * modules/unistr/u32-uctomb-tests: New file.
13192         * tests/unistr/test-u32-uctomb.c: New file.
13193
13194         Tests for module 'unistr/u16-uctomb'.
13195         * modules/unistr/u16-uctomb-tests: New file.
13196         * tests/unistr/test-u16-uctomb.c: New file.
13197
13198         Tests for module 'unistr/u8-uctomb'.
13199         * modules/unistr/u8-uctomb-tests: New file.
13200         * tests/unistr/test-u8-uctomb.c: New file.
13201
13202         Tests for module 'unistr/u32-mbtoucr'.
13203         * modules/unistr/u32-mbtoucr-tests: New file.
13204         * tests/unistr/test-u32-mbtoucr.c: New file.
13205
13206         Tests for module 'unistr/u16-mbtoucr'.
13207         * modules/unistr/u16-mbtoucr-tests: New file.
13208         * tests/unistr/test-u16-mbtoucr.c: New file.
13209
13210         Tests for module 'unistr/u8-mbtoucr'.
13211         * modules/unistr/u8-mbtoucr-tests: New file.
13212         * tests/unistr/test-u8-mbtoucr.c: New file.
13213
13214         Tests for module 'unistr/u32-mbtouc'.
13215         * modules/unistr/u32-mbtouc-tests: New file.
13216         * tests/unistr/test-u32-mbtouc.c: New file.
13217
13218         Tests for module 'unistr/u16-mbtouc'.
13219         * modules/unistr/u16-mbtouc-tests: New file.
13220         * tests/unistr/test-u16-mbtouc.c: New file.
13221
13222         Tests for module 'unistr/u8-mbtouc'.
13223         * modules/unistr/u8-mbtouc-tests: New file.
13224         * tests/unistr/test-u8-mbtouc.c: New file.
13225
13226         Tests for module 'unistr/u32-mbtouc-unsafe'.
13227         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13228         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13229         * tests/unistr/test-u32-mbtouc.h: New file.
13230
13231         Tests for module 'unistr/u16-mbtouc-unsafe'.
13232         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13233         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13234         * tests/unistr/test-u16-mbtouc.h: New file.
13235
13236         Tests for module 'unistr/u8-mbtouc-unsafe'.
13237         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13238         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13239         * tests/unistr/test-u8-mbtouc.h: New file.
13240
13241         Tests for module 'unistr/u32-mblen'.
13242         * modules/unistr/u32-mblen-tests: New file.
13243         * tests/unistr/test-u32-mblen.c: New file.
13244
13245         Tests for module 'unistr/u16-mblen'.
13246         * modules/unistr/u16-mblen-tests: New file.
13247         * tests/unistr/test-u16-mblen.c: New file.
13248
13249         Tests for module 'unistr/u8-mblen'.
13250         * modules/unistr/u8-mblen-tests: New file.
13251         * tests/unistr/test-u8-mblen.c: New file.
13252
13253         Tests for module 'unistr/u32-to-u16'.
13254         * modules/unistr/u32-to-u16-tests: New file.
13255         * tests/unistr/test-u32-to-u16.c: New file.
13256
13257         Tests for module 'unistr/u32-to-u8'.
13258         * modules/unistr/u32-to-u8-tests: New file.
13259         * tests/unistr/test-u32-to-u8.c: New file.
13260
13261         Tests for module 'unistr/u16-to-u32'.
13262         * modules/unistr/u16-to-u32-tests: New file.
13263         * tests/unistr/test-u16-to-u32.c: New file.
13264
13265         Tests for module 'unistr/u16-to-u8'.
13266         * modules/unistr/u16-to-u8-tests: New file.
13267         * tests/unistr/test-u16-to-u8.c: New file.
13268
13269         Tests for module 'unistr/u8-to-u32'.
13270         * modules/unistr/u8-to-u32-tests: New file.
13271         * tests/unistr/test-u8-to-u32.c: New file.
13272
13273         Tests for module 'unistr/u8-to-u16'.
13274         * modules/unistr/u8-to-u16-tests: New file.
13275         * tests/unistr/test-u8-to-u16.c: New file.
13276
13277         Tests for module 'unistr/u32-check'.
13278         * modules/unistr/u32-check-tests: New file.
13279         * tests/unistr/test-u32-check.c: New file.
13280
13281         Tests for module 'unistr/u16-check'.
13282         * modules/unistr/u16-check-tests: New file.
13283         * tests/unistr/test-u16-check.c: New file.
13284
13285         Tests for module 'unistr/u8-check'.
13286         * modules/unistr/u8-check-tests: New file.
13287         * tests/unistr/test-u8-check.c: New file.
13288
13289         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13290         (category_equals): New function.
13291         (main): Add more tests.
13292         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13293
13294         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13295
13296 2010-01-10  Bruno Haible  <bruno@clisp.org>
13297
13298         unistr/u*-strcoll: Try harder to distinguish different strings.
13299         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13300         compare s1 and s2 to see if they are different.
13301
13302 2010-01-10  Bruno Haible  <bruno@clisp.org>
13303
13304         unistr/u*-stpncpy: Fix the return value.
13305         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13306         description of the return value consistent with stpncpy in glibc.
13307         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13308         written non-NUL unit.
13309
13310 2010-01-10  Bruno Haible  <bruno@clisp.org>
13311
13312         unistr/u*-next: Add missing dependencies.
13313         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13314         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13315         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13316
13317 2010-01-10  Bruno Haible  <bruno@clisp.org>
13318
13319         unistr/u8-mbsnlen: Fix return value for incomplete character.
13320         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13321         u8_mblen.
13322         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13323         Remove unistr/u8-mblen.
13324         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13325         u16_mblen.
13326         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13327         Remove unistr/u16-mblen.
13328
13329 2010-01-10  Bruno Haible  <bruno@clisp.org>
13330
13331         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13332         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13333         Reported by Brian Gough <bjg@gnu.org> and
13334         Chris Clayton <chris2553@googlemail.com> via
13335         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13336
13337 2010-01-09  Bruno Haible  <bruno@clisp.org>
13338
13339         unistr/u16-to-u32: Reject invalid input.
13340         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13341         u16_mbtouc.
13342         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13343         Remove unistr/u16-mbtouc.
13344
13345         unistr/u16-to-u8: Reject invalid input.
13346         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13347         u16_mbtouc.
13348         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13349         Remove unistr/u16-mbtouc.
13350
13351         unistr/u8-to-u32: Reject invalid input.
13352         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13353         u8_mbtouc.
13354         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13355         Remove unistr/u8-mbtouc.
13356
13357         unistr/u8-to-u16: Reject invalid input.
13358         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13359         u8_mbtouc.
13360         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13361         Remove unistr/u8-mbtouc.
13362
13363 2010-01-09  Bruno Haible  <bruno@clisp.org>
13364
13365         Tests for module 'getlogin'.
13366         * modules/getlogin-tests: New file.
13367         * tests/test-getlogin.c: New file.
13368
13369         New module 'getlogin'.
13370         * lib/unistd.in.h (getlogin): New declaration.
13371         * lib/getlogin.c: New file.
13372         * m4/getlogin.m4: New file.
13373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13374         HAVE_GETLOGIN.
13375         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13376         HAVE_GETLOGIN.
13377         * modules/getlogin: New file.
13378         * doc/posix-functions/getlogin.texi: Mention the new module.
13379         Reported by John W. Eaton <jwe@gnu.org>.
13380
13381 2010-01-09  Bruno Haible  <bruno@clisp.org>
13382
13383         getlogin_r: Support for native Windows.
13384         * lib/getlogin_r.c: Include <windows.h>
13385         (getlogin_r): Implement for native Windows.
13386         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13387         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13388         via John W. Eaton <jwe@gnu.org>.
13389
13390 2010-01-09  Bruno Haible  <bruno@clisp.org>
13391
13392         getlogin_r: Small fixes.
13393         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13394         succeeds.
13395         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13396         before testing whether getlogin_r is declared. No need to set
13397         HAVE_DECL_GETLOGIN_R to 1.
13398         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13399
13400 2010-01-09  Bruno Haible  <bruno@clisp.org>
13401
13402         * lib/unistd.in.h (getlogin_r): Add comment.
13403
13404 2010-01-09  Bruno Haible  <bruno@clisp.org>
13405
13406         Tests for module 'getlogin_r'.
13407         * modules/getlogin_r-tests: New file.
13408         * tests/test-getlogin_r.c: New file.
13409
13410 2010-01-09  Jim Meyering  <meyering@redhat.com>
13411
13412         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13413         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13414         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13415
13416 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13417
13418         * lib/dup2.c (rpl_dup2): Improve comment.
13419
13420 2010-01-08  Eric Blake  <ebb9@byu.net>
13421
13422         maint.mk: allow packages to add makefile @@ exceptions
13423         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13424         (sc_makefile_check): Rename...
13425         (sc_makefile_at_at_check): ...to this, and use hook.
13426
13427         dup2: work around mingw bug
13428         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13429         Reported by Simon Josefsson.
13430
13431 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13432
13433         glob: Fix C++ compilation.
13434         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13435         C++.
13436
13437 2010-01-07  Bruno Haible  <bruno@clisp.org>
13438
13439         Fix indentation of wctype.in.h, broken since 2007-01-06.
13440         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13441
13442 2010-01-07  Bruno Haible  <bruno@clisp.org>
13443
13444         mbslen: Avoid collision with system function.
13445         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13446         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13447         * m4/mbslen.m4: New file.
13448         * modules/mbslen (Files): Add it.
13449         (configure.ac): Invoke gl_MBSLEN.
13450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13451         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13453         via Ian Beckwith <ianb@erislabs.net>.
13454
13455 2010-01-07  Bruno Haible  <bruno@clisp.org>
13456
13457         dirent: Document the last fix.
13458         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13459
13460 2010-01-07  Bruno Haible  <bruno@clisp.org>
13461
13462         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13463         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13464         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13465         va_list are defined.
13466         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13467         Reported by Eric Blake.
13468
13469 2010-01-07  Bruno Haible  <bruno@clisp.org>
13470
13471         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13472         * modules/xlist (Depends-on): Add 'list',
13473         * modules/xoset (Depends-on): Add 'oset'.
13474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13475
13476 2010-01-07  Bruno Haible  <bruno@clisp.org>
13477
13478         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13479         * doc/posix-functions/strncasecmp.texi: Likewise.
13480
13481 2010-01-07  Bruno Haible  <bruno@clisp.org>
13482
13483         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13484
13485 2010-01-07  John W. Eaton  <jwe@octave.org>
13486
13487         wctype: allow C++ use
13488         * lib/wctype.in.h: Add extern "C" block for C++.
13489
13490 2010-01-06  Eric Blake  <ebb9@byu.net>
13491
13492         maint.mk: detect incorrect GFDL usage
13493         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13494
13495 2010-01-06  Jim Meyering  <meyering@redhat.com>
13496         and Eric Blake  <ebb9@byu.net>
13497
13498         maint.mk: ignore multi-line copyright in NEWS
13499         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13500
13501 2010-01-06  Eric Blake  <ebb9@byu.net>
13502
13503         select: add missing dependency
13504         * modules/select-tests (Depends-on): Move sockets dependency...
13505         * modules/select (Depends-on): ...here.
13506         Reported by Ian Beckwith.
13507
13508         doc: regenerate INSTALL
13509         * doc/INSTALL: Reflect recent autoconf update.
13510         * doc/INSTALL.ISO: Likewise.
13511         * doc/INSTALL.UTF-8: Likewise.
13512
13513         pread: fix compilation on glibc
13514         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13515         Reported by Ralf Wildenhues.
13516
13517         dirent: fix test failure
13518         * lib/dirent.in.h (includes): Guarantee ino_t.
13519         Reported by Ralf Wildenhues.
13520
13521 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13522
13523         linkat, renameat: avoid bad free
13524         * lib/at-func2.c (at_func2): Fix typo.
13525         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13526
13527 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13528
13529         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13530         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13531         to avoid failure of symlink test later.
13532
13533 2010-01-06  Eric Blake  <ebb9@byu.net>
13534
13535         stdio, unistd: guarantee ssize_t
13536         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13537         2008 are exposed when needed.
13538         * lib/stdio.in.h (includes): Likewise.
13539         Reported by Ralf Wildenhues.
13540
13541 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13542
13543         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13544         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13545         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13546
13547 2010-01-06  Jim Meyering  <meyering@redhat.com>
13548
13549         readtokens: this module *does* require xalloc.h
13550         It uses only functions that were omitted by the old syntax-check rule.
13551         * lib/readtokens.c: Include "xalloc.h" once again.
13552         * modules/readtokens (Depends-on): Add xalloc.
13553         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13554
13555 2010-01-05  Eric Blake  <ebb9@byu.net>
13556
13557         maint: support 'make announcement' from a VPATH build
13558         * top/maint.mk (announcement): Look for correct NEWS file.
13559
13560 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13561
13562         utimens (fdutimens): ignore a negative FD, per contract
13563         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13564         when we have a valid file descriptor.  Otherwise, using a brand
13565         new glibc (with just-patched futimens that now fails with EBADF)
13566         would cause this function to fail with ENOSYS.
13567         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13568         See also http://bugzilla.redhat.com/552320.
13569
13570 2010-01-05  Eric Blake  <ebb9@byu.net>
13571
13572         strcase: document what it provides
13573         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13574         gnulib module.
13575         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13576         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13577
13578 2010-01-05  Jim Meyering  <meyering@redhat.com>
13579
13580         maint: remove useless inclusions of "xalloc.h"
13581         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13582         * lib/readtokens.c: Likewise.
13583         * lib/same.c: Likewise.
13584         * modules/getloadavg (Depends-on): Remove xalloc.
13585         * modules/readtokens: Likewise.
13586         * modules/same: Likewise.
13587
13588         maint.mk: include 4 more function names in alloca.h-checking regexp
13589         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13590         regexp.  Before, we would give a false-positive (saying alloca.h
13591         is included unnecessarily) when the only uses involved omitted symbols.
13592
13593         xalloc.h: use consistent formatting
13594         * lib/xalloc.h: Move declarations to start in the first column.
13595
13596 2010-01-05  Eric Blake  <ebb9@byu.net>
13597
13598         mkdir: avoid xalloc
13599         * lib/mkdir.c (includes): Drop unused header.
13600         Reported by John W. Eaton.
13601
13602 2010-01-04  Jim Meyering  <meyering@redhat.com>
13603
13604         nl_langinfo: avoid configure-time syntax error
13605         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13606         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13607         the empty string.  Don't let that provoke a shell syntax error.
13608
13609         regcomp, regexec, fnmatch: avoid array bounds read error
13610         * lib/regcomp.c (build_equiv_class): From glibc:
13611         Use only the low 24 bits of a findidx return value as an index
13612         into the weights array.  Patch by Ulrich Drepper:
13613         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13614         * lib/regexec.c (check_node_accept_bytes): Likewise.
13615         * lib/fnmatch_loop.c (FCT): Likewise.
13616
13617         regcomp: skip collseq lookup when there are no rules
13618         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13619         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13620
13621         regcomp: recognize ill-formed { } expressions
13622         * lib/regcomp.c (parse_dup_op): From glibc:
13623         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13624
13625         regcomp: fix typo in comment
13626         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13627         s/satisfy/satisfies/.
13628
13629         regcomp: sync from glibc: remove dead store
13630         * lib/regcomp.c (duplicate_node_closure): Remove useless
13631         search_duplicated_node call and dead store.
13632
13633         regcomp: sync from glibc; always use nl_langinfo
13634         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13635         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13636         * modules/regex (Depends-on): Add nl_langinfo.
13637
13638 2010-01-04  Eric Blake  <ebb9@byu.net>
13639
13640         fdopendir: fix configure test
13641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13642
13643 2010-01-01  Bruno Haible  <bruno@clisp.org>
13644
13645         wchar: Remove unused configure check.
13646         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13647
13648 2010-01-01  Eric Blake  <ebb9@byu.net>
13649
13650         headers: make check of system header explicit
13651         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13652         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13653         ourselves.
13654         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13657         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13658         internals.
13659         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13660         missing.
13661         Suggested by Bruno Haible.
13662
13663 2010-01-01  Jim Meyering  <meyering@redhat.com>
13664
13665         ChangeLog: tweak to eliminate unnecessary copyright line
13666         * ChangeLog: Remove a copyright line that was mistakenly updated
13667         by today's update-copyright run.  Reported by Eric Blake.
13668
13669         test-update-copyright: don't let envvar setting cause test failure
13670         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13671
13672 2010-01-01  Bruno Haible  <bruno@clisp.org>
13673
13674         localename: Avoid gcc warning.
13675         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13676         function if it is not used.
13677
13678 2010-01-01  Jim Meyering  <meyering@redhat.com>
13679
13680         update nearly all FSF copyright year lists to include 2010
13681         Use the same procedure as for 2009, outlined in
13682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13683
13684         version-etc: set COPYRIGHT_YEAR to 2010
13685         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13686
13687 2009-12-31  Eric Blake  <ebb9@byu.net>
13688
13689         doc: correct availability of cygwin 1.5.x getopt
13690         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13691         variables.
13692         * doc/posix-functions/opterr.texi (opterr): Likewise.
13693         * doc/posix-functions/optind.texi (optind): Likewise.
13694         * doc/posix-functions/optopt.texi (optopt): Likewise.
13695         * doc/posix-functions/tzname.texi (tzname): Likewise.
13696
13697         openat: update maintainer
13698         * modules/openat (Maintainer): Add myself.
13699
13700         utimens: avoid shadowing warning
13701         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13702         buffers into one, to avoid shadowing, as well as avoiding a
13703         redundant stat.
13704         Reported by Jim Meyering.
13705
13706         test-dup2: avoid compiler warning
13707         * tests/test-dup2.c (is_inheritable): Only define if used.
13708
13709 2010-01-01  Bruno Haible  <bruno@clisp.org>
13710
13711         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13712         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13713         defined, use wctomb instead of wcrtomb.
13714
13715 2010-01-01  Bruno Haible  <bruno@clisp.org>
13716
13717         iconv: Reject native Solaris iconv.
13718         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13719         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13720
13721 2009-12-31  Bruno Haible  <bruno@clisp.org>
13722
13723         * tests/test-signal.c (main): Remove test of 'SIG'.
13724
13725 2009-12-31  Bruno Haible  <bruno@clisp.org>
13726
13727         spawn: Fix incomplete fix.
13728         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13729         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13730         warnings for GNULIB_POSIXCHECK again.
13731         Reported by Eric Blake.
13732
13733 2009-12-31  Bruno Haible  <bruno@clisp.org>
13734
13735         Avoid namespace pollution on glibc systems.
13736         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13737         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13738         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13739         glibc systems.
13740
13741 2009-12-31  Bruno Haible  <bruno@clisp.org>
13742
13743         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13744         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13745         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13746         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13747         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13748         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13749         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13750
13751 2009-12-31  Bruno Haible  <bruno@clisp.org>
13752
13753         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13754         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13755         afterwards.
13756
13757 2009-12-31  Bruno Haible  <bruno@clisp.org>
13758
13759         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13760         SYS_UTSNAME_H.
13761
13762 2009-12-31  Bruno Haible  <bruno@clisp.org>
13763
13764         spawn: Fix misapplied patch.
13765         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13766         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13767         warnings for GNULIB_POSIXCHECK.
13768
13769 2009-12-31  Bruno Haible  <bruno@clisp.org>
13770
13771         times: Update after sys_times changed.
13772         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13773         * modules/times (Files): Add it.
13774         (configure.ac): Invoke gl_FUNC_TIMES.
13775
13776 2009-12-31  Bruno Haible  <bruno@clisp.org>
13777
13778         Use AC_C_INLINE where necessary.
13779         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13780         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13781         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13782         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13783         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13784         * m4/mbiter.m4 (gl_MBITER): Likewise.
13785         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13786         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13787         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13788         * modules/u64 (configure.ac): Likewise.
13789
13790 2009-12-31  Bruno Haible  <bruno@clisp.org>
13791
13792         Use AC_C_INLINE instead of module 'inline' where possible.
13793         * modules/inline (Description): Clarify purpose.
13794         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13795         * modules/count-one-bits (Depends-on): Remove inline.
13796         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13797         * modules/openat (Depends-on): Remove inline.
13798         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13799         instead of depending on module 'inline'.
13800         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13801         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13802         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13803         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13804         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13805         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13806         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13807         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13808         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13809         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13810         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13811         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13812         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13813         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13814         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13815         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13816         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13817         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13818         Likewise.
13819         * modules/unictype/property-ascii-hex-digit (Depends-on,
13820         configure.ac): Likewise.
13821         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13822         configure.ac): Likewise.
13823         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13824         configure.ac): Likewise.
13825         * modules/unictype/property-bidi-block-separator (Depends-on,
13826         configure.ac): Likewise.
13827         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13828         configure.ac): Likewise.
13829         * modules/unictype/property-bidi-common-separator (Depends-on,
13830         configure.ac): Likewise.
13831         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13832         Likewise.
13833         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13834         configure.ac): Likewise.
13835         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13836         configure.ac): Likewise.
13837         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13838         configure.ac): Likewise.
13839         * modules/unictype/property-bidi-european-digit (Depends-on,
13840         configure.ac): Likewise.
13841         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13842         configure.ac): Likewise.
13843         * modules/unictype/property-bidi-left-to-right (Depends-on,
13844         configure.ac): Likewise.
13845         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13846         configure.ac): Likewise.
13847         * modules/unictype/property-bidi-other-neutral (Depends-on,
13848         configure.ac): Likewise.
13849         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13850         Likewise.
13851         * modules/unictype/property-bidi-segment-separator (Depends-on,
13852         configure.ac): Likewise.
13853         * modules/unictype/property-bidi-whitespace (Depends-on,
13854         configure.ac): Likewise.
13855         * modules/unictype/property-combining (Depends-on, configure.ac):
13856         Likewise.
13857         * modules/unictype/property-composite (Depends-on, configure.ac):
13858         Likewise.
13859         * modules/unictype/property-currency-symbol (Depends-on,
13860         configure.ac): Likewise.
13861         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13862         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13863         Likewise.
13864         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13865         configure.ac): Likewise.
13866         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13867         Likewise.
13868         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13869         Likewise.
13870         * modules/unictype/property-extender (Depends-on, configure.ac):
13871         Likewise.
13872         * modules/unictype/property-format-control (Depends-on, configure.ac):
13873         Likewise.
13874         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13875         Likewise.
13876         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13877         Likewise.
13878         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13879         Likewise.
13880         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13881         Likewise.
13882         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13883         Likewise.
13884         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13885         Likewise.
13886         * modules/unictype/property-id-start (Depends-on, configure.ac):
13887         Likewise.
13888         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13889         Likewise.
13890         * modules/unictype/property-ids-binary-operator (Depends-on,
13891         configure.ac): Likewise.
13892         * modules/unictype/property-ids-trinary-operator (Depends-on,
13893         configure.ac): Likewise.
13894         * modules/unictype/property-ignorable-control (Depends-on,
13895         configure.ac): Likewise.
13896         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13897         Likewise.
13898         * modules/unictype/property-join-control (Depends-on, configure.ac):
13899         Likewise.
13900         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13901         Likewise.
13902         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13903         Likewise.
13904         * modules/unictype/property-logical-order-exception (Depends-on,
13905         configure.ac): Likewise.
13906         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13907         Likewise.
13908         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13909         * modules/unictype/property-non-break (Depends-on, configure.ac):
13910         Likewise.
13911         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13912         Likewise.
13913         * modules/unictype/property-numeric (Depends-on, configure.ac):
13914         Likewise.
13915         * modules/unictype/property-other-alphabetic (Depends-on,
13916         configure.ac): Likewise.
13917         * modules/unictype/property-other-default-ignorable-code-point
13918         (Depends-on, configure.ac): Likewise.
13919         * modules/unictype/property-other-grapheme-extend (Depends-on,
13920         configure.ac): Likewise.
13921         * modules/unictype/property-other-id-continue (Depends-on,
13922         configure.ac): Likewise.
13923         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13924         Likewise.
13925         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13926         Likewise.
13927         * modules/unictype/property-other-math (Depends-on, configure.ac):
13928         Likewise.
13929         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13930         Likewise.
13931         * modules/unictype/property-paired-punctuation (Depends-on,
13932         configure.ac): Likewise.
13933         * modules/unictype/property-paragraph-separator (Depends-on,
13934         configure.ac): Likewise.
13935         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13936         Likewise.
13937         * modules/unictype/property-pattern-white-space (Depends-on,
13938         configure.ac): Likewise.
13939         * modules/unictype/property-private-use (Depends-on, configure.ac):
13940         Likewise.
13941         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13942         Likewise.
13943         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13944         Likewise.
13945         * modules/unictype/property-radical (Depends-on, configure.ac):
13946         Likewise.
13947         * modules/unictype/property-sentence-terminal (Depends-on,
13948         configure.ac): Likewise.
13949         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13950         Likewise.
13951         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13952         * modules/unictype/property-terminal-punctuation (Depends-on,
13953         configure.ac): Likewise.
13954         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13955         Likewise.
13956         * modules/unictype/property-unassigned-code-value (Depends-on,
13957         configure.ac): Likewise.
13958         * modules/unictype/property-unified-ideograph (Depends-on,
13959         configure.ac): Likewise.
13960         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13961         Likewise.
13962         * modules/unictype/property-variation-selector (Depends-on,
13963         configure.ac): Likewise.
13964         * modules/unictype/property-white-space (Depends-on, configure.ac):
13965         Likewise.
13966         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13967         Likewise.
13968         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13969         Likewise.
13970         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13971         Likewise.
13972         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13973         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13974         Likewise.
13975
13976 2009-12-31  Bruno Haible  <bruno@clisp.org>
13977
13978         Remove unnecessary AC_C_INLINE invocation.
13979         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13980         since 2009-08-21.
13981
13982 2009-12-31  Jim Meyering  <meyering@redhat.com>
13983
13984         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13985         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13986         With this change, we can all remove the gpg_key_ID = ... definition
13987         from our respective cfg.mk files.
13988
13989         maint.mk: create announcement template in ~/, not in /tmp
13990         * top/maint.mk (emit_upload_commands): Adjust.
13991         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13992         Remove temporary file, .ci-msg.
13993
13994 2009-12-31  Eric Blake  <ebb9@byu.net>
13995
13996         link-warning: always build headers with link warnings
13997         * modules/arpa_inet (Makefile.am): Always build replacement
13998         header.
13999         * modules/ctype (Makefile.am): Likewise.
14000         * modules/dirent (Makefile.am): Likewise.
14001         * modules/inttypes (Makefile.am): Likewise.
14002         * modules/langinfo (Makefile.am): Likewise.
14003         * modules/locale (Makefile.am): Likewise.
14004         * modules/spawn (Makefile.am): Likewise.
14005         * modules/sys_file (Makefile.am): Likewise.
14006         * modules/sys_ioctl (Makefile.am): Likewise.
14007         * modules/sys_select (Makefile.am): Likewise.
14008         * modules/sys_socket (Makefile.am): Likewise.
14009         * modules/sys_times (Makefile.am): Likewise.
14010         * modules/sys_utsname (Makefile.am): Likewise.
14011         * modules/sys_wait (Makefile.am): Likewise.
14012         * modules/wchar (Makefile.am): Likewise.
14013         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14014         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14015         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14016         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14017         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14018         Likewise.
14019         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14020         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14021         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14022         Likewise.
14023         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14024         Likewise.
14025         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14026         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14027         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14028         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14029         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14030         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14031         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14032         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14033         (gl_WCHAR_H_DEFAULTS): Likewise.
14034
14035 2009-12-31  Eric Blake  <ebb9@byu.net>
14036
14037         signal, spawn: use link warnings
14038         * lib/signal.in.h (sigset_t): Make unconditional.
14039         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14040         (sigpending, sigprocmask, sigaction): Add link warnings.
14041         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14042         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14043         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14044         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14045         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14046         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14047         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14048         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14049         (posix_spawn_file_actions_destroy)
14050         (posix_spawn_file_actions_addopen)
14051         (posix_spawn_file_actions_addclose)
14052         (posix_spawn_file_actions_adddup2): Likewise.
14053         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14054         * tests/test-signal.c (main): Enhance test.
14055
14056         spawn: improve wrapper support
14057         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14058         (gl_SPAWN_H_DEFAULTS): New defaults.
14059         * modules/spawn (Makefile.am): Substitute them.
14060         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14061         Only declare if missing or broken.
14062
14063         sys_times, sys_utsname: use include_next
14064         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14065         header.
14066         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14067         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14068         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14069         * modules/sys_times (Depends-on): Add include_next.
14070         (Makefile.am): Substitute additional values.
14071         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14072         * lib/sys_times.in.h (includes): Include native header, if
14073         available.
14074         * lib/sys_utsname.in.h (includes): Likewise.
14075         * tests/test-sys_times.c (main): Enhance test.
14076
14077         fdutimensat: revert prior patch
14078         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14079         utimens.h.
14080         Reported by Bruno Haible.
14081
14082 2009-12-30  Eric Blake  <ebb9@byu.net>
14083
14084         sys_wait: drop link-warning dependency
14085         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14086         link-warning efforts.
14087         * lib/sys_wait.in.h: Likewise.
14088
14089         fdutimensat: remove bogus dependency
14090         * modules/fdutimensat (Depends-on): Drop inline.
14091
14092         unistd: fix typo
14093         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14094
14095 2009-12-30  Bruno Haible  <bruno@clisp.org>
14096
14097         Fix compilation error with Solaris cc.
14098         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14099         * lib/unicase/u16-is-invariant.c: Likewise.
14100         * lib/unicase/u32-is-invariant.c: Likewise.
14101         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14102
14103 2009-12-30  Bruno Haible  <bruno@clisp.org>
14104
14105         Fix test crash.
14106         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14107         locales.
14108         Reported by Simon Josefsson <simon@josefsson.org>.
14109
14110 2009-12-30  Bruno Haible  <bruno@clisp.org>
14111
14112         Fix compilation error on most platforms.
14113         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14114         Reported by Simon Josefsson <simon@josefsson.org>
14115         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14116
14117 2009-12-30  Eric Blake  <ebb9@byu.net>
14118
14119         futimens, utimensat: work around ntfs-3g bug
14120         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14121         a ctime bug is present, and expand workaround to cover ntfs-3g.
14122         * lib/utimens.c (fdutimens, lutimens): Likewise.
14123         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14124         (validate_timespec): Adjust return value.
14125         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14126         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14127         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14128
14129 2009-12-29  Eric Blake  <ebb9@byu.net>
14130
14131         link-warning: make usage consistent
14132         * modules/ctype (Depends-on): Add link-warning.
14133         (Makefile.am): Update rules accordingly.
14134         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14135         * modules/locale (Depends-on, Makefile.am): Likewise.
14136         * modules/sys_file (Makefile.am): Likewise.
14137         * modules/getopt-posix (Makefile.am): Delete unused link warning
14138         efforts.
14139         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14140         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14141         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14142         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14143
14144         stdio: remove unused variables
14145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14146         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14147         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14148
14149         tests: test more substitute headers
14150         * modules/ctype-tests: New file.
14151         * modules/dirent-tests: Likewise.
14152         * modules/spawn-tests: Likewise.
14153         * modules/sys_file-tests: Likewise.
14154         * modules/sys_ioctl-tests: Likewise.
14155         * modules/sys_wait-tests: Likewise.
14156         * tests/test-ctype.c: Likewise.
14157         * tests/test-dirent.c: Likewise.
14158         * tests/test-spawn.c: Likewise.
14159         * tests/test-sys_file.c: Likewise.
14160         * tests/test-sys_ioctl.c: Likewise.
14161         * tests/test-sys_wait.c: Likewise.
14162         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14163         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14164         whether or not flock is in use.
14165
14166         tests: remove License section from module
14167         * modules/arpa_inet-tests: Remove unneeded section.
14168         * modules/byteswap-tests: Likewise.
14169         * modules/ceilf-tests: Likewise.
14170         * modules/ceill-tests: Likewise.
14171         * modules/crypto/des-tests: Likewise.
14172         * modules/crypto/gc-arcfour-tests: Likewise.
14173         * modules/crypto/gc-arctwo-tests: Likewise.
14174         * modules/crypto/gc-des-tests: Likewise.
14175         * modules/crypto/gc-hmac-md5-tests: Likewise.
14176         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14177         * modules/crypto/gc-md2-tests: Likewise.
14178         * modules/crypto/gc-md4-tests: Likewise.
14179         * modules/crypto/gc-md5-tests: Likewise.
14180         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14181         * modules/crypto/gc-rijndael-tests: Likewise.
14182         * modules/crypto/gc-sha1-tests: Likewise.
14183         * modules/crypto/gc-tests: Likewise.
14184         * modules/crypto/md2-tests: Likewise.
14185         * modules/crypto/md4-tests: Likewise.
14186         * modules/fcntl-h-tests: Likewise.
14187         * modules/floorf-tests: Likewise.
14188         * modules/floorl-tests: Likewise.
14189         * modules/frexp-nolibm-tests: Likewise.
14190         * modules/frexp-tests: Likewise.
14191         * modules/frexpl-nolibm-tests: Likewise.
14192         * modules/frexpl-tests: Likewise.
14193         * modules/getaddrinfo-tests: Likewise.
14194         * modules/inttypes-tests: Likewise.
14195         * modules/isfinite-tests: Likewise.
14196         * modules/isinf-tests: Likewise.
14197         * modules/ldexpl-tests: Likewise.
14198         * modules/locale-tests: Likewise.
14199         * modules/math-tests: Likewise.
14200         * modules/netdb-tests: Likewise.
14201         * modules/netinet_in-tests: Likewise.
14202         * modules/printf-frexp-tests: Likewise.
14203         * modules/printf-frexpl-tests: Likewise.
14204         * modules/priv-set-tests: Likewise.
14205         * modules/random_r-tests: Likewise.
14206         * modules/round-tests: Likewise.
14207         * modules/roundf-tests: Likewise.
14208         * modules/roundl-tests: Likewise.
14209         * modules/search-tests: Likewise.
14210         * modules/select-tests: Likewise.
14211         * modules/signal-tests: Likewise.
14212         * modules/stdbool-tests: Likewise.
14213         * modules/stddef-tests: Likewise.
14214         * modules/stdint-tests: Likewise.
14215         * modules/stdio-tests: Likewise.
14216         * modules/stdlib-tests: Likewise.
14217         * modules/string-tests: Likewise.
14218         * modules/strings-tests: Likewise.
14219         * modules/sys_select-tests: Likewise.
14220         * modules/sys_socket-tests: Likewise.
14221         * modules/sys_stat-tests: Likewise.
14222         * modules/sys_time-tests: Likewise.
14223         * modules/sys_utsname-tests: Likewise.
14224         * modules/sysexits-tests: Likewise.
14225         * modules/time-tests: Likewise.
14226         * modules/trunc-tests: Likewise.
14227         * modules/truncf-tests: Likewise.
14228         * modules/truncl-tests: Likewise.
14229         * modules/tsearch-tests: Likewise.
14230         * modules/unistd-tests: Likewise.
14231         * modules/wchar-tests: Likewise.
14232         * modules/wctype-tests: Likewise.
14233
14234         tests: fix license on several tests
14235         * tests/test-des.c: Update to GPLv3+.
14236         * tests/test-flock.c: Likewise.
14237         * tests/test-fsync.c: Likewise.
14238         * tests/test-futimens.h: Likewise.
14239         * tests/test-gc-arcfour.c: Likewise.
14240         * tests/test-gc-arctwo.c: Likewise.
14241         * tests/test-gc-des.c: Likewise.
14242         * tests/test-gc-hmac-md5.c: Likewise.
14243         * tests/test-gc-hmac-sha1.c: Likewise.
14244         * tests/test-gc-md2.c: Likewise.
14245         * tests/test-gc-md4.c: Likewise.
14246         * tests/test-gc-md5.c: Likewise.
14247         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14248         * tests/test-gc-rijndael.c: Likewise.
14249         * tests/test-gc-sha1.c: Likewise.
14250         * tests/test-gc.c: Likewise.
14251         * tests/test-getcwd.c: Likewise.
14252         * tests/test-link.c: Likewise.
14253         * tests/test-link.h: Likewise.
14254         * tests/test-lutimens.h: Likewise.
14255         * tests/test-md2.c: Likewise.
14256         * tests/test-md4.c: Likewise.
14257         * tests/test-mkdir.h: Likewise.
14258         * tests/test-rename.c: Likewise.
14259         * tests/test-rename.h: Likewise.
14260         * tests/test-safe-alloc.c: Likewise.
14261         * tests/test-utimens-common.h: Likewise.
14262         * tests/test-utimens.h: Likewise.
14263
14264         maint: sync license texts
14265         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14266         * doc/gpl-3.0.texi: Revert copyright year update.
14267         * doc/lgpl-3.0.texi: Likewise.
14268
14269 2009-12-29  Jim Meyering  <meyering@redhat.com>
14270
14271         update nearly all FSF copyright year lists to include 2009
14272         The files named by the following are exempted:
14273             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14274               test -f "$dst" && { echo "$dst"; continue; }
14275               test -d "$dst" || continue
14276               echo "$dst"/$(basename "$src")
14277             done > exempt
14278             git ls-files tests/unictype >> exempt
14279         In the remaining files, convert to all-interval notation if
14280         - there is already at least one year interval like 2000-2003
14281         - the file is maintained by me
14282         - the file is in lib/uni*/, where that style already prevails
14283         Otherwise, use update-copyright's default.
14284
14285 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14286         and Eric Blake  <ebb9@byu.net>
14287
14288         tests: don't require debug system() to pass
14289         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14290         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14291         * tests/test-unlink.h (test_unlink_func): Likewise.
14292         * tests/test-fstatat.c (main): ...into callers.
14293         * tests/test-lstat.c (main): Likewise.
14294         * tests/test-rmdir.c (main): Likewise.
14295         * tests/test-unlink.c (main): Likewise.
14296         * tests/test-unlinkat.c (main): Likewise.
14297         * tests/test-areadlink-with-size.c (main): Don't require a
14298         debug-only system call to pass, aiding cross-testing to mingw.
14299         * tests/test-areadlink.c (main): Likewise.
14300         * tests/test-areadlinkat-with-size.c (main): Likewise.
14301         * tests/test-areadlinkat.c (main): Likewise.
14302         * tests/test-canonicalize-lgpl.c (main): Likewise.
14303         * tests/test-canonicalize.c (main): Likewise.
14304         * tests/test-chown.c (main): Likewise.
14305         * tests/test-fchownat.c (main): Likewise.
14306         * tests/test-lchown.c (main): Likewise.
14307         * tests/test-fdutimensat.c (main): Likewise.
14308         * tests/test-futimens.c (main): Likewise.
14309         * tests/test-link.c (main): Likewise.
14310         * tests/test-linkat.c (main): Likewise.
14311         * tests/test-mkdir.c (main): Likewise.
14312         * tests/test-mkdirat.c (main): Likewise.
14313         * tests/test-mkfifo.c (main): Likewise.
14314         * tests/test-mkfifoat.c (main): Likewise.
14315         * tests/test-mknod.c (main): Likewise.
14316         * tests/test-readlink.c (main): Likewise.
14317         * tests/test-remove.c (main): Likewise.
14318         * tests/test-rename.c (main): Likewise.
14319         * tests/test-renameat.c (main): Likewise.
14320         * tests/test-symlink.c (main): Likewise.
14321         * tests/test-symlinkat.c (main): Likewise.
14322         * tests/test-utimens.c (main): Likewise.
14323         * tests/test-utimensat.c (main): Likewise.
14324
14325 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14326
14327         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14328         on $(UNUSED_PARAMETER_H) to avoid build failure.
14329
14330 2009-12-28  Jim Meyering  <meyering@redhat.com>
14331
14332         update-copyright: you may specify a max. line length other than 72
14333         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14334
14335         maint: use consistent FSF copyright line syntax
14336         * lib/posixtm.c: Add missing comma in FSF copyright line.
14337         * lib/posixtm.h: Likewise.
14338         * lib/getugroups.c: Add missing ", Inc.".
14339
14340         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14341         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14342         FSF copyright line.  Remove trailing blanks.
14343
14344 2009-12-28  Eric Blake  <ebb9@byu.net>
14345
14346         test-dup2: reduce dependencies
14347         * modules/cloexec (Configure.ac): Set witness.
14348         * modules/dup2-tests (Depends-on): Drop cloexec.
14349         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14350         not present.
14351         Suggested by Bruno Haible.
14352
14353 2009-12-26  Bruno Haible  <bruno@clisp.org>
14354
14355         Remove an unneeded dependency.
14356         * modules/fseterr (Depends-on): Remove dup2.
14357
14358 2009-12-26  Eric Blake  <ebb9@byu.net>
14359
14360         tests: use macros.h in more places
14361         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14362         (ASSERT_STREAM): Provide default of stderr.
14363         * tests/test-dirent-safer.c: Include macros.h, using alternate
14364         stream for assertions.
14365         * tests/test-dup-safer.c: Likewise.
14366         * tests/test-freopen-safer.c: Likewise.
14367         * tests/test-getopt.c: Likewise.
14368         * tests/test-openat-safer.c: Likewise.
14369         * tests/test-pipe.c: Likewise.
14370         * tests/test-popen-safer.c: Likewise.
14371         * modules/dirent-safer-tests (Files): Include macros.h.
14372         * modules/unistd-safer-tests (Files): Likewise.
14373         * modules/freopen-safer-tests (Files): Likewise.
14374         * modules/getopt-posix-tests (Files): Likewise.
14375         * modules/openat-safer-tests (Files): Likewise.
14376         * modules/pipe-tests (Files): Likewise.
14377
14378 2009-12-26  Bruno Haible  <bruno@clisp.org>
14379
14380         javacomp: Portability fix.
14381         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14382         that it also works on Solaris.
14383
14384 2009-12-26  Bruno Haible  <bruno@clisp.org>
14385
14386         localename: Fix storage allocation of gl_locale_name_thread's result.
14387         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14388         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14389         all platforms that have 'uselocale'.
14390         (gl_locale_name_thread_unsafe): New function, extracted from
14391         gl_locale_name_thread.
14392         (gl_locale_name_thread): Call struniq on all platforms that have
14393         'uselocale'.
14394         * tests/test-localename.c (test_locale_name_thread): Check that the
14395         resulting strings are permanently allocated.
14396         * modules/localename-tests (Depends-on): Add strdup.
14397
14398 2009-12-26  Bruno Haible  <bruno@clisp.org>
14399
14400         * tests/test-localename.c (categories): Fill in the strings.
14401
14402 2009-12-26  Jim Meyering  <meyering@redhat.com>
14403
14404         isdir: complete the removal of m4/isdir.m4
14405         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14406
14407         isdir: clean up, since at least grep still uses it
14408         * lib/isdir.c: Include "isdir.h".
14409         (S_ISDIR): Remove now-unneeded definition.
14410         * modules/isdir (Files): Add lib/isdir.h.
14411         * lib/isdir.h: New file, with declaration.
14412         * m4/isdir.m4: Remove file -- unneeded.
14413
14414 2009-12-25  Bruno Haible  <bruno@clisp.org>
14415
14416         selinux-h: Make generated .h files standalone.
14417         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14418         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14419         * lib/se-selinux.in.h: Likewise.
14420         * modules/selinux-h (Depends-on): Add unused-parameter.
14421         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14422         selinux/selinux.h and selinux/context.h.
14423         Suggested by Eric Blake.
14424
14425 2009-12-25  Bruno Haible  <bruno@clisp.org>
14426
14427         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14428         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14429         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14430         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14431         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14432
14433 2009-12-24  Bruno Haible  <bruno@clisp.org>
14434
14435         openat: Fix warning.
14436         * lib/openat-proc.c: Include <unistd.h>.
14437
14438 2009-12-24  Bruno Haible  <bruno@clisp.org>
14439
14440         New module 'unused-parameter'.
14441         * build-aux/unused-parameter.h: New file, extracted from earlier
14442         gnulib-common.m4.
14443         * modules/unused-parameter: New file.
14444         * lib/unistr.h: Include unused-parameter.h.
14445         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14446         _GL_UNUSED.
14447         * modules/unistr/base (Depends-on): Add unused-parameter.
14448
14449 2009-12-24  Bruno Haible  <bruno@clisp.org>
14450
14451         Add missing dependencies to 'extensions' module.
14452         * m4/extensions.m4: Add comment.
14453         * modules/accept4 (Depends-on): Add extensions.
14454         * modules/dup3 (Depends-on): Likewise.
14455         * modules/fcntl (Depends-on): Likewise.
14456         * modules/futimens (Depends-on): Likewise.
14457         * modules/mknod (Depends-on): Likewise.
14458         * modules/pipe2 (Depends-on): Likewise.
14459         * modules/stat-time (Depends-on): Likewise.
14460         * modules/strcasestr-simple (Depends-on): Likewise.
14461         * modules/strsignal (Depends-on): Likewise.
14462         * modules/utimensat (Depends-on): Likewise.
14463         * modules/localcharset (Depends-on): Likewise. Needed because of
14464         gl_FCNTL_O_FLAGS.
14465         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14466         AC_TYPE_MBSTATE_T.
14467         * modules/wcsnrtombs (Depends-on): Likewise.
14468         * modules/wcsrtombs (Depends-on): Likewise.
14469
14470 2009-12-24  Bruno Haible  <bruno@clisp.org>
14471
14472         binary-io: Avoid gcc warning due to SET_BINARY.
14473         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14474         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14475
14476 2009-12-24  Bruno Haible  <bruno@clisp.org>
14477
14478         Avoid future namespace pollution on glibc systems.
14479         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14480         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14481         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14482         glibc systems.
14483
14484 2009-12-24  Bruno Haible  <bruno@clisp.org>
14485
14486         Refactor common macros used in tests.
14487         * tests/macros.h: New file.
14488         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14489         and/or <stdlib.h>, if appropriate.
14490         (ASSERT, SIZEOF): Remove macros.
14491         * tests/test-areadlink-with-size.c: Likewise.
14492         * tests/test-areadlinkat.c: Likewise.
14493         * tests/test-areadlinkat-with-size.c: Likewise.
14494         * tests/test-argmatch.c: Likewise.
14495         * tests/test-argv-iter.c: Likewise.
14496         * tests/test-array-mergesort.c: Likewise.
14497         * tests/test-array_list.c: Likewise.
14498         * tests/test-array_oset.c: Likewise.
14499         * tests/test-avltree_list.c: Likewise.
14500         * tests/test-avltree_oset.c: Likewise.
14501         * tests/test-avltreehash_list.c: Likewise.
14502         * tests/test-base64.c: Likewise.
14503         * tests/test-binary-io.c: Likewise.
14504         * tests/test-bitrotate.c: Likewise.
14505         * tests/test-btowc.c: Likewise.
14506         * tests/test-byteswap.c: Likewise.
14507         * tests/test-c-ctype.c: Likewise.
14508         * tests/test-c-stack.c: Likewise.
14509         * tests/test-c-strcasecmp.c: Likewise.
14510         * tests/test-c-strcasestr.c: Likewise.
14511         * tests/test-c-strncasecmp.c: Likewise.
14512         * tests/test-c-strstr.c: Likewise.
14513         * tests/test-canonicalize-lgpl.c: Likewise.
14514         * tests/test-canonicalize.c: Likewise.
14515         * tests/test-carray_list.c: Likewise.
14516         * tests/test-ceilf1.c: Likewise.
14517         * tests/test-ceilf2.c: Likewise.
14518         * tests/test-ceill.c: Likewise.
14519         * tests/test-chown.c: Likewise.
14520         * tests/test-cloexec.c: Likewise.
14521         * tests/test-copy-acl.c: Likewise.
14522         * tests/test-copy-file.c: Likewise.
14523         * tests/test-count-one-bits.c: Likewise.
14524         * tests/test-dprintf-posix.c: Likewise.
14525         * tests/test-dup2.c: Likewise.
14526         * tests/test-dup3.c: Likewise.
14527         * tests/test-duplocale.c: Likewise.
14528         * tests/test-fbufmode.c: Likewise.
14529         * tests/test-fchdir.c: Likewise.
14530         * tests/test-fchownat.c: Likewise.
14531         * tests/test-fcntl-safer.c: Likewise.
14532         * tests/test-fcntl.c: Likewise.
14533         * tests/test-fdopendir.c: Likewise.
14534         * tests/test-fdutimensat.c: Likewise.
14535         * tests/test-fflush2.c: Likewise.
14536         * tests/test-file-has-acl.c: Likewise.
14537         * tests/test-filevercmp.c: Likewise.
14538         * tests/test-flock.c: Likewise.
14539         * tests/test-floorf1.c: Likewise.
14540         * tests/test-floorf2.c: Likewise.
14541         * tests/test-floorl.c: Likewise.
14542         * tests/test-fnmatch.c: Likewise.
14543         * tests/test-fopen.h: Likewise.
14544         * tests/test-fpending.c: Likewise.
14545         * tests/test-fprintf-posix.c: Likewise.
14546         * tests/test-fpurge.c: Likewise.
14547         * tests/test-freadable.c: Likewise.
14548         * tests/test-freadahead.c: Likewise.
14549         * tests/test-freading.c: Likewise.
14550         * tests/test-freadptr.c: Likewise.
14551         * tests/test-freadptr2.c: Likewise.
14552         * tests/test-freadseek.c: Likewise.
14553         * tests/test-freopen.c: Likewise.
14554         * tests/test-frexp.c: Likewise.
14555         * tests/test-frexpl.c: Likewise.
14556         * tests/test-fseek.c: Likewise.
14557         * tests/test-fseeko.c: Likewise.
14558         * tests/test-fstatat.c: Likewise.
14559         * tests/test-fstrcmp.c: Likewise.
14560         * tests/test-fsync.c: Likewise.
14561         * tests/test-ftell.c: Likewise.
14562         * tests/test-ftello.c: Likewise.
14563         * tests/test-func.c: Likewise.
14564         * tests/test-futimens.c: Likewise.
14565         * tests/test-fwritable.c: Likewise.
14566         * tests/test-fwriting.c: Likewise.
14567         * tests/test-getcwd.c: Likewise.
14568         * tests/test-getdate.c: Likewise.
14569         * tests/test-getdelim.c: Likewise.
14570         * tests/test-getdtablesize.c: Likewise.
14571         * tests/test-getgroups.c: Likewise.
14572         * tests/test-getline.c: Likewise.
14573         * tests/test-getndelim2.c: Likewise.
14574         * tests/test-glob.c: Likewise.
14575         * tests/test-hash.c: Likewise.
14576         * tests/test-i-ring.c: Likewise.
14577         * tests/test-iconv-utf.c: Likewise.
14578         * tests/test-iconv.c: Likewise.
14579         * tests/test-idpriv-drop.c: Likewise.
14580         * tests/test-idpriv-droptemp.c: Likewise.
14581         * tests/test-inet_ntop.c: Likewise.
14582         * tests/test-inet_pton.c: Likewise.
14583         * tests/test-isblank.c: Likewise.
14584         * tests/test-isfinite.c: Likewise.
14585         * tests/test-isinf.c: Likewise.
14586         * tests/test-isnan.c: Likewise.
14587         * tests/test-isnand.h: Likewise.
14588         * tests/test-isnanf.h: Likewise.
14589         * tests/test-isnanl.h: Likewise.
14590         * tests/test-lchown.c: Likewise.
14591         * tests/test-ldexpl.c: Likewise.
14592         * tests/test-link.c: Likewise.
14593         * tests/test-linkat.c: Likewise.
14594         * tests/test-linked_list.c: Likewise.
14595         * tests/test-linkedhash_list.c: Likewise.
14596         * tests/test-localename.c: Likewise.
14597         * tests/test-lseek.c: Likewise.
14598         * tests/test-lstat.c: Likewise.
14599         * tests/test-mbmemcasecmp.c: Likewise.
14600         * tests/test-mbmemcasecoll.c: Likewise.
14601         * tests/test-mbrtowc.c: Likewise.
14602         * tests/test-mbscasecmp.c: Likewise.
14603         * tests/test-mbscasestr1.c: Likewise.
14604         * tests/test-mbscasestr2.c: Likewise.
14605         * tests/test-mbscasestr3.c: Likewise.
14606         * tests/test-mbscasestr4.c: Likewise.
14607         * tests/test-mbschr.c: Likewise.
14608         * tests/test-mbscspn.c: Likewise.
14609         * tests/test-mbsinit.c: Likewise.
14610         * tests/test-mbsncasecmp.c: Likewise.
14611         * tests/test-mbsnrtowcs.c: Likewise.
14612         * tests/test-mbspbrk.c: Likewise.
14613         * tests/test-mbspcasecmp.c: Likewise.
14614         * tests/test-mbsrchr.c: Likewise.
14615         * tests/test-mbsrtowcs.c: Likewise.
14616         * tests/test-mbsspn.c: Likewise.
14617         * tests/test-mbsstr1.c: Likewise.
14618         * tests/test-mbsstr2.c: Likewise.
14619         * tests/test-mbsstr3.c: Likewise.
14620         * tests/test-memchr.c: Likewise.
14621         * tests/test-memchr2.c: Likewise.
14622         * tests/test-memcmp.c: Likewise.
14623         * tests/test-memmem.c: Likewise.
14624         * tests/test-memrchr.c: Likewise.
14625         * tests/test-mkdir.c: Likewise.
14626         * tests/test-mkdirat.c: Likewise.
14627         * tests/test-mkfifo.c: Likewise.
14628         * tests/test-mkfifoat.c: Likewise.
14629         * tests/test-mknod.c: Likewise.
14630         * tests/test-nanosleep.c: Likewise.
14631         * tests/test-nl_langinfo.c: Likewise.
14632         * tests/test-obstack-printf.c: Likewise.
14633         * tests/test-open.c: Likewise.
14634         * tests/test-openat.c: Likewise.
14635         * tests/test-pipe-filter-gi1.c: Likewise.
14636         * tests/test-pipe-filter-gi2-main.c: Likewise.
14637         * tests/test-pipe-filter-ii1.c: Likewise.
14638         * tests/test-pipe-filter-ii2-main.c: Likewise.
14639         * tests/test-pipe2.c: Likewise.
14640         * tests/test-popen.h: Likewise.
14641         * tests/test-posixtm.c: Likewise.
14642         * tests/test-pread.c: Likewise.
14643         * tests/test-printf-frexp.c: Likewise.
14644         * tests/test-printf-frexpl.c: Likewise.
14645         * tests/test-printf-posix.c: Likewise.
14646         * tests/test-priv-set.c: Likewise.
14647         * tests/test-quotearg.c: Likewise.
14648         * tests/test-random_r.c: Likewise.
14649         * tests/test-rawmemchr.c: Likewise.
14650         * tests/test-rbtree_list.c: Likewise.
14651         * tests/test-rbtree_oset.c: Likewise.
14652         * tests/test-rbtreehash_list.c: Likewise.
14653         * tests/test-readlink.c: Likewise.
14654         * tests/test-remove.c: Likewise.
14655         * tests/test-rename.c: Likewise.
14656         * tests/test-renameat.c: Likewise.
14657         * tests/test-rmdir.c: Likewise.
14658         * tests/test-round1.c: Likewise.
14659         * tests/test-roundf1.c: Likewise.
14660         * tests/test-roundl.c: Likewise.
14661         * tests/test-safe-alloc.c: Likewise.
14662         * tests/test-sameacls.c: Likewise.
14663         * tests/test-set-mode-acl.c: Likewise.
14664         * tests/test-setenv.c: Likewise.
14665         * tests/test-sigaction.c: Likewise.
14666         * tests/test-signbit.c: Likewise.
14667         * tests/test-sleep.c: Likewise.
14668         * tests/test-snprintf-posix.c: Likewise.
14669         * tests/test-snprintf.c: Likewise.
14670         * tests/test-sprintf-posix.c: Likewise.
14671         * tests/test-stat-time.c: Likewise.
14672         * tests/test-stat.c: Likewise.
14673         * tests/test-strcasestr.c: Likewise.
14674         * tests/test-strchrnul.c: Likewise.
14675         * tests/test-strerror.c: Likewise.
14676         * tests/test-striconv.c: Likewise.
14677         * tests/test-striconveh.c: Likewise.
14678         * tests/test-striconveha.c: Likewise.
14679         * tests/test-strsignal.c: Likewise.
14680         * tests/test-strstr.c: Likewise.
14681         * tests/test-strtod.c: Likewise.
14682         * tests/test-strverscmp.c: Likewise.
14683         * tests/test-symlink.c: Likewise.
14684         * tests/test-symlinkat.c: Likewise.
14685         * tests/test-trunc1.c: Likewise.
14686         * tests/test-trunc2.c: Likewise.
14687         * tests/test-truncf1.c: Likewise.
14688         * tests/test-truncf2.c: Likewise.
14689         * tests/test-truncl.c: Likewise.
14690         * tests/test-uname.c: Likewise.
14691         * tests/test-unlink.c: Likewise.
14692         * tests/test-unlinkat.c: Likewise.
14693         * tests/test-unsetenv.c: Likewise.
14694         * tests/test-usleep.c: Likewise.
14695         * tests/test-utimens.c: Likewise.
14696         * tests/test-utimensat.c: Likewise.
14697         * tests/test-vasnprintf-posix.c: Likewise.
14698         * tests/test-vasnprintf-posix2.c: Likewise.
14699         * tests/test-vasnprintf.c: Likewise.
14700         * tests/test-vasprintf-posix.c: Likewise.
14701         * tests/test-vasprintf.c: Likewise.
14702         * tests/test-vdprintf-posix.c: Likewise.
14703         * tests/test-vfprintf-posix.c: Likewise.
14704         * tests/test-vprintf-posix.c: Likewise.
14705         * tests/test-vsnprintf-posix.c: Likewise.
14706         * tests/test-vsnprintf.c: Likewise.
14707         * tests/test-vsprintf-posix.c: Likewise.
14708         * tests/test-wcrtomb.c: Likewise.
14709         * tests/test-wcsnrtombs.c: Likewise.
14710         * tests/test-wcsrtombs.c: Likewise.
14711         * tests/test-wctype.c: Likewise.
14712         * tests/test-wcwidth.c: Likewise.
14713         * tests/test-xfprintf-posix.c: Likewise.
14714         * tests/test-xmemdup0.c: Likewise.
14715         * tests/test-xprintf-posix.c: Likewise.
14716         * tests/test-xvasprintf.c: Likewise.
14717         * tests/unicase/test-locale-language.c: Likewise.
14718         * tests/unicase/test-mapping-part1.h: Likewise.
14719         * tests/unicase/test-predicate-part1.h: Likewise.
14720         * tests/unicase/test-u8-casecmp.c: Likewise.
14721         * tests/unicase/test-u8-casecoll.c: Likewise.
14722         * tests/unicase/test-u8-casefold.c: Likewise.
14723         * tests/unicase/test-u8-is-cased.c: Likewise.
14724         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14725         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14726         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14727         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14728         * tests/unicase/test-u8-tolower.c: Likewise.
14729         * tests/unicase/test-u8-totitle.c: Likewise.
14730         * tests/unicase/test-u8-toupper.c: Likewise.
14731         * tests/unicase/test-u16-casecmp.c: Likewise.
14732         * tests/unicase/test-u16-casecoll.c: Likewise.
14733         * tests/unicase/test-u16-casefold.c: Likewise.
14734         * tests/unicase/test-u16-is-cased.c: Likewise.
14735         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14736         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14737         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14738         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14739         * tests/unicase/test-u16-tolower.c: Likewise.
14740         * tests/unicase/test-u16-totitle.c: Likewise.
14741         * tests/unicase/test-u16-toupper.c: Likewise.
14742         * tests/unicase/test-u32-casecmp.c: Likewise.
14743         * tests/unicase/test-u32-casecoll.c: Likewise.
14744         * tests/unicase/test-u32-casefold.c: Likewise.
14745         * tests/unicase/test-u32-is-cased.c: Likewise.
14746         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14747         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14748         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14749         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14750         * tests/unicase/test-u32-tolower.c: Likewise.
14751         * tests/unicase/test-u32-totitle.c: Likewise.
14752         * tests/unicase/test-u32-toupper.c: Likewise.
14753         * tests/unicase/test-ulc-casecmp.c: Likewise.
14754         * tests/unicase/test-ulc-casecoll.c: Likewise.
14755         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14756         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14757         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14758         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14759         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14760         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14761         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14762         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14763         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14764         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14765         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14766         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14767         * tests/unictype/test-bidi_byname.c: Likewise.
14768         * tests/unictype/test-bidi_name.c: Likewise.
14769         * tests/unictype/test-bidi_of.c: Likewise.
14770         * tests/unictype/test-bidi_test.c: Likewise.
14771         * tests/unictype/test-block_list.c: Likewise.
14772         * tests/unictype/test-block_of.c: Likewise.
14773         * tests/unictype/test-block_test.c: Likewise.
14774         * tests/unictype/test-categ_and.c: Likewise.
14775         * tests/unictype/test-categ_and_not.c: Likewise.
14776         * tests/unictype/test-categ_byname.c: Likewise.
14777         * tests/unictype/test-categ_name.c: Likewise.
14778         * tests/unictype/test-categ_none.c: Likewise.
14779         * tests/unictype/test-categ_of.c: Likewise.
14780         * tests/unictype/test-categ_or.c: Likewise.
14781         * tests/unictype/test-categ_test_withtable.c: Likewise.
14782         * tests/unictype/test-combining.c: Likewise.
14783         * tests/unictype/test-decdigit.c: Likewise.
14784         * tests/unictype/test-digit.c: Likewise.
14785         * tests/unictype/test-mirror.c: Likewise.
14786         * tests/unictype/test-numeric.c: Likewise.
14787         * tests/unictype/test-pr_byname.c: Likewise.
14788         * tests/unictype/test-pr_test.c: Likewise.
14789         * tests/unictype/test-predicate-part1.h: Likewise.
14790         * tests/unictype/test-scripts.c: Likewise.
14791         * tests/unictype/test-sy_c_ident.c: Likewise.
14792         * tests/unictype/test-sy_java_ident.c: Likewise.
14793         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14794         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14795         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14796         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14797         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14798         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14799         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14800         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14801         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14802         * tests/uninorm/test-compat-decomposition.c: Likewise.
14803         * tests/uninorm/test-composition.c: Likewise.
14804         * tests/uninorm/test-decomposing-form.c: Likewise.
14805         * tests/uninorm/test-decomposition.c: Likewise.
14806         * tests/uninorm/test-u8-nfc.c: Likewise.
14807         * tests/uninorm/test-u8-nfd.c: Likewise.
14808         * tests/uninorm/test-u8-nfkc.c: Likewise.
14809         * tests/uninorm/test-u8-nfkd.c: Likewise.
14810         * tests/uninorm/test-u8-normcmp.c: Likewise.
14811         * tests/uninorm/test-u8-normcoll.c: Likewise.
14812         * tests/uninorm/test-u16-nfc.c: Likewise.
14813         * tests/uninorm/test-u16-nfd.c: Likewise.
14814         * tests/uninorm/test-u16-nfkc.c: Likewise.
14815         * tests/uninorm/test-u16-nfkd.c: Likewise.
14816         * tests/uninorm/test-u16-normcmp.c: Likewise.
14817         * tests/uninorm/test-u16-normcoll.c: Likewise.
14818         * tests/uninorm/test-u32-nfc.c: Likewise.
14819         * tests/uninorm/test-u32-nfd.c: Likewise.
14820         * tests/uninorm/test-u32-nfkc.c: Likewise.
14821         * tests/uninorm/test-u32-nfkd.c: Likewise.
14822         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14823         * tests/uninorm/test-u32-normcmp.c: Likewise.
14824         * tests/uninorm/test-u32-normcoll.c: Likewise.
14825         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14826         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14827         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14828         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14829         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14830         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14831         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14832         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14833         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14834         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14835         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14836         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14837         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14838         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14839         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14840         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14841         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14842         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14843         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14844         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14845         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14846         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14847         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14848         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14849         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14850         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14851         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14852         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14853         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14854         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14855         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14856         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14857         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14858         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14859         * tests/uniwidth/test-u8-width.c: Likewise.
14860         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14861         * tests/uniwidth/test-u16-width.c: Likewise.
14862         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14863         * tests/uniwidth/test-u32-width.c: Likewise.
14864         * tests/uniwidth/test-uc_width.c: Likewise.
14865         * tests/uniwidth/test-uc_width2.c: Likewise.
14866         * modules/acl-tests (Files): Add tests/macros.h.
14867         * modules/areadlink-tests (Files): Likewise.
14868         * modules/areadlink-with-size-tests (Files): Likewise.
14869         * modules/areadlinkat-tests (Files): Likewise.
14870         * modules/areadlinkat-with-size-tests (Files): Likewise.
14871         * modules/argmatch-tests (Files): Likewise.
14872         * modules/argv-iter-tests (Files): Likewise.
14873         * modules/array-list-tests (Files): Likewise.
14874         * modules/array-mergesort-tests (Files): Likewise.
14875         * modules/array-oset-tests (Files): Likewise.
14876         * modules/avltree-list-tests (Files): Likewise.
14877         * modules/avltree-oset-tests (Files): Likewise.
14878         * modules/avltreehash-list-tests (Files): Likewise.
14879         * modules/base64-tests (Files): Likewise.
14880         * modules/binary-io-tests (Files): Likewise.
14881         * modules/bitrotate-tests (Files): Likewise.
14882         * modules/btowc-tests (Files): Likewise.
14883         * modules/byteswap-tests (Files): Likewise.
14884         * modules/c-ctype-tests (Files): Likewise.
14885         * modules/c-stack-tests (Files): Likewise.
14886         * modules/c-strcase-tests (Files): Likewise.
14887         * modules/c-strcasestr-tests (Files): Likewise.
14888         * modules/c-strstr-tests (Files): Likewise.
14889         * modules/canonicalize-lgpl-tests (Files): Likewise.
14890         * modules/canonicalize-tests (Files): Likewise.
14891         * modules/carray-list-tests (Files): Likewise.
14892         * modules/ceilf-tests (Files): Likewise.
14893         * modules/ceill-tests (Files): Likewise.
14894         * modules/chown-tests (Files): Likewise.
14895         * modules/cloexec-tests (Files): Likewise.
14896         * modules/copy-file-tests (Files): Likewise.
14897         * modules/count-one-bits-tests (Files): Likewise.
14898         * modules/dprintf-posix-tests (Files): Likewise.
14899         * modules/dup2-tests (Files): Likewise.
14900         * modules/dup3-tests (Files): Likewise.
14901         * modules/duplocale-tests (Files): Likewise.
14902         * modules/fbufmode-tests (Files): Likewise.
14903         * modules/fchdir-tests (Files): Likewise.
14904         * modules/fcntl-safer-tests (Files): Likewise.
14905         * modules/fcntl-tests (Files): Likewise.
14906         * modules/fdopendir-tests (Files): Likewise.
14907         * modules/fdutimensat-tests (Files): Likewise.
14908         * modules/fflush-tests (Files): Likewise.
14909         * modules/filevercmp-tests (Files): Likewise.
14910         * modules/flock-tests (Files): Likewise.
14911         * modules/floorf-tests (Files): Likewise.
14912         * modules/floorl-tests (Files): Likewise.
14913         * modules/fnmatch-tests (Files): Likewise.
14914         * modules/fopen-safer-tests (Files): Likewise.
14915         * modules/fopen-tests (Files): Likewise.
14916         * modules/fpending-tests (Files): Likewise.
14917         * modules/fprintf-posix-tests (Files): Likewise.
14918         * modules/fpurge-tests (Files): Likewise.
14919         * modules/freadable-tests (Files): Likewise.
14920         * modules/freadahead-tests (Files): Likewise.
14921         * modules/freading-tests (Files): Likewise.
14922         * modules/freadptr-tests (Files): Likewise.
14923         * modules/freadseek-tests (Files): Likewise.
14924         * modules/freopen-tests (Files): Likewise.
14925         * modules/frexp-nolibm-tests (Files): Likewise.
14926         * modules/frexp-tests (Files): Likewise.
14927         * modules/frexpl-nolibm-tests (Files): Likewise.
14928         * modules/frexpl-tests (Files): Likewise.
14929         * modules/fseek-tests (Files): Likewise.
14930         * modules/fseeko-tests (Files): Likewise.
14931         * modules/fstrcmp-tests (Files): Likewise.
14932         * modules/fsync-tests (Files): Likewise.
14933         * modules/ftell-tests (Files): Likewise.
14934         * modules/ftello-tests (Files): Likewise.
14935         * modules/func-tests (Files): Likewise.
14936         * modules/futimens-tests (Files): Likewise.
14937         * modules/fwritable-tests (Files): Likewise.
14938         * modules/fwriting-tests (Files): Likewise.
14939         * modules/getcwd-tests (Files): Likewise.
14940         * modules/getdate-tests (Files): Likewise.
14941         * modules/getdelim-tests (Files): Likewise.
14942         * modules/getdtablesize-tests (Files): Likewise.
14943         * modules/getgroups-tests (Files): Likewise.
14944         * modules/getline-tests (Files): Likewise.
14945         * modules/getndelim2-tests (Files): Likewise.
14946         * modules/glob-tests (Files): Likewise.
14947         * modules/hash-tests (Files): Likewise.
14948         * modules/i-ring-tests (Files): Likewise.
14949         * modules/iconv-tests (Files): Likewise.
14950         * modules/iconv_open-utf-tests (Files): Likewise.
14951         * modules/idpriv-drop-tests (Files): Likewise.
14952         * modules/idpriv-droptemp-tests (Files): Likewise.
14953         * modules/inet_ntop-tests (Files): Likewise.
14954         * modules/inet_pton-tests (Files): Likewise.
14955         * modules/isblank-tests (Files): Likewise.
14956         * modules/isfinite-tests (Files): Likewise.
14957         * modules/isinf-tests (Files): Likewise.
14958         * modules/isnan-tests (Files): Likewise.
14959         * modules/isnand-nolibm-tests (Files): Likewise.
14960         * modules/isnand-tests (Files): Likewise.
14961         * modules/isnanf-nolibm-tests (Files): Likewise.
14962         * modules/isnanf-tests (Files): Likewise.
14963         * modules/isnanl-nolibm-tests (Files): Likewise.
14964         * modules/isnanl-tests (Files): Likewise.
14965         * modules/lchown-tests (Files): Likewise.
14966         * modules/ldexpl-tests (Files): Likewise.
14967         * modules/link-tests (Files): Likewise.
14968         * modules/linkat-tests (Files): Likewise.
14969         * modules/linked-list-tests (Files): Likewise.
14970         * modules/linkedhash-list-tests (Files): Likewise.
14971         * modules/localename-tests (Files): Likewise.
14972         * modules/lseek-tests (Files): Likewise.
14973         * modules/lstat-tests (Files): Likewise.
14974         * modules/mbmemcasecmp-tests (Files): Likewise.
14975         * modules/mbmemcasecoll-tests (Files): Likewise.
14976         * modules/mbrtowc-tests (Files): Likewise.
14977         * modules/mbscasecmp-tests (Files): Likewise.
14978         * modules/mbscasestr-tests (Files): Likewise.
14979         * modules/mbschr-tests (Files): Likewise.
14980         * modules/mbscspn-tests (Files): Likewise.
14981         * modules/mbsinit-tests (Files): Likewise.
14982         * modules/mbsncasecmp-tests (Files): Likewise.
14983         * modules/mbsnrtowcs-tests (Files): Likewise.
14984         * modules/mbspbrk-tests (Files): Likewise.
14985         * modules/mbspcasecmp-tests (Files): Likewise.
14986         * modules/mbsrchr-tests (Files): Likewise.
14987         * modules/mbsrtowcs-tests (Files): Likewise.
14988         * modules/mbsspn-tests (Files): Likewise.
14989         * modules/mbsstr-tests (Files): Likewise.
14990         * modules/memchr-tests (Files): Likewise.
14991         * modules/memchr2-tests (Files): Likewise.
14992         * modules/memcmp-tests (Files): Likewise.
14993         * modules/memmem-tests (Files): Likewise.
14994         * modules/memrchr-tests (Files): Likewise.
14995         * modules/mkdir-tests (Files): Likewise.
14996         * modules/mkfifo-tests (Files): Likewise.
14997         * modules/mkfifoat-tests (Files): Likewise.
14998         * modules/mknod-tests (Files): Likewise.
14999         * modules/nanosleep-tests (Files): Likewise.
15000         * modules/nl_langinfo-tests (Files): Likewise.
15001         * modules/obstack-printf-tests (Files): Likewise.
15002         * modules/open-tests (Files): Likewise.
15003         * modules/openat-tests (Files): Likewise.
15004         * modules/pipe-filter-gi-tests (Files): Likewise.
15005         * modules/pipe-filter-ii-tests (Files): Likewise.
15006         * modules/pipe2-tests (Files): Likewise.
15007         * modules/popen-safer-tests (Files): Likewise.
15008         * modules/popen-tests (Files): Likewise.
15009         * modules/posixtm-tests (Files): Likewise.
15010         * modules/pread-tests (Files): Likewise.
15011         * modules/printf-frexp-tests (Files): Likewise.
15012         * modules/printf-frexpl-tests (Files): Likewise.
15013         * modules/printf-posix-tests (Files): Likewise.
15014         * modules/priv-set-tests (Files): Likewise.
15015         * modules/quotearg-tests (Files): Likewise.
15016         * modules/random_r-tests (Files): Likewise.
15017         * modules/rawmemchr-tests (Files): Likewise.
15018         * modules/rbtree-list-tests (Files): Likewise.
15019         * modules/rbtree-oset-tests (Files): Likewise.
15020         * modules/rbtreehash-list-tests (Files): Likewise.
15021         * modules/readlink-tests (Files): Likewise.
15022         * modules/remove-tests (Files): Likewise.
15023         * modules/rename-tests (Files): Likewise.
15024         * modules/renameat-tests (Files): Likewise.
15025         * modules/rmdir-tests (Files): Likewise.
15026         * modules/round-tests (Files): Likewise.
15027         * modules/roundf-tests (Files): Likewise.
15028         * modules/roundl-tests (Files): Likewise.
15029         * modules/safe-alloc-tests (Files): Likewise.
15030         * modules/setenv-tests (Files): Likewise.
15031         * modules/sigaction-tests (Files): Likewise.
15032         * modules/signbit-tests (Files): Likewise.
15033         * modules/sleep-tests (Files): Likewise.
15034         * modules/snprintf-posix-tests (Files): Likewise.
15035         * modules/snprintf-tests (Files): Likewise.
15036         * modules/sprintf-posix-tests (Files): Likewise.
15037         * modules/stat-tests (Files): Likewise.
15038         * modules/stat-time-tests (Files): Likewise.
15039         * modules/strcasestr-tests (Files): Likewise.
15040         * modules/strchrnul-tests (Files): Likewise.
15041         * modules/strerror-tests (Files): Likewise.
15042         * modules/striconv-tests (Files): Likewise.
15043         * modules/striconveh-tests (Files): Likewise.
15044         * modules/striconveha-tests (Files): Likewise.
15045         * modules/strsignal-tests (Files): Likewise.
15046         * modules/strstr-tests (Files): Likewise.
15047         * modules/strtod-tests (Files): Likewise.
15048         * modules/strverscmp-tests (Files): Likewise.
15049         * modules/symlink-tests (Files): Likewise.
15050         * modules/symlinkat-tests (Files): Likewise.
15051         * modules/trunc-tests (Files): Likewise.
15052         * modules/truncf-tests (Files): Likewise.
15053         * modules/truncl-tests (Files): Likewise.
15054         * modules/uname-tests (Files): Likewise.
15055         * modules/unicase/cased-tests (Files): Likewise.
15056         * modules/unicase/ignorable-tests (Files): Likewise.
15057         * modules/unicase/locale-language-tests (Files): Likewise.
15058         * modules/unicase/tolower-tests (Files): Likewise.
15059         * modules/unicase/totitle-tests (Files): Likewise.
15060         * modules/unicase/toupper-tests (Files): Likewise.
15061         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15062         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15063         * modules/unicase/u8-casefold-tests (Files): Likewise.
15064         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15065         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15066         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15067         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15068         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15069         * modules/unicase/u8-tolower-tests (Files): Likewise.
15070         * modules/unicase/u8-totitle-tests (Files): Likewise.
15071         * modules/unicase/u8-toupper-tests (Files): Likewise.
15072         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15073         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15074         * modules/unicase/u16-casefold-tests (Files): Likewise.
15075         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15076         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15077         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15078         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15079         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15080         * modules/unicase/u16-tolower-tests (Files): Likewise.
15081         * modules/unicase/u16-totitle-tests (Files): Likewise.
15082         * modules/unicase/u16-toupper-tests (Files): Likewise.
15083         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15084         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15085         * modules/unicase/u32-casefold-tests (Files): Likewise.
15086         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15087         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15088         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15089         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15090         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15091         * modules/unicase/u32-tolower-tests (Files): Likewise.
15092         * modules/unicase/u32-totitle-tests (Files): Likewise.
15093         * modules/unicase/u32-toupper-tests (Files): Likewise.
15094         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15095         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15096         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15097         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15098         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15099         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15100         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15101         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15102         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15103         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15104         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15105         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15106         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15107         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15108         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15109         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15110         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15111         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15112         * modules/unictype/block-list-tests (Files): Likewise.
15113         * modules/unictype/block-of-tests (Files): Likewise.
15114         * modules/unictype/block-test-tests (Files): Likewise.
15115         * modules/unictype/category-C-tests (Files): Likewise.
15116         * modules/unictype/category-Cc-tests (Files): Likewise.
15117         * modules/unictype/category-Cf-tests (Files): Likewise.
15118         * modules/unictype/category-Cn-tests (Files): Likewise.
15119         * modules/unictype/category-Co-tests (Files): Likewise.
15120         * modules/unictype/category-Cs-tests (Files): Likewise.
15121         * modules/unictype/category-L-tests (Files): Likewise.
15122         * modules/unictype/category-Ll-tests (Files): Likewise.
15123         * modules/unictype/category-Lm-tests (Files): Likewise.
15124         * modules/unictype/category-Lo-tests (Files): Likewise.
15125         * modules/unictype/category-Lt-tests (Files): Likewise.
15126         * modules/unictype/category-Lu-tests (Files): Likewise.
15127         * modules/unictype/category-M-tests (Files): Likewise.
15128         * modules/unictype/category-Mc-tests (Files): Likewise.
15129         * modules/unictype/category-Me-tests (Files): Likewise.
15130         * modules/unictype/category-Mn-tests (Files): Likewise.
15131         * modules/unictype/category-N-tests (Files): Likewise.
15132         * modules/unictype/category-Nd-tests (Files): Likewise.
15133         * modules/unictype/category-Nl-tests (Files): Likewise.
15134         * modules/unictype/category-No-tests (Files): Likewise.
15135         * modules/unictype/category-P-tests (Files): Likewise.
15136         * modules/unictype/category-Pc-tests (Files): Likewise.
15137         * modules/unictype/category-Pd-tests (Files): Likewise.
15138         * modules/unictype/category-Pe-tests (Files): Likewise.
15139         * modules/unictype/category-Pf-tests (Files): Likewise.
15140         * modules/unictype/category-Pi-tests (Files): Likewise.
15141         * modules/unictype/category-Po-tests (Files): Likewise.
15142         * modules/unictype/category-Ps-tests (Files): Likewise.
15143         * modules/unictype/category-S-tests (Files): Likewise.
15144         * modules/unictype/category-Sc-tests (Files): Likewise.
15145         * modules/unictype/category-Sk-tests (Files): Likewise.
15146         * modules/unictype/category-Sm-tests (Files): Likewise.
15147         * modules/unictype/category-So-tests (Files): Likewise.
15148         * modules/unictype/category-Z-tests (Files): Likewise.
15149         * modules/unictype/category-Zl-tests (Files): Likewise.
15150         * modules/unictype/category-Zp-tests (Files): Likewise.
15151         * modules/unictype/category-Zs-tests (Files): Likewise.
15152         * modules/unictype/category-and-not-tests (Files): Likewise.
15153         * modules/unictype/category-and-tests (Files): Likewise.
15154         * modules/unictype/category-byname-tests (Files): Likewise.
15155         * modules/unictype/category-name-tests (Files): Likewise.
15156         * modules/unictype/category-none-tests (Files): Likewise.
15157         * modules/unictype/category-of-tests (Files): Likewise.
15158         * modules/unictype/category-or-tests (Files): Likewise.
15159         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15160         * modules/unictype/combining-class-tests (Files): Likewise.
15161         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15162         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15163         * modules/unictype/ctype-blank-tests (Files): Likewise.
15164         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15165         * modules/unictype/ctype-digit-tests (Files): Likewise.
15166         * modules/unictype/ctype-graph-tests (Files): Likewise.
15167         * modules/unictype/ctype-lower-tests (Files): Likewise.
15168         * modules/unictype/ctype-print-tests (Files): Likewise.
15169         * modules/unictype/ctype-punct-tests (Files): Likewise.
15170         * modules/unictype/ctype-space-tests (Files): Likewise.
15171         * modules/unictype/ctype-upper-tests (Files): Likewise.
15172         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15173         * modules/unictype/decimal-digit-tests (Files): Likewise.
15174         * modules/unictype/digit-tests (Files): Likewise.
15175         * modules/unictype/mirror-tests (Files): Likewise.
15176         * modules/unictype/numeric-tests (Files): Likewise.
15177         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15178         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15179         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15180         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15181         Likewise.
15182         * modules/unictype/property-bidi-block-separator-tests (Files):
15183         Likewise.
15184         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15185         Likewise.
15186         * modules/unictype/property-bidi-common-separator-tests (Files):
15187         Likewise.
15188         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15189         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15190         Likewise.
15191         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15192         Likewise.
15193         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15194         Likewise.
15195         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15196         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15197         Likewise.
15198         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15199         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15200         Likewise.
15201         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15202         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15203         * modules/unictype/property-bidi-segment-separator-tests (Files):
15204         Likewise.
15205         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15206         * modules/unictype/property-byname-tests (Files): Likewise.
15207         * modules/unictype/property-combining-tests (Files): Likewise.
15208         * modules/unictype/property-composite-tests (Files): Likewise.
15209         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15210         * modules/unictype/property-dash-tests (Files): Likewise.
15211         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15212         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15213         Likewise.
15214         * modules/unictype/property-deprecated-tests (Files): Likewise.
15215         * modules/unictype/property-diacritic-tests (Files): Likewise.
15216         * modules/unictype/property-extender-tests (Files): Likewise.
15217         * modules/unictype/property-format-control-tests (Files): Likewise.
15218         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15219         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15220         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15221         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15222         * modules/unictype/property-hyphen-tests (Files): Likewise.
15223         * modules/unictype/property-id-continue-tests (Files): Likewise.
15224         * modules/unictype/property-id-start-tests (Files): Likewise.
15225         * modules/unictype/property-ideographic-tests (Files): Likewise.
15226         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15227         * modules/unictype/property-ids-trinary-operator-tests (Files):
15228         Likewise.
15229         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15230         * modules/unictype/property-iso-control-tests (Files): Likewise.
15231         * modules/unictype/property-join-control-tests (Files): Likewise.
15232         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15233         * modules/unictype/property-line-separator-tests (Files): Likewise.
15234         * modules/unictype/property-logical-order-exception-tests (Files):
15235         Likewise.
15236         * modules/unictype/property-lowercase-tests (Files): Likewise.
15237         * modules/unictype/property-math-tests (Files): Likewise.
15238         * modules/unictype/property-non-break-tests (Files): Likewise.
15239         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15240         * modules/unictype/property-numeric-tests (Files): Likewise.
15241         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15242         * modules/unictype/property-other-default-ignorable-code-point-tests
15243         (Files): Likewise.
15244         * modules/unictype/property-other-grapheme-extend-tests (Files):
15245         Likewise.
15246         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15247         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15248         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15249         * modules/unictype/property-other-math-tests (Files): Likewise.
15250         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15251         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15252         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15253         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15254         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15255         * modules/unictype/property-private-use-tests (Files): Likewise.
15256         * modules/unictype/property-punctuation-tests (Files): Likewise.
15257         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15258         * modules/unictype/property-radical-tests (Files): Likewise.
15259         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15260         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15261         * modules/unictype/property-space-tests (Files): Likewise.
15262         * modules/unictype/property-terminal-punctuation-tests (Files):
15263         Likewise.
15264         * modules/unictype/property-test-tests (Files): Likewise.
15265         * modules/unictype/property-titlecase-tests (Files): Likewise.
15266         * modules/unictype/property-unassigned-code-value-tests (Files):
15267         Likewise.
15268         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15269         * modules/unictype/property-uppercase-tests (Files): Likewise.
15270         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15271         * modules/unictype/property-white-space-tests (Files): Likewise.
15272         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15273         * modules/unictype/property-xid-start-tests (Files): Likewise.
15274         * modules/unictype/property-zero-width-tests (Files): Likewise.
15275         * modules/unictype/scripts-tests (Files): Likewise.
15276         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15277         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15278         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15279         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15280         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15281         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15282         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15283         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15284         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15285         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15286         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15287         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15288         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15289         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15290         * modules/uninorm/composition-tests (Files): Likewise.
15291         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15292         * modules/uninorm/decomposition-tests (Files): Likewise.
15293         * modules/uninorm/filter-tests (Files): Likewise.
15294         * modules/uninorm/nfc-tests (Files): Likewise.
15295         * modules/uninorm/nfd-tests (Files): Likewise.
15296         * modules/uninorm/nfkc-tests (Files): Likewise.
15297         * modules/uninorm/nfkd-tests (Files): Likewise.
15298         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15299         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15300         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15301         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15302         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15303         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15304         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15305         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15306         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15307         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15308         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15309         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15310         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15311         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15312         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15313         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15314         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15315         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15316         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15317         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15318         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15319         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15320         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15321         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15322         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15323         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15324         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15325         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15326         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15327         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15328         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15329         * modules/uniwidth/u8-width-tests (Files): Likewise.
15330         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15331         * modules/uniwidth/u16-width-tests (Files): Likewise.
15332         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15333         * modules/uniwidth/u32-width-tests (Files): Likewise.
15334         * modules/uniwidth/width-tests (Files): Likewise.
15335         * modules/unlink-tests (Files): Likewise.
15336         * modules/unsetenv-tests (Files): Likewise.
15337         * modules/usleep-tests (Files): Likewise.
15338         * modules/utimens-tests (Files): Likewise.
15339         * modules/utimensat-tests (Files): Likewise.
15340         * modules/vasnprintf-posix-tests (Files): Likewise.
15341         * modules/vasnprintf-tests (Files): Likewise.
15342         * modules/vasprintf-posix-tests (Files): Likewise.
15343         * modules/vasprintf-tests (Files): Likewise.
15344         * modules/vdprintf-posix-tests (Files): Likewise.
15345         * modules/vfprintf-posix-tests (Files): Likewise.
15346         * modules/vprintf-posix-tests (Files): Likewise.
15347         * modules/vsnprintf-posix-tests (Files): Likewise.
15348         * modules/vsnprintf-tests (Files): Likewise.
15349         * modules/vsprintf-posix-tests (Files): Likewise.
15350         * modules/wcrtomb-tests (Files): Likewise.
15351         * modules/wcsnrtombs-tests (Files): Likewise.
15352         * modules/wcsrtombs-tests (Files): Likewise.
15353         * modules/wctype-tests (Files): Likewise.
15354         * modules/wcwidth-tests (Files): Likewise.
15355         * modules/xmemdup0-tests (Files): Likewise.
15356         * modules/xprintf-posix-tests (Files): Likewise.
15357         * modules/xvasprintf-tests (Files): Likewise.
15358
15359 2009-12-24  Eric Blake  <ebb9@byu.net>
15360
15361         test-nanosleep: fix typo
15362         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15363         patch.
15364         Reported by Bruno Haible.
15365
15366 2009-12-24  Bruno Haible  <bruno@clisp.org>
15367
15368         Reduce namespace pollution on glibc systems.
15369         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15370         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15371         systems.
15372         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15373         <getopt.h> on glibc systems.
15374         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15375         systems.
15376         * lib/fcntl.c: Include <unistd.h> here instead.
15377
15378 2009-12-24  Bruno Haible  <bruno@clisp.org>
15379
15380         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15381
15382 2009-12-24  Eric Blake  <ebb9@byu.net>
15383
15384         tests: add signature checks
15385         * tests/signature.h (SIGNATURE_CHECK): New file.
15386         * modules/atexit-tests (Files): Use it.
15387         * modules/btowc-tests (Files): Likewise.
15388         * modules/canonicalize-lgpl-tests (Files): Likewise.
15389         * modules/ceilf-tests (Files): Likewise.
15390         * modules/ceill-tests (Files): Likewise.
15391         * modules/chown-tests (Files): Likewise.
15392         * modules/dprintf-posix-tests (Files): Likewise.
15393         * modules/dup2-tests (Files): Likewise.
15394         * modules/dup3-tests (Files): Likewise.
15395         * modules/duplocale-tests (Files): Likewise.
15396         * modules/fchdir-tests (Files): Likewise.
15397         * modules/fcntl-tests (Files): Likewise.
15398         * modules/fdopendir-tests (Files): Likewise.
15399         * modules/fflush-tests (Files): Likewise.
15400         * modules/flock-tests (Files): Likewise.
15401         * modules/floorf-tests (Files): Likewise.
15402         * modules/floorl-tests (Files): Likewise.
15403         * modules/fnmatch-tests (Files): Likewise.
15404         * modules/fopen-tests (Files): Likewise.
15405         * modules/fprintf-posix-tests (Files): Likewise.
15406         * modules/freopen-tests (Files): Likewise.
15407         * modules/frexp-nolibm-tests (Files): Likewise.
15408         * modules/frexp-tests (Files): Likewise.
15409         * modules/frexpl-nolibm-tests (Files): Likewise.
15410         * modules/frexpl-tests (Files): Likewise.
15411         * modules/fseek-tests (Files): Likewise.
15412         * modules/fseeko-tests (Files): Likewise.
15413         * modules/fsync-tests (Files): Likewise.
15414         * modules/ftell-tests (Files): Likewise.
15415         * modules/ftello-tests (Files): Likewise.
15416         * modules/futimens-tests (Files): Likewise.
15417         * modules/getaddrinfo-tests (Files): Likewise.
15418         * modules/getcwd-tests (Files): Likewise.
15419         * modules/getdelim-tests (Files): Likewise.
15420         * modules/getdtablesize-tests (Files): Likewise.
15421         * modules/getgroups-tests (Files): Likewise.
15422         * modules/gethostname-tests (Files): Likewise.
15423         * modules/getline-tests (Files): Likewise.
15424         * modules/getopt-posix-tests (Files): Likewise.
15425         * modules/gettimeofday-tests (Files): Likewise.
15426         * modules/glob-tests (Files): Likewise.
15427         * modules/iconv-tests (Files): Likewise.
15428         * modules/inet_ntop-tests (Files): Likewise.
15429         * modules/inet_pton-tests (Files): Likewise.
15430         * modules/isblank-tests (Files): Likewise.
15431         * modules/lchown-tests (Files): Likewise.
15432         * modules/ldexpl-tests (Files): Likewise.
15433         * modules/link-tests (Files): Likewise.
15434         * modules/linkat-tests (Files): Likewise.
15435         * modules/lseek-tests (Files): Likewise.
15436         * modules/lstat-tests (Files): Likewise.
15437         * modules/mbrtowc-tests (Files): Likewise.
15438         * modules/mbsinit-tests (Files): Likewise.
15439         * modules/mbsnrtowcs-tests (Files): Likewise.
15440         * modules/mbsrtowcs-tests (Files): Likewise.
15441         * modules/memchr-tests (Files): Likewise.
15442         * modules/memcmp-tests (Files): Likewise.
15443         * modules/memmem-tests (Files): Likewise.
15444         * modules/memrchr-tests (Files): Likewise.
15445         * modules/mkdir-tests (Files): Likewise.
15446         * modules/mkfifo-tests (Files): Likewise.
15447         * modules/mkfifoat-tests (Files): Likewise.
15448         * modules/mknod-tests (Files): Likewise.
15449         * modules/nanosleep-tests (Files): Likewise.
15450         * modules/nl_langinfo-tests (Files): Likewise.
15451         * modules/obstack-printf-tests (Files): Likewise.
15452         * modules/open-tests (Files): Likewise.
15453         * modules/openat-tests (Files): Likewise.
15454         * modules/perror-tests (Files): Likewise.
15455         * modules/pipe2-tests (Files): Likewise.
15456         * modules/poll-tests (Files): Likewise.
15457         * modules/popen-tests (Files): Likewise.
15458         * modules/posix_spawn-tests (Files): Likewise.
15459         * modules/posix_spawnp-tests (Files): Likewise.
15460         * modules/pread-tests (Files): Likewise.
15461         * modules/printf-posix-tests (Files): Likewise.
15462         * modules/pty-tests (Files): Likewise.
15463         * modules/random_r-tests (Files): Likewise.
15464         * modules/rawmemchr-tests (Files): Likewise.
15465         * modules/readlink-tests (Files): Likewise.
15466         * modules/remove-tests (Files): Likewise.
15467         * modules/rename-tests (Files): Likewise.
15468         * modules/renameat-tests (Files): Likewise.
15469         * modules/rmdir-tests (Files): Likewise.
15470         * modules/round-tests (Files): Likewise.
15471         * modules/roundf-tests (Files): Likewise.
15472         * modules/roundl-tests (Files): Likewise.
15473         * modules/select-tests (Files): Likewise.
15474         * modules/setenv-tests (Files): Likewise.
15475         * modules/sigaction-tests (Files): Likewise.
15476         * modules/sleep-tests (Files): Likewise.
15477         * modules/snprintf-posix-tests (Files): Likewise.
15478         * modules/snprintf-tests (Files): Likewise.
15479         * modules/sprintf-posix-tests (Files): Likewise.
15480         * modules/stat-tests (Files): Likewise.
15481         * modules/strcasestr-tests (Files): Likewise.
15482         * modules/strchrnul-tests (Files): Likewise.
15483         * modules/strerror-tests (Files): Likewise.
15484         * modules/strsignal-tests (Files): Likewise.
15485         * modules/strstr-tests (Files): Likewise.
15486         * modules/strtod-tests (Files): Likewise.
15487         * modules/strverscmp-tests (Files): Likewise.
15488         * modules/symlink-tests (Files): Likewise.
15489         * modules/symlinkat-tests (Files): Likewise.
15490         * modules/times-tests (Files): Likewise.
15491         * modules/trunc-tests (Files): Likewise.
15492         * modules/truncf-tests (Files): Likewise.
15493         * modules/truncl-tests (Files): Likewise.
15494         * modules/tsearch-tests (Files): Likewise.
15495         * modules/uname-tests (Files): Likewise.
15496         * modules/unlink-tests (Files): Likewise.
15497         * modules/unsetenv-tests (Files): Likewise.
15498         * modules/usleep-tests (Files): Likewise.
15499         * modules/utimensat-tests (Files): Likewise.
15500         * modules/vasprintf-tests (Files): Likewise.
15501         * modules/vdprintf-posix-tests (Files): Likewise.
15502         * modules/vfprintf-posix-tests (Files): Likewise.
15503         * modules/vprintf-posix-tests (Files): Likewise.
15504         * modules/vsnprintf-posix-tests (Files): Likewise.
15505         * modules/vsnprintf-tests (Files): Likewise.
15506         * modules/vsprintf-posix-tests (Files): Likewise.
15507         * modules/wcrtomb-tests (Files): Likewise.
15508         * modules/wcsnrtombs-tests (Files): Likewise.
15509         * modules/wcsrtombs-tests (Files): Likewise.
15510         * modules/wcwidth-tests (Files): Likewise.
15511         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15512         * tests/test-isinf.c (isinf): Likewise.
15513         * tests/test-isnan.c (isnan): Likewise.
15514         * tests/test-signbit.c (signbit): Likewise.
15515         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15516         declaration, either as macro or with correct signature.
15517         (select): Ensure function under test is declared with correct
15518         signature in correct header.
15519         * tests/test-atexit.c (atexit): Likewise.
15520         * tests/test-btowc.c (btowc): Likewise.
15521         * tests/test-canonicalize-lgpl.c (realpath)
15522         (canonicalize_file_name): Likewise.
15523         * tests/test-ceilf1.c (ceilf): Likewise.
15524         * tests/test-ceill.c (ceill): Likewise.
15525         * tests/test-chown.c (chown): Likewise.
15526         * tests/test-dprintf-posix.c (dprintf): Likewise.
15527         * tests/test-dup2.c (dup2): Likewise.
15528         * tests/test-dup3.c (dup3): Likewise.
15529         * tests/test-duplocale.c (duplocale): Likewise.
15530         * tests/test-fchdir.c (fchdir): Likewise.
15531         * tests/test-fchownat.c (fchownat): Likewise.
15532         * tests/test-fcntl.c (fcntl): Likewise.
15533         * tests/test-fdopendir.c (fdopendir): Likewise.
15534         * tests/test-fflush.c (fflush): Likewise.
15535         * tests/test-flock.c (flock): Likewise.
15536         * tests/test-floorf1.c (floorf): Likewise.
15537         * tests/test-floorl.c (floorl): Likewise.
15538         * tests/test-fnmatch.c (fnmatch): Likewise.
15539         * tests/test-fopen.c (fopen): Likewise.
15540         * tests/test-fprintf-posix.c (fprintf): Likewise.
15541         * tests/test-freopen.c (freopen): Likewise.
15542         * tests/test-frexp.c (frexp): Likewise.
15543         * tests/test-frexpl.c (frexpl): Likewise.
15544         * tests/test-fseek.c (fseek): Likewise.
15545         * tests/test-fseeko.c (fseeko): Likewise.
15546         * tests/test-fstatat.c (fstatat): Likewise.
15547         * tests/test-fsync.c (fsync): Likewise.
15548         * tests/test-ftell.c (ftell): Likewise.
15549         * tests/test-ftello.c (ftello): Likewise.
15550         * tests/test-futimens.c (futimens): Likewise.
15551         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15552         (gai_strerror): Likewise.
15553         * tests/test-getcwd.c (getcwd): Likewise.
15554         * tests/test-getdelim.c (getdelim): Likewise.
15555         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15556         * tests/test-getgroups.c (getgroups): Likewise.
15557         * tests/test-gethostname.c (gethostname): Likewise.
15558         * tests/test-getline.c (getline): Likewise.
15559         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15560         Likewise.
15561         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15562         * tests/test-glob.c (glob, globfree): Likewise.
15563         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15564         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15565         * tests/test-inet_pton.c (inet_pton): Likewise.
15566         * tests/test-isblank.c (isblank): Likewise.
15567         * tests/test-lchown.c (lchown): Likewise.
15568         * tests/test-ldexpl.c (ldexpl): Likewise.
15569         * tests/test-link.c (link): Likewise.
15570         * tests/test-linkat.c (linkat): Likewise.
15571         * tests/test-lseek.c (lseek): Likewise.
15572         * tests/test-lstat.c (lstat): Likewise.
15573         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15574         * tests/test-mbsinit.c (mbsinit): Likewise.
15575         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15576         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15577         * tests/test-memchr.c (memchr): Likewise.
15578         * tests/test-memcmp.c (memcmp): Likewise.
15579         * tests/test-memmem.c (memmem): Likewise.
15580         * tests/test-memrchr.c (memrchr): Likewise.
15581         * tests/test-mkdir.c (mkdir): Likewise.
15582         * tests/test-mkdirat.c (mkdirat): Likewise.
15583         * tests/test-mkfifo.c (mkfifo): Likewise.
15584         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15585         * tests/test-mknod.c (mknod): Likewise.
15586         * tests/test-nanosleep.c (nanosleep): Likewise.
15587         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15588         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15589         Likewise.
15590         * tests/test-open.c (open): Likewise.
15591         * tests/test-openat.c (openat): Likewise.
15592         * tests/test-perror.c (perror): Likewise.
15593         * tests/test-pipe2.c (pipe2): Likewise.
15594         * tests/test-poll.c (poll): Likewise.
15595         * tests/test-popen.c (popen, pclose): Likewise.
15596         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15597         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15598         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15599         (posix_spawn_file_actions_destroy)
15600         (posix_spawn_file_actions_addclose)
15601         (posix_spawn_file_actions_addopen)
15602         (posix_spawn_file_actions_adddup2): Likewise.
15603         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15604         * tests/test-pread.c (pread): Likewise.
15605         * tests/test-printf-posix.c (printf): Likewise.
15606         * tests/test-pty.c (openpty, forkpty): Likewise.
15607         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15608         (random_r): Likewise.
15609         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15610         * tests/test-readlink.c (readlink): Likewise.
15611         * tests/test-remove.c (remove): Likewise.
15612         * tests/test-rename.c (rename): Likewise.
15613         * tests/test-renameat.c (renameat): Likewise.
15614         * tests/test-rmdir.c (rmdir): Likewise.
15615         * tests/test-round1.c (round): Likewise.
15616         * tests/test-roundf1.c (roundf): Likewise.
15617         * tests/test-roundl.c (roundl): Likewise.
15618         * tests/test-setenv.c (setenv): Likewise.
15619         * tests/test-sigaction.c (sigaction): Likewise.
15620         * tests/test-sleep.c (sleep): Likewise.
15621         * tests/test-snprintf.c (snprintf): Likewise.
15622         * tests/test-sprintf-posix.c (sprintf): Likewise.
15623         * tests/test-stat.c (stat): Likewise.
15624         * tests/test-stpncpy.c (stpncpy): Likewise.
15625         * tests/test-strcasestr.c (strcasestr): Likewise.
15626         * tests/test-strchrnul.c (strchrnul): Likewise.
15627         * tests/test-strerror.c (strerror): Likewise.
15628         * tests/test-strsignal.c (strsignal): Likewise.
15629         * tests/test-strstr.c (strstr): Likewise.
15630         * tests/test-strtod.c (strtod): Likewise.
15631         * tests/test-strverscmp.c (strverscmp): Likewise.
15632         * tests/test-symlink.c (symlink): Likewise.
15633         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15634         * tests/test-times.c (times): Likewise.
15635         * tests/test-trunc1.c (trunc): Likewise.
15636         * tests/test-truncf1.c (truncf): Likewise.
15637         * tests/test-truncl.c (truncl): Likewise.
15638         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15639         Likewise.
15640         * tests/test-uname.c (uname): Likewise.
15641         * tests/test-unlink.c (unlink): Likewise.
15642         * tests/test-unlinkat.c (unlinkat): Likewise.
15643         * tests/test-unsetenv.c (unsetenv): Likewise.
15644         * tests/test-usleep.c (usleep): Likewise.
15645         * tests/test-utimensat.c (utimensat): Likewise.
15646         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15647         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15648         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15649         * tests/test-vprintf-posix.c (vprintf): Likewise.
15650         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15651         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15652         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15653         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15654         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15655         * tests/test-wcwidth.c (wcwidth): Likewise.
15656
15657         build: pull in conditional headers during GNULIB_POSIXCHECK
15658         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15659         definitions from any conditionally-included headers.
15660         * lib/stdlib.in.h (includes): Likewise.
15661         * lib/unistd.in.h (includes): Likewise.
15662
15663 2009-12-24  Bruno Haible  <bruno@clisp.org>
15664
15665         * tests/test-argv-iter.c: Include header file being tested immediately
15666         after config.h.
15667         * tests/test-base64.c: Likewise.
15668         * tests/test-flock.c: Likewise.
15669         * tests/test-fsync.c: Likewise.
15670         * tests/test-getdate.c: Likewise.
15671         * tests/test-getndelim2.c: Likewise.
15672         * tests/test-isfinite.c: Likewise.
15673         * tests/test-isinf.c: Likewise.
15674         * tests/test-strerror.c: Likewise.
15675         * tests/test-strsignal.c: Likewise.
15676
15677 2009-12-23  Eric Blake  <ebb9@byu.net>
15678
15679         unistd: work around cygwin bug
15680         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15681         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15682         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15683
15684 2009-12-23  Bruno Haible  <bruno@clisp.org>
15685
15686         localename: More tests.
15687         * tests/test-localename.c (SIZEOF): New macro.
15688         (categories): New variable.
15689         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15690         test_locale_name_default): Add test w.r.t. thread locale.
15691         (test_locale_name_thread): New function.
15692         (main): Invoke it.
15693
15694         localename: Make aware of thread locale.
15695         * lib/localename.h (gl_locale_name_thread): New declaration.
15696         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15697         behaviour with respect to thread locale.
15698         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15699         <langinfo.h>, glthread/lock.h.
15700         (SIZE_BITS): New macro.
15701         (string_hash): New function.
15702         (struct hash_node): New type.
15703         (HASH_TABLE_SIZE): New macro.
15704         (struniq_hash_table, struniq_lock): New variables.
15705         (struniq): New function.
15706         (gl_locale_name_thread): New function.
15707         (gl_locale_name): Invoke it.
15708         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15709         * modules/localename (Depends-on): Add lock.
15710         Reported by Mike Gran <spk121@yahoo.com>.
15711
15712 2009-12-23  Eric Blake  <ebb9@byu.net>
15713
15714         va-args: new module
15715         * modules/va-args: New file.
15716         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15717         * MODULES.html.sh (Core language properties): Mention it.
15718
15719         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15720         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15721         named alias for __attribute__((__unused__)).
15722         * lib/chown.c: Update client.
15723         * lib/fchmodat.c: Likewise.
15724         * lib/fts.c: Likewise.
15725         * lib/getdate.y: Likewise.
15726         * lib/getgroups.c: Likewise.
15727         * lib/getopt.c: Likewise.
15728         * lib/getugroups.c: Likewise.
15729         * lib/mkdir.c: Likewise.
15730         * lib/mkfifo.c: Likewise.
15731         * lib/mkfifoat.c: Likewise.
15732         * lib/mknod.c: Likewise.
15733         * lib/mknodat.c: Likewise.
15734         * lib/readlink.c: Likewise.
15735         * lib/se-context.in.h: Likewise.
15736         * lib/se-selinux.in.h: Likewise.
15737         * lib/sockets.c: Likewise.
15738         * lib/symlink.c: Likewise.
15739         * lib/symlinkat.c: Likewise.
15740         * lib/unicodeio.c: Likewise.
15741         * lib/unistr.h: Likewise.
15742         * tests/test-areadlink.c: Likewise.
15743         * tests/test-areadlinkat.c: Likewise.
15744         * tests/test-filenamecat.c: Likewise.
15745         * tests/test-fseeko.c: Likewise.
15746         * tests/test-ftello.c: Likewise.
15747         * tests/test-getdate.c: Likewise.
15748         * tests/test-getgroups.c: Likewise.
15749         * tests/test-gethostname.c: Likewise.
15750         * tests/test-quotearg.c: Likewise.
15751         * tests/test-version-etc.c: Likewise.
15752         * tests/test-xalloc-die.c: Likewise.
15753         * tests/test-xfprintf-posix.c: Likewise.
15754         * tests/test-xprintf-posix.c: Likewise.
15755         * tests/test-xvasprintf.c: Likewise.
15756
15757         tests: avoid compiler warnings
15758         * tests/test-fcntl.c (main): Delete unused parameters.
15759         * tests/test-freopen-safer.c (main): Likewise.
15760         * tests/test-xalloc-die.c (main): Mark unused parameters.
15761         * tests/test-fseeko.c (main): Likewise.
15762         * tests/test-ftello.c (main): Likewise.
15763         * tests/test-nanosleep.c (main): Avoid declaration warning.
15764         * tests/test-sleep.c (main): Likewise.
15765         * tests/test-unsetenv.c (main): Silence warning about string
15766         literal.
15767         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15768
15769 2009-12-23  Bruno Haible  <bruno@clisp.org>
15770
15771         * tests/test-localename.c (test_locale_name): New function, extracted
15772         from main. Also test mixed situations.
15773         (test_locale_name_posix, test_locale_name_environ,
15774         test_locale_name_default): New functions.
15775         (main): Invoke them all.
15776         * modules/localename-tests (configure.ac): Test for newlocale.
15777
15778 2009-12-23  Bruno Haible  <bruno@clisp.org>
15779
15780         unistd: Ensure getcwd gets declared before being overridden.
15781         * lib/unistd.in.h: Conditionally include <io.h>.
15782
15783 2009-12-22  Bruno Haible  <bruno@clisp.org>
15784
15785         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15786         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15787         (gl_WCHAR_H): Invoke it.
15788         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15789         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15790         Reported by Karl Berry <karl@freefriends.org>.
15791
15792 2009-12-22  Eric Blake  <ebb9@byu.net>
15793
15794         math, unistd: avoid redundant includes
15795         * lib/math.in.h (isnan): No need to re-include <math.h>.
15796         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15797
15798         getsubopt: work around cygwin bug
15799         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15800         avoid conflicting with system getsubopt.
15801         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15802         bug.
15803
15804         getopt: synchronize from glibc
15805         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15806         parameter order.  Adjust all callers.
15807         (_getopt_internal_r, main): Adjust quoting in error messages.
15808         Drop considerations for outdated POSIX 1003.2 error message.
15809         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15810         callers.
15811         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15812
15813         test-getopt: test stderr behavior
15814         * modules/getopt-posix-tests (Depends-on): Add dup2.
15815         * tests/test-getopt.c (ASSERT): Avoid stderr.
15816         (main): Move stderr to a temporary file.
15817         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15818         Instead, add parameter to inform caller if output occurred.
15819         (test_getopt): Adjust all existing tests to expect silence, and
15820         add new tests of leading ":".
15821         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15822         glibc shortcomings with leading "-:" or "+:" in optstring.
15823         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15824         Likewise.
15825         * doc/posix-functions/getopt.texi (getopt): Likewise.
15826
15827         test-getopt: enhance test
15828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15829         supports optind=0.
15830         * tests/test-getopt.c (OPTIND_MIN): Move...
15831         * tests/test-getopt.h (OPTIND_MIN): ...here.
15832         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15833         Require that optind=0 works, since modern BSD supports it in
15834         addition to optreset, and since coreutils expects it.
15835         (test_getopt_long_only): New test.
15836         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15837         glibc shortcomings with 'W;', and enforcement of optind=0.
15838         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15839         Likewise.
15840
15841 2009-12-21  Bruno Haible  <bruno@clisp.org>
15842
15843         localename: Improvements for MacOS X and Cygwin.
15844         * lib/localename.h (gl_locale_name_environ): New declaration.
15845         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15846         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15847         (gl_locale_name_posix): Invoke it.
15848         (gl_locale_name_default): Add comments. Use Windows native API also on
15849         Cygwin.
15850
15851 2009-12-21  Bruno Haible  <bruno@clisp.org>
15852
15853         Update list of Win32 locale ids.
15854         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15855         (LANG_SAMI): Renamed from LANG_SAAMI.
15856         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15857         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15858         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15859         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15860         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15861         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15862         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15863         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15864         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15865         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15866         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15867         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15868         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15869         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15870         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15871         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15872         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15873         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15874         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15875         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15876         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15877         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15878         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15879         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15880         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15881         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15882         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15883         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15884         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15885         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15886         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15887         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15888         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15889         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15890         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15891         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15892         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15893         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15894         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15895         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15896         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15897         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15898         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15899         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15900         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15901         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15902         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15903         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15904         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15905         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15906         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15907         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15908         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15909         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15910         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15911         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15912         Add more languages and countries for Sami, Sorbian. Add more countries
15913         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15914         for Pashto. Change country for Syriac, Tswana.
15915
15916 2009-12-21  Eric Blake  <ebb9@byu.net>
15917
15918         test-utimens: avoid spurious failure
15919         * tests/test-chown.h (nap): Factor...
15920         * tests/nap.h: ...into new file.
15921         * tests/test-lchown.h (nap): Avoid duplication.
15922         * tests/test-utimens-common.h (nap): Use shared implementation,
15923         necessary on file systems with 1-second resolution.
15924         * modules/chown-tests (Files): Include new file.
15925         * modules/fdutimensat-tests (Files): Likewise.
15926         * modules/futimens-tests (Files): Likewise.
15927         * modules/lchown-tests (Files): Likewise.
15928         * modules/openat-tests (Files): Likewise.
15929         * modules/utimens-tests (Files): Likewise.
15930         * modules/utimensat-tests (Files): Likewise.
15931
15932 2009-12-19  Eric Blake  <ebb9@byu.net>
15933
15934         futimens, utimensat: work around Linux bug
15935         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15936         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15937         * lib/utimensat.c (rpl_utimensat): Work around it.
15938         * lib/futimens.c (rpl_futimens): Adjust comment.
15939
15940         utimens: work around Linux ctime bug
15941         * lib/utimens.c (detect_ctime_bug): New helper function.
15942         (update_timespec): Differentiate between workaround needed for
15943         this bug vs. what is needed for systems that lack utimensat.
15944         (fdutimens, lutimens): Work around bug.
15945
15946         utimens: check for ctime update
15947         * tests/test-utimens-common.h (check_ctime): Define.
15948         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15949         * tests/test-futimens.h (test_futimens): Likewise.
15950         * tests/test-lutimens.h (test_lutimens): Likewise.
15951         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15952         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15953
15954 2009-12-19  Bruno Haible  <bruno@clisp.org>
15955
15956         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15957         * tests/test-dprintf-posix2.sh: New file.
15958         * tests/test-dprintf-posix2.c: New file.
15959         * modules/dprintf-posix-tests (Files): Add them.
15960         (configure.ac): Check for getrlimit and setrlimit.
15961         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15962
15963 2009-12-19  Bruno Haible  <bruno@clisp.org>
15964
15965         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15966         * tests/test-fprintf-posix3.sh: New file.
15967         * tests/test-fprintf-posix3.c: New file.
15968         * modules/fprintf-posix-tests (Files): Add them.
15969         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15970
15971 2009-12-19  Eric Blake  <ebb9@byu.net>
15972
15973         dirfd: fix prototype
15974         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15975         * lib/dirfd.c (dirfd): Likewise.
15976
15977         canonicalize: reduce memory usage
15978         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15979         allocation to size.
15980         Reported by Solar Designer <solar@openwall.com>.
15981
15982 2009-12-19  Bruno Haible  <bruno@clisp.org>
15983
15984         New module attribute 'Applicability'.
15985         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15986         * gnulib-tool: New option --extract-applicability.
15987         (func_usage): Document it.
15988         (sed_extract_prog): Recognize it.
15989         (func_get_applicability): New function.
15990         (func_import): Generalize handling of 'link-warning' module.
15991         * modules/link-warning (Applicability): New section.
15992         * modules/arg-nonnull (Applicability): New section.
15993         Repoted by Simon Josefsson <simon@josefsson.org>.
15994
15995 2009-12-19  Bruno Haible  <bruno@clisp.org>
15996
15997         fflush: tweak
15998         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15999         * lib/fseeko.c (rpl_fseeko): Likewise.
16000
16001 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16002
16003         * lib/gl_list.h: Fix typo in comment.
16004
16005 2009-12-16  Eric Blake  <ebb9@byu.net>
16006
16007         fcntl: use to simplify other modules
16008         * modules/cloexec (Depends-on): Add fcntl.
16009         * modules/fchdir (Depends-on): Likewise.
16010         * modules/fd-safer-flag (Depends-on): Likewise.
16011         * modules/unistd-safer (Depends-on): Likewise.
16012         * modules/dup3 (configure.ac): Set module indicator.
16013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16014         missing.
16015         * lib/fchdir.c (_gl_register_dup): Fix comment.
16016         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16017         * lib/dup-safer.c (dup_safer): Likewise.
16018         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16019         * lib/dup3.c (dup3): Likewise.
16020         * tests/test-fchdir.c (main): Enhance test.
16021         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
16022
16023         fcntl: port portions of fcntl to mingw
16024         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16025         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16026         replacement for mingw.
16027         * modules/fcntl (Description): Update.
16028         (Depends-on): Add dup2.
16029         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16030         * modules/fcntl-h (Makefile.am): Substitute it.
16031         * lib/fcntl.in.h (fcntl): Update declaration.
16032         (F_DUPFD, F_GETFD): New macros, when needed.
16033         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16034         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16035         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16036         we now guarantee.
16037
16038         fcntl: work around cygwin bug in F_DUPFD
16039         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16040         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16041         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16042         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16043         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16044
16045         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16046         * modules/fcntl (Files): List new files.
16047         (configure.ac): Run a test.
16048         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16049         * lib/fcntl.c (rpl_fcntl): Likewise.
16050         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16051         (gl_FCNTL_H): Always replace fcntl.h.
16052         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16053         * lib/fcntl.in.h (fcntl): Declare replacement.
16054         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16055         needed, plus a witness.
16056         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16057         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16058         * tests/test-fcntl.c: New file.
16059         * modules/fcntl-tests: Likewise.
16060
16061         binary-io: avoid potential compilation warning
16062         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16063         directives.
16064
16065         fflush: avoid compilation error on NetBSD
16066         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16067         between off_t and fpos_t, since the latter is sometimes a struct.
16068         * lib/fseeko.c (rpl_fseeko): Likewise.
16069         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16070
16071 2009-12-15  Eric Blake  <ebb9@byu.net>
16072
16073         fcntl-h, stdio, sys_ioctl: fix declarations
16074         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16075         function must not take arguments.
16076         * lib/sys_ioctl.in.h (ioctl): Likewise.
16077         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16078         (open): Add a link warning.
16079
16080 2009-12-15  Jim Meyering  <meyering@redhat.com>
16081
16082         areadlink, areadlink-with-size: relax license to LGPLv2+
16083         * modules/areadlink (License): Relax to LGPLv2+.
16084         * modules/areadlink-with-size (License): Likewise.
16085
16086 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16087             Bruno Haible  <bruno@clisp.org>
16088
16089         *printf: Fix memory leak.
16090         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16091         * lib/vfprintf.c (vfprintf): Likewise.
16092         * lib/dprintf.c (dprintf): Likewise.
16093         * lib/vdprintf.c (vdprintf): Likewise.
16094
16095 2009-12-14  Eric Blake  <ebb9@byu.net>
16096
16097         accept4: adjust module dependencies
16098         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16099
16100         utimens: one more try at avoiding compiler warning
16101         * lib/utimens.c (lutimens): Lower scope of result.
16102
16103 2009-12-13  Bruno Haible  <bruno@clisp.org>
16104
16105         Move the malloc checking from module 'list' to new module 'xlist'.
16106         * modules/xlist: New file.
16107         * lib/gl_xlist.h: New file.
16108         * lib/gl_xlist.c: New file.
16109         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16110         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16111         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16112         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16113         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16114         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16115         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16116         gl_sortedlist_nx_add): New declarations.
16117         (struct gl_list_implementation): Rename and change methods accordingly.
16118         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16119         (gl_list_nx_create): Renamed from gl_list_create.
16120         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16121         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16122         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16123         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16124         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16125         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16126         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16127         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16128         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16129         gl_list_create_empty.
16130         (gl_list_nx_create): Renamed from gl_list_create.
16131         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16132         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16133         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16134         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16135         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16136         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16137         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16138         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16139         * lib/gl_array_list.c: Don't include xalloc.h.
16140         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16141         NULL upon out-of-memory.
16142         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16143         out-of-memory.
16144         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16145         Change return type to 'int'.
16146         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16147         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16148         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16149         upon out-of-memory.
16150         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16151         upon out-of-memory.
16152         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16153         upon out-of-memory.
16154         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16155         upon out-of-memory.
16156         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16157         out-of-memory.
16158         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16159         Update.
16160         (gl_array_list_implementation): Update.
16161         * lib/gl_carray_list.c: Don't include xalloc.h.
16162         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16163         Return NULL upon out-of-memory.
16164         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16165         out-of-memory.
16166         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16167         Change return type to 'int'.
16168         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16169         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16170         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16171         upon out-of-memory.
16172         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16173         upon out-of-memory.
16174         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16175         out-of-memory.
16176         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16177         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16178         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16179         Update.
16180         (gl_carray_list_implementation): Update.
16181         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16182         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16183         gl_linked_create_empty. Return NULL upon out-of-memory.
16184         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16185         out-of-memory.
16186         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16187         Change return type to 'int'. Return -1 upon out-of-memory.
16188         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16189         out-of-memory.
16190         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16191         upon out-of-memory.
16192         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16193         upon out-of-memory.
16194         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16195         NULL upon out-of-memory.
16196         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16197         upon out-of-memory.
16198         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16199         out-of-memory.
16200         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16201         Update.
16202         * lib/gl_linked_list.c: Don't include xalloc.h.
16203         (gl_linked_list_implementation): Update.
16204         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16205         (add_to_bucket): Change return type to 'int'.
16206         (gl_linkedhash_list_implementation): Update.
16207         * lib/gl_anytree_list1.h (free_subtree): New function.
16208         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16209         gl_tree_create_empty. Return NULL upon out-of-memory.
16210         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16211         Change return type to 'int'. Return -1 upon out-of-memory.
16212         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16213         out-of-memory.
16214         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16215         (gl_tree_remove_node): New function, moved here from
16216         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16217         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16218         Update.
16219         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16220         malloc, not xmalloc. Return NULL upon out-of-memory.
16221         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16222         out-of-memory.
16223         (gl_tree_remove_node_from_tree): New function, extracted from
16224         gl_tree_remove_node.
16225         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16226         upon out-of-memory.
16227         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16228         out-of-memory.
16229         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16230         upon out-of-memory.
16231         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16232         upon out-of-memory.
16233         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16234         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16235         not xmalloc. Return NULL upon out-of-memory.
16236         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16237         out-of-memory.
16238         (gl_tree_remove_node_from_tree): New function, extracted from
16239         gl_tree_remove_node.
16240         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16241         upon out-of-memory.
16242         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16243         out-of-memory.
16244         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16245         upon out-of-memory.
16246         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16247         upon out-of-memory.
16248         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16249         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16250         gl_anytree_list1.h before gl_anyavltree_list2.h.
16251         (gl_avltree_list_implementation): Update.
16252         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16253         gl_anytree_list1.h before gl_anyavltree_list2.h.
16254         (gl_rbtree_list_implementation): Update.
16255         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16256         Change return type to 'int'. Return -1 upon out-of-memory. Use
16257         __builtin_expect.
16258         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16259         (gl_avltreehash_list_implementation): Update.
16260         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16261         (gl_rbtreehash_list_implementation): Update.
16262         * modules/array-list (Depends-on): Remove xalloc.
16263         * modules/carray-list (Depends-on): Likewise.
16264         * modules/linked-list (Depends-on): Likewise.
16265         * modules/linkedhash-list (Depends-on): Likewise.
16266         * modules/avltree-list (Depends-on): Likewise.
16267         * modules/rbtree-list (Depends-on): Likewise.
16268         * modules/avltreehash-list (Depends-on): Likewise.
16269         * modules/rbtreehash-list (Depends-on): Likewise.
16270
16271         * modules/xsublist: New file.
16272         * lib/gl_xsublist.h: New file.
16273         * lib/gl_xsublist.c: New file.
16274         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16275         (gl_sublist_nx_create): New declaration.
16276         * lib/gl_sublist.c: Don't include xalloc.h.
16277         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16278         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16279         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16280         Change return type to 'int'. Return -1 upon out-of-memory.
16281         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16282         upon out-of-memory.
16283         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16284         NULL upon out-of-memory.
16285         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16286         upon out-of-memory.
16287         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16288         NULL upon out-of-memory.
16289         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16290         NULL upon out-of-memory.
16291         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16292         upon out-of-memory.
16293         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16294         (gl_sublist_list_implementation): Update.
16295         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16296         upon out-of-memory.
16297         * modules/sublist (Depends-on): Remove xalloc.
16298
16299         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16300         * tests/test-carray_list.c: Likewise.
16301         * tests/test-linked_list.c: Likewise.
16302         * tests/test-linkedhash_list.c: Likewise.
16303         * tests/test-avltree_list.c: Likewise.
16304         * tests/test-rbtree_list.c: Likewise.
16305         * tests/test-avltreehash_list.c: Likewise.
16306         * tests/test-rbtreehash_list.c: Likewise.
16307         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16308         * modules/carray-list-tests (Makefile.am): Likewise.
16309         * modules/linked-list-tests (Makefile.am): Likewise.
16310         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16311         * modules/avltree-list-tests (Makefile.am): Likewise.
16312         * modules/rbtree-list-tests (Makefile.am): Likewise.
16313         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16314         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16315
16316         * NEWS: Mention the changes.
16317
16318         * lib/clean-temp.c: Include gl_xlist.h.
16319         * modules/clean-temp (Depends-on): Add xlist.
16320
16321         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16322         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16323
16324         * tests/test-array_oset.c: Include gl_xlist.h.
16325         * modules/array-oset-tests (Depends-on): Add xlist.
16326
16327         Reported by José E. Marchesi <jemarch@gnu.org>.
16328
16329 2009-12-13  Bruno Haible  <bruno@clisp.org>
16330
16331         Move the malloc checking from module 'oset' to new module 'xoset'.
16332         * modules/xoset: New file.
16333         * lib/gl_xoset.h: New file.
16334         * lib/gl_xoset.c: New file.
16335         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16336         declarations.
16337         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16338         (struct gl_oset_implementation): Rename and change methods accordingly.
16339         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16340         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16341         'int'. Mark as __warn_unused_result__.
16342         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16343         gl_oset_create_empty.
16344         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16345         'int'.
16346         * lib/gl_array_oset.c: Don't include xalloc.h.
16347         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16348         malloc, not xmalloc.
16349         (grow): Change return type to 'int'. Don't call xalloc_die.
16350         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16351         to 'int'.
16352         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16353         'int'.
16354         (gl_array_oset_implementation): Update.
16355         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16356         gl_tree_create_empty.
16357         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16358         'int'.
16359         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16360         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16361         xmalloc.
16362         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16363         not xmalloc.
16364         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16365         xmalloc.
16366         (gl_avltree_oset_implementation): Update.
16367         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16368         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16369         xmalloc.
16370         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16371         not xmalloc.
16372         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16373         xmalloc.
16374         (gl_rbtree_oset_implementation): Update.
16375         * modules/array-oset (Depends-on): Remove xalloc.
16376         * modules/avltree-oset (Depends-on): Likewise.
16377         * modules/rbtree-oset (Depends-on): Likewise.
16378         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16379         * tests/test-avltree_oset.c: Likewise.
16380         * tests/test-rbtree_oset.c: Likewise.
16381         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16382         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16383         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16384         * NEWS: Mention the change.
16385
16386 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16387
16388         maint.mk: allow a project to override release-prep commands
16389         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16390         commands into a new rule.
16391         (release-prep): New rule.
16392         (release-prep-hook): New overridable variable.
16393
16394 2009-12-13  Bruno Haible  <bruno@clisp.org>
16395
16396         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16397
16398 2009-12-13  Jim Meyering  <meyering@redhat.com>
16399
16400         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16401         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16402
16403 2009-12-12  Bruno Haible  <bruno@clisp.org>
16404
16405         duplocale: Tweak.
16406         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16407
16408 2009-12-12  Karl Berry  <karl@gnu.org>
16409
16410         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16411
16412 2009-12-12  Bruno Haible  <bruno@clisp.org>
16413
16414         * m4/po.m4: Undo incorrect untabification.
16415
16416 2009-12-12  Bruno Haible  <bruno@clisp.org>
16417
16418         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16419         * modules/c-strtod (Depends-on): Add locale.
16420         * modules/c-strtold (Depends-on): Likewise.
16421
16422 2009-12-12  Bruno Haible  <bruno@clisp.org>
16423
16424         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16425
16426 2009-12-11  Eric Blake  <ebb9@byu.net>
16427
16428         setenv: relax requirement in light of POSIX ruling
16429         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16430         not NULL.
16431         * tests/test-setenv.c (main): Relax test.
16432         * tests/test-unsetenv.c (main): Likewise.
16433         * doc/posix-functions/setenv.texi (setenv): Document this.
16434         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16435
16436 2009-12-11  Bruno Haible  <bruno@clisp.org>
16437
16438         New module 'fd-safer-flag'.
16439         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16440         * lib/dup-safer.c (dup_safer_flag): Remove function.
16441         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16442         * lib/fd-safer.c (fd_safer_flag): Remove function.
16443         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16444         * modules/cloexec (configure.ac): Drop indicator macro.
16445         * modules/fd-safer-flag: New file.
16446         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16447         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16448         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16449
16450 2009-12-11  Bruno Haible  <bruno@clisp.org>
16451
16452         Tests for module 'nl_langinfo'.
16453         * modules/nl_langinfo-tests: New file.
16454         * tests/test-nl_langinfo.sh: New file.
16455         * tests/test-nl_langinfo.c: New file.
16456
16457         New module 'nl_langinfo'.
16458         * lib/nl_langinfo.c: New file.
16459         * m4/nl_langinfo.m4: New file.
16460         * modules/nl_langinfo: New file.
16461         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16462
16463 2009-12-11  Bruno Haible  <bruno@clisp.org>
16464
16465         Tests for module 'langinfo'.
16466         * modules/langinfo-tests: New file.
16467         * tests/test-langinfo.c: New file.
16468
16469         New module 'langinfo'.
16470         * lib/langinfo.in.h: New file.
16471         * m4/langinfo_h.m4: New file.
16472         * modules/langinfo: New file.
16473         * doc/posix-headers/langinfo.texi: Mention the new module.
16474
16475 2009-12-11  Bruno Haible  <bruno@clisp.org>
16476
16477         * lib/config.charset: Untabify.
16478
16479 2009-12-11  Bruno Haible  <bruno@clisp.org>
16480
16481         * modules/unistd-safer (configure.ac): Drop indicator macro.
16482
16483 2009-12-11  Bruno Haible  <bruno@clisp.org>
16484
16485         Move pipe2-safer code to its own file.
16486         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16487         * lib/pipe-safer.c (pipe2_safer): Remove function.
16488         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16489         (Makefile.am): Add it to lib_SOURCES.
16490
16491 2009-12-10  Bruno Haible  <bruno@clisp.org>
16492
16493         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16494
16495 2009-12-10  Bruno Haible  <bruno@clisp.org>
16496
16497         Declare which arguments expect non-NULL values, for GCC and clang.
16498         * build-aux/arg-nonnull.h: New file.
16499         * modules/arg-nonnull: New file.
16500         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16501         (inet_ntop, inet_pton): Use it.
16502         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16503         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16504         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16505         (open, openat): Use it.
16506         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16507         (fnmatch): Use it.
16508         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16509         (getopt, getopt_long, getopt_long_only): Use it.
16510         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16511         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16512         Use it.
16513         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16514         (iconv_open): Use it.
16515         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16516         (strtoimax, strtoumax): Use it.
16517         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16518         (duplocale): Use it.
16519         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16520         (frexp, frexpl): Use it.
16521         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16522         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16523         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16524         (tsearch, tfind, tdelete, twalk): Use it.
16525         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16526         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16527         sigpending): Use it.
16528         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16529         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16530         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16531         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16532         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16533         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16534         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16535         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16536         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16537         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16538         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16539         Use it.
16540         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16541         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16542         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16543         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16544         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16545         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16546         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16547         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16548         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16549         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16550         strtoull, unsetenv): Use it.
16551         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16552         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16553         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16554         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16555         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16556         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16557         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16558         (strcasecmp, strncasecmp): Use it.
16559         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16560         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16561         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16562         rpl_setsockopt): Use it.
16563         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16564         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16565         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16566         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16567         (gettimeofday): Use it.
16568         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16569         (times): Use it.
16570         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16571         (uname): Use it.
16572         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16573         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16574         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16575         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16576         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16577         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16578         unlinkat, write): Use it.
16579         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16580         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16581         * lib/argv-iter.h: Include arg-nonnull.h.
16582         (_ATTRIBUTE_NONNULL_): Remove macro.
16583         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16584         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16585         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16586         optimization.
16587         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16588         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16589         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16590         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16591         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16592         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16593         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16594         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16595         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16596         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16597         * modules/dirent (Depends-on): Add arg-nonnull.
16598         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16599         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16600         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16601         * modules/fnmatch (Depends-on): Add arg-nonnull.
16602         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16603         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16604         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16605         * modules/glob (Depends-on): Add arg-nonnull.
16606         (Makefile.am): Insert arg-nonnull.h into glob.h.
16607         * modules/iconv_open (Depends-on): Add arg-nonnull.
16608         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16609         * modules/inttypes (Depends-on): Add arg-nonnull.
16610         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16611         * modules/locale (Depends-on): Add arg-nonnull.
16612         (Makefile.am): Insert arg-nonnull.h into locale.h.
16613         * modules/math (Depends-on): Add arg-nonnull.
16614         (Makefile.am): Insert arg-nonnull.h into math.h.
16615         * modules/netdb (Depends-on): Add arg-nonnull.
16616         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16617         * modules/search (Depends-on): Add arg-nonnull.
16618         (Makefile.am): Insert arg-nonnull.h into search.h.
16619         * modules/signal (Depends-on): Add arg-nonnull.
16620         (Makefile.am): Insert arg-nonnull.h into signal.h.
16621         * modules/spawn (Depends-on): Add arg-nonnull.
16622         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16623         * modules/stdio (Depends-on): Add arg-nonnull.
16624         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16625         * modules/stdlib (Depends-on): Add arg-nonnull.
16626         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16627         * modules/string (Depends-on): Add arg-nonnull.
16628         (Makefile.am): Insert arg-nonnull.h into string.h.
16629         * modules/strings (Depends-on): Add arg-nonnull.
16630         (Makefile.am): Insert arg-nonnull.h into strings.h.
16631         * modules/sys_socket (Depends-on): Add arg-nonnull.
16632         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16633         * modules/sys_stat (Depends-on): Add arg-nonnull.
16634         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16635         * modules/sys_time (Depends-on): Add arg-nonnull.
16636         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16637         * modules/sys_times (Depends-on): Add arg-nonnull.
16638         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16639         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16640         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16641         * modules/time (Depends-on): Add arg-nonnull.
16642         (Makefile.am): Insert arg-nonnull.h into time.h.
16643         * modules/unistd (Depends-on): Add arg-nonnull.
16644         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16645         * modules/wchar (Depends-on): Add arg-nonnull.
16646         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16647         * modules/argv-iter (Depends-on): Add arg-nonnull.
16648         * tests/test-canonicalize.c (null_ptr): New function.
16649         (main): Use it.
16650         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16651         (main): Use it.
16652         * tests/test-memmem.c (null_ptr): New function.
16653         (main): Use it.
16654         Reported by Jim Meyering.
16655
16656 2009-12-10  Bruno Haible  <bruno@clisp.org>
16657
16658         Use spaces for indentation, not tabs.
16659         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16660         * m4/*.m4: Untabify.
16661         * build-aux/*.h: Untabify.
16662         * tests/**/*.[hc]: Untabify.
16663         * README: New section "Indent with spaces, not TABs", based on
16664         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16665         * NEWS: Mention the change.
16666
16667 2009-12-10  Bruno Haible  <bruno@clisp.org>
16668
16669         pty test: Fix link error.
16670         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16671         test_pty_LDADD.
16672
16673 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16674
16675         * modules/pty: New file.
16676         * modules/pty-tests: New file.
16677         * m4/pty.m4: New file.
16678         * tests/test-pty.c: New file.
16679         * doc/glibc-headers/pty.texi: Modified.
16680         * doc/glibc-functions/forkpty.texi: Modified.
16681         * doc/glibc-functions/openpty.texi: Modified.
16682
16683 2009-12-10  Bruno Haible  <bruno@clisp.org>
16684
16685         Avoid syntax error in C++ mode.
16686         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16687
16688 2009-12-10  Bruno Haible  <bruno@clisp.org>
16689
16690         Use sed with option -e.
16691         * gnulib-tool (func_version, func_emit_copyright_notice,
16692         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16693         option -e to sed.
16694         * modules/link-warning (Makefile.am): Likewise.
16695
16696 2009-12-10  Jim Meyering  <meyering@redhat.com>
16697
16698         mgetgroups: do not write bytes beyond end of malloc'd buffer
16699         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16700         username, we call getgroups with a one-element-shorter buffer,
16701         but still told it the length was original, max_n_groups.
16702
16703 2009-12-09  Eric Blake  <ebb9@byu.net>
16704
16705         cloexec: relax license
16706         * modules/cloexec (Maintainer): Add myself.
16707         (License): Use LGPL, not GPL.
16708
16709         link-warning: optimize generation
16710         * modules/link-warning (Makefile.am): Reduce process usage.
16711
16712 2009-12-09  Bruno Haible  <bruno@clisp.org>
16713
16714         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16715         workaround was added on 2009-11-17.
16716
16717 2009-12-09  Jim Meyering  <meyering@redhat.com>
16718             Bruno Haible  <bruno@clisp.org>
16719
16720         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16721         * modules/link-warning (Makefile.am): Make the comment-removing sed
16722         command more robust in the face of bootstrap-prepended comment lines.
16723
16724 2009-12-09  Bruno Haible  <bruno@clisp.org>
16725
16726         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16727         most one group.
16728
16729 2009-12-09  Simon Josefsson <simon@josefsson.org>
16730             Bruno Haible  <bruno@clisp.org>
16731
16732         * build-aux/link-warning.h: Add copyright notice.
16733         * modules/link-warning (Makefile.am): Generate link-warning.h from
16734         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16735         * NEWS: Mention change in link-warning module.
16736         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16737         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16738         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16739         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16740         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16741         * modules/math (Makefile.am): Add dependency to math.h.
16742         * modules/search (Makefile.am): Add dependency to search.h.
16743         * modules/signal (Makefile.am): Add dependency to signal.h.
16744         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16745         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16746         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16747         * modules/string (Makefile.am): Add dependency to string.h.
16748         * modules/strings (Makefile.am): Add dependency to strings.h.
16749         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16750         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16751         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16752         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16753         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16754         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16755         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16756         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16757         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16758
16759 2009-12-09  Bruno Haible  <bruno@clisp.org>
16760
16761         fchdir: Optimize away rpl_fstat when possible.
16762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16763         REPLACE_OPEN_DIRECTORY.
16764         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16765
16766 2009-12-09  Bruno Haible  <bruno@clisp.org>
16767
16768         * lib/fchdir.c: Update comment.
16769
16770 2009-12-09  Bruno Haible  <bruno@clisp.org>
16771
16772         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16773
16774 2009-12-08  Eric Blake  <ebb9@byu.net>
16775
16776         fchdir: avoid memory leak on re-registration.
16777         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16778
16779 2009-12-08  Jim Meyering  <meyering@redhat.com>
16780
16781         init.sh: avoid Solaris 10 /bin/sh portability problem
16782         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16783         sourced script:
16784           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16785           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16786           bar
16787         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16788         and two tests used that idiom.
16789         * tests/init.sh: Update suggested usage comments.
16790         (path_prepend_): New function, to be used in place
16791         of the --src-path=DIR option.
16792         (setup_): Move PATH-prepending code into path_prepend_.
16793         * tests/test-pread.sh: Adapt to new usage.
16794         * tests/test-xalloc-die.sh: Likewise.
16795
16796 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16797
16798         * doc/gnulib.texi (Glibc pty.h): Add.
16799         * doc/glibc-functions/forkpty.texi: Add.
16800         * doc/glibc-functions/openpty.texi: Add.
16801         Suggested by Bruno Haible.
16802
16803 2009-12-08  Eric Blake  <ebb9@byu.net>
16804
16805         fchdir: fix logic bugs
16806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16807         * tests/test-fchdir.c (main): Enhance test.
16808         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16809         is in use.
16810
16811         dup2: fix logic bugs
16812         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16813         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16814         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16815         exists.
16816         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16817
16818 2009-12-07  Eric Blake  <ebb9@byu.net>
16819
16820         unlink: fix m4 detection
16821         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16822
16823         unistd-safer: add unit test
16824         * modules/unistd-safer-tests: New file.
16825         * tests/test-dup-safer.c: Likewise.
16826         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16827         * tests/test-dup2.c (setmode): Likewise.
16828         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16829
16830         cloexec: preserve text vs. binary across dup_cloexec
16831         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16832         mode.
16833         * modules/dup2-tests (Depends-on): Add binary-io.
16834         * modules/cloexec-tests (Depends-on): Likewise.
16835         * tests/test-dup2.c (setmode, is_mode): New helpers.
16836         (main): Add tests that translation mode is preserved.
16837         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16838         Reported by Bruno Haible.
16839
16840         mgetgroups: reduce duplicate listings
16841         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16842         resulting array.
16843         * tests/test-chown.h (test_chown): Simplify client.
16844         * tests/test-lchown.h (test_lchown): Likewise.
16845
16846 2009-12-06  Bruno Haible  <bruno@clisp.org>
16847
16848         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16849         value.
16850
16851 2009-12-06  Bruno Haible  <bruno@clisp.org>
16852
16853         * lib/progname.c: Include stdio.h, stdlib.h.
16854         (set_program_name): Reject a NULL argument.
16855
16856 2009-12-05  Eric Blake  <ebb9@byu.net>
16857
16858         pipe2-safer: new module
16859         * modules/pipe2-safer: New file.
16860         * lib/unistd-safer.h (pipe2_safer): New prototype.
16861         * lib/unistd--.h (pipe2): New wrapper.
16862         * lib/pipe-safer.c (pipe2_safer): New function.
16863         * modules/pipe (Depends-on): Add pipe2-safer.
16864         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16865
16866         stdlib-safer: preserve cloexec flag for mkostemp[s]
16867         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16868         fd_safer_flag.
16869
16870         unistd-safer: allow preservation of cloexec status via flag
16871         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16872         prototypes.
16873         * lib/dup-safer.c (dup_safer_flag): New function.
16874         * lib/fd-safer.c (fd_safer_flag): Likewise.
16875         * modules/cloexec (configure.ac): Set witness.
16876
16877         test-dup2: enhance test
16878         * modules/dup2-tests (Depends-on): Add cloexec.
16879         * tests/test-dup2.c (main): Enhance test.
16880
16881         cloexec: add dup_cloexec
16882         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16883         header and comments.
16884         * lib/cloexec.c (set_cloexec_flag): Add comments.
16885         (dup_cloexec): New function, with mingw implementation borrowed
16886         from...
16887         * lib/w32spawn.h (dup_noinherit): ...here.
16888         * modules/execute (Depends-on): Add cloexec.
16889         * modules/pipe (Depends-on): Likewise.
16890         * modules/cloexec (Depends-on): Add dup2.
16891         * modules/cloexec-tests (Files): New file.
16892         * tests/test-cloexec.c: Likewise.
16893
16894         test-xalloc-die: fix test for mingw
16895         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16896         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16897         directory and .exe suffix off argv[0] output.
16898
16899         test-fseeko: fix test for mingw
16900         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16901         than undefining fseek, so test will pass on mingw.
16902
16903 2009-12-05  Bruno Haible  <bruno@clisp.org>
16904
16905         * lib/progname.h (set_program_name): Clarify specification.
16906         * lib/progname.c (set_program_name): Likewise.
16907         Reported by Jim Meyering.
16908
16909 2009-12-05  Jim Meyering  <meyering@redhat.com>
16910
16911         maint.mk: backslash-escape parens in default regexp
16912         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16913         backslash-escape the literal parentheses.
16914
16915         maint.mk: news-date-check: use grep -E
16916         * top/maint.mk (today): Define a Make variable, not a...
16917         (news-date-check): ...shell variable.
16918         (news-date-regexp): Use the Make variable.
16919         Use grep's -E option.  Change the failing diagnostic to mention
16920         the variable, $(news-date-regexp).
16921
16922 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16923
16924         maintainer-makefile: allow customization of NEWS entry format
16925         * top/maint.mk (news-date-regexp): New overridable variable.
16926         (news-date-check): Use it.
16927
16928 2009-12-04  Eric Blake  <ebb9@byu.net>
16929
16930         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16931         * lib/mgetgroups.h (xgetgroups): New prototype.
16932         * lib/mgetgroups.c (xgetgroups): New wrapper.
16933         (mgetgroups): Handle ENOSYS.
16934         * modules/mgetgroups (Depends-on): Add realloc.
16935         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16936
16937         mgetgroups: avoid argument promotion issues with -1
16938         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16939         for invalid gid_t.
16940         * tests/test-chown.h (getegid, test_chown): Likewise.
16941         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16942
16943 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16944
16945         exclude: Fix header file problems.
16946         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16947
16948 2009-12-01  Jim Meyering  <meyering@redhat.com>
16949
16950         fts: fts_open: do not let an empty string cause immediate failure
16951         This is required in support of GNU rm, for which the command
16952         "rm A '' B" must process and remove both A and B, in spite of
16953         the empty string argument.
16954         * lib/fts.c (fts_open): Do not let the presence of an empty string
16955         cause fts_open to fail immediately.  Most fts-using tools must be
16956         able to process all arguments, in order, and can be expected to
16957         diagnose such arguments themselves.
16958
16959 2009-11-30  Eric Blake  <ebb9@byu.net>
16960
16961         utimens: fix compilation error
16962         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16963         Declare variable at right scope.
16964
16965 2009-11-29  Jim Meyering  <meyering@redhat.com>
16966
16967         bootstrap: handle perl-5.11's changed --version output
16968         * build-aux/bootstrap (get_version): Handle perl separately,
16969         since perl-5.11's --version output is different.
16970
16971 2009-11-28  Jim Meyering  <meyering@redhat.com>
16972
16973         userspec: depend on the inttostr module, too
16974         * modules/userspec (Depends-on): Add inttostr.
16975
16976         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16977         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16978         number of MAXUID when it evaluates to (uid_t) -1.
16979         Likewise for group ID.  Reported by Matt McCutchen in
16980         <http://savannah.gnu.org/bugs/?28113>
16981
16982         userspec: reformat to use spaces, not TABs
16983         * lib/userspec.c: Expand TABs to spaces.
16984         Add Emacs' "indent-tabs-mode: nil" hint.
16985
16986 2009-11-27  Eric Blake  <ebb9@byu.net>
16987
16988         getopt-gnu: flush out another BSD bug
16989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16990         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16991         flush out BSD bug.
16992         * tests/test-getopt.h (test_getopt): End lists with NULL.
16993         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16994         (test_getopt_long_posix): Enhance test.
16995         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16996         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16997         getopt-gnu.
16998         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16999         Likewise.
17000
17001 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17002
17003         * modules/idpriv-droptemp-tests (Notice): Fix text.
17004
17005 2009-11-27  Jim Meyering  <meyering@redhat.com>
17006
17007         test-xalloc-die: avoid spurious failure due to libtool argv difference
17008         In a libtool-enabled project, this test would fail due to a difference
17009         in the emitted program name, e.g.,
17010         -test-xalloc-die: memory exhausted
17011         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17012         Use program to avoid that.
17013         * modules/xalloc-die-tests (Depends-on): Add progname.
17014         * tests/test-xalloc-die.c: Include progname.h".
17015         (program_name): Remove decl.
17016         (main): Call set_program_name.
17017         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17018
17019 2009-11-26  Richard Jones  <rjones@redhat.com>
17020
17021         w32sock: leave win32 error in place.
17022         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17023
17024 2009-11-26  Eric Blake  <ebb9@byu.net>
17025
17026         init.sh: suggest to use skip_ and fail_ functions in comments
17027         * tests/init.sh: Add a sentence.
17028
17029 2009-11-25  Bruno Haible  <bruno@clisp.org>
17030
17031         init.sh: add documentation in comments
17032         * tests/init.sh: Add some developer and user documentation.
17033
17034 2009-11-26  Jim Meyering  <meyering@redhat.com>
17035
17036         init.sh: accommodate even those who specify bogus srcdir manually
17037         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17038         configure-time tests to be sanitized, so that there is no need to
17039         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17040         (with no double quotes) suffices.  However, since tests may be
17041         invoked manually, and since you may explicitly set srcdir to the
17042         name of a directory containing spaces, do quote its uses here.
17043         * tests/test-pread.sh: Likewise.
17044         Suggested by Bruno Haible.
17045
17046         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17047         * tests/test-pread.sh: Write no data into the pipe, because
17048         test-pread actually reads none.  This avoids a diagnostic,
17049         "bash: echo: write error: Broken pipe", that arises in the unusual
17050         event something is ignoring SIGPIPE, and might be interpreted
17051         as some sort of failure.  Reported by Bruno Haible.
17052
17053 2009-11-25  Jim Meyering  <meyering@redhat.com>
17054
17055         test-pread: cover failure with ESPIPE and EINVAL
17056         * tests/test-pread.c (main): Test for failure, too.
17057         * tests/test-pread.sh: Invoke with stdin on a pipe.
17058         Suggested by Eric Blake.
17059
17060         pread: improvement and fix
17061         * modules/pread (Depends-on): Depend on lseek, for portability to
17062         e.g., mingw.  Suggested by Eric Blake.
17063         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17064
17065         unistd.in.h: correct declaration of pread
17066         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17067         Reported by Richard W.M. Jones.
17068
17069         test-pread.sh: distribute the test script
17070         * modules/pread-tests (Files): Include test-pread.sh.
17071
17072         test-pread.sh: clean up
17073         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17074         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17075         That is unnecessary, since it's always ".".
17076         Suggestion from Eric Blake.
17077
17078         test-pread.sh: make executable
17079         * tests/test-pread.sh: Set executable bit.
17080         Reported by Eric Blake.
17081
17082         correct typo in test-pread.sh
17083         * tests/test-pread.sh: Add #! line.
17084
17085         test pread
17086         * tests/test-pread.c: New file.
17087         * tests/test-pread.sh: Likewise.
17088         * modules/pread-tests: Likewise.
17089
17090         pread: new module
17091         * modules/pread: New file.
17092         * lib/unistd.in.h (pread): Define/declare.
17093         * lib/pread.c (pread): New file.
17094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17095         * modules/unistd (Makefile.am): Substitute witnesses.
17096         * doc/posix-functions/pread.texi (pread): Update.
17097         * MODULES.html.sh: Add pread.
17098
17099 2009-11-25  Jim Meyering  <meyering@redhat.com>
17100
17101         tests/init.sh: new file to be used via most *.sh tests
17102         * tests/init.sh: New file.
17103
17104 2009-11-25  Eric Blake  <ebb9@byu.net>
17105
17106         utimens: work around older Linux failure with symlinks
17107         * lib/utimens.c (lutimensat_works_really): New variable.
17108         (fdutimens, lutimens): Use it to manage kernels that support
17109         nanosecond times on files, but not on symlinks.
17110         Reported by OndÅ™ej Vašík.
17111
17112         utimes: fix configure grammar
17113         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17114
17115 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17116
17117         regex: Fix fastmap for multibyte character ranges.
17118         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17119         characters when a multibyte character range is included.
17120
17121 2009-11-22  Andy Wingo  <wingo@pobox.com>
17122
17123         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17124         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17125
17126 2009-11-24  Bruno Haible  <bruno@clisp.org>
17127
17128         doc: Most *_l functions exist in MacOS X 10.5.
17129         * doc/posix-functions/duplocale.texi: Update platforms list.
17130         * doc/posix-functions/freelocale.texi: Likewise.
17131         * doc/posix-functions/newlocale.texi: Likewise.
17132         * doc/posix-functions/uselocale.texi: Likewise.
17133         * doc/posix-functions/isalnum_l.texi: Likewise.
17134         * doc/posix-functions/isalpha_l.texi: Likewise.
17135         * doc/posix-functions/isblank_l.texi: Likewise.
17136         * doc/posix-functions/iscntrl_l.texi: Likewise.
17137         * doc/posix-functions/isdigit_l.texi: Likewise.
17138         * doc/posix-functions/isgraph_l.texi: Likewise.
17139         * doc/posix-functions/islower_l.texi: Likewise.
17140         * doc/posix-functions/isprint_l.texi: Likewise.
17141         * doc/posix-functions/ispunct_l.texi: Likewise.
17142         * doc/posix-functions/isspace_l.texi: Likewise.
17143         * doc/posix-functions/isupper_l.texi: Likewise.
17144         * doc/posix-functions/iswalnum_l.texi: Likewise.
17145         * doc/posix-functions/iswalpha_l.texi: Likewise.
17146         * doc/posix-functions/iswblank_l.texi: Likewise.
17147         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17148         * doc/posix-functions/iswctype_l.texi: Likewise.
17149         * doc/posix-functions/iswdigit_l.texi: Likewise.
17150         * doc/posix-functions/iswgraph_l.texi: Likewise.
17151         * doc/posix-functions/iswlower_l.texi: Likewise.
17152         * doc/posix-functions/iswprint_l.texi: Likewise.
17153         * doc/posix-functions/iswpunct_l.texi: Likewise.
17154         * doc/posix-functions/iswspace_l.texi: Likewise.
17155         * doc/posix-functions/iswupper_l.texi: Likewise.
17156         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17157         * doc/posix-functions/isxdigit_l.texi: Likewise.
17158         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17159         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17160         * doc/posix-functions/strcoll_l.texi: Likewise.
17161         * doc/posix-functions/strfmon_l.texi: Likewise.
17162         * doc/posix-functions/strftime_l.texi: Likewise.
17163         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17164         * doc/posix-functions/strxfrm_l.texi: Likewise.
17165         * doc/posix-functions/tolower_l.texi: Likewise.
17166         * doc/posix-functions/toupper_l.texi: Likewise.
17167         * doc/posix-functions/towctrans_l.texi: Likewise.
17168         * doc/posix-functions/towlower_l.texi: Likewise.
17169         * doc/posix-functions/towupper_l.texi: Likewise.
17170         * doc/posix-functions/wcscoll_l.texi: Likewise.
17171         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17172         * doc/posix-functions/wctrans_l.texi: Likewise.
17173         * doc/posix-functions/wctype_l.texi: Likewise.
17174         * doc/glibc-functions/strptime_l.texi: Likewise.
17175         * doc/glibc-functions/strtod_l.texi: Likewise.
17176         * doc/glibc-functions/strtof_l.texi: Likewise.
17177         * doc/glibc-functions/strtol_l.texi: Likewise.
17178         * doc/glibc-functions/strtold_l.texi: Likewise.
17179         * doc/glibc-functions/strtoll_l.texi: Likewise.
17180         * doc/glibc-functions/strtoul_l.texi: Likewise.
17181         * doc/glibc-functions/strtoull_l.texi: Likewise.
17182         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17183         * doc/glibc-functions/wcstod_l.texi: Likewise.
17184         * doc/glibc-functions/wcstof_l.texi: Likewise.
17185         * doc/glibc-functions/wcstol_l.texi: Likewise.
17186         * doc/glibc-functions/wcstold_l.texi: Likewise.
17187         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17188         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17189         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17190
17191 2009-11-24  Bruno Haible  <bruno@clisp.org>
17192
17193         duplocale: Fix logic bug.
17194         * lib/duplocale.c: Don't include <langinfo.h>.
17195         (_NL_LOCALE_NAME): Remove macro.
17196         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17197         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17198
17199 2009-11-23  Jim Meyering  <meyering@redhat.com>
17200
17201         test-update-copyright: don't hard-code /usr/bin/perl
17202         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17203         perl to print the current year.  Gilles Espinasse reported that
17204         the replaced use of perl was hard-coded as /usr/bin/perl.
17205
17206 2009-11-23  Bruno Haible  <bruno@clisp.org>
17207
17208         duplocale: Add support for glibc 2.3.x.
17209         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17210
17211 2009-11-22  Bruno Haible  <bruno@clisp.org>
17212
17213         vasnprintf: Tiny optimization.
17214         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17215         MacOS X.
17216
17217 2009-11-22  Bruno Haible  <bruno@clisp.org>
17218
17219         Tests for module 'duplocale'.
17220         * modules/duplocale-tests: New file.
17221         * tests/test-duplocale.c: New file.
17222
17223         New module 'duplocale'.
17224         * m4/duplocale.m4: New file.
17225         * lib/locale.in.h (duplocale): New declaration.
17226         * lib/duplocale.c: New file.
17227         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17228         gl_LOCALE_H_DEFAULTS): New macros.
17229         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17230         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17231         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17232         REPLACE_DUPLOCALE.
17233         * modules/duplocale: New file.
17234         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17235
17236 2009-11-22  Bruno Haible  <bruno@clisp.org>
17237
17238         * modules/locale-tests (configure.ac): Test for newlocale function.
17239         * tests/test-locale.c: When the system has extended locale functions,
17240         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17241
17242         locale: Make locale_t available when possible.
17243         * lib/locale.in.h: Include <xlocale.h> when it exists.
17244         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17245         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17246         * modules/locale (Depends-on): Add extensions.
17247         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17248         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17249
17250 2009-11-22  Bruno Haible  <bruno@clisp.org>
17251
17252         Add comments.
17253         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17254         invocation.
17255         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17256         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17257         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17258
17259 2009-11-22  Bruno Haible  <bruno@clisp.org>
17260
17261         error: account for the possibility of freopen (stdout).
17262         * lib/error.c: Include <unistd.h>.
17263         (flush_stdout): New function, extracted from error and error_at_line.
17264         Determine stdout's fd dynamically.
17265         (error, error_at_line): Invoke flush_stdout.
17266         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17267         * modules/error (Depends-on): Add unistd.
17268
17269 2009-11-22  Bruno Haible  <bruno@clisp.org>
17270
17271         diffseq: Add comment.
17272         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17273
17274 2009-11-22  Jim Meyering  <meyering@redhat.com>
17275
17276         c-stack: avoid defining an unused static function
17277         * lib/c-stack.c (find_stack_direction): Do not define this function
17278         when it will not be used.
17279
17280         diffseq: avoid spurious gcc warnings
17281         * lib/diffseq.h (IF_LINT2): Define.
17282         (compareseq): Use it to initialize two members of "part".
17283         This avoids two used-uninitialized warnings.
17284
17285 2009-11-21  Jim Meyering  <meyering@redhat.com>
17286
17287         c-stack: avoid "ignoring return value of `write'" warning
17288         * lib/c-stack.c: Include "ignore-value.h".
17289         (die): Explicitly ignore each write return value.
17290         * modules/c-stack (Depends-on): Add ignore-value.
17291
17292 2009-11-21  Bruno Haible  <bruno@clisp.org>
17293
17294         diffseq: reduce scope of variable 'best'.
17295         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17296         variable, earlier used for two different purposes.
17297
17298 2009-11-21  Jim Meyering  <meyering@redhat.com>
17299
17300         diffseq: remove useless assignment to "best"
17301         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17302         assignment.  At that point "best" is already guaranteed to be zero.
17303
17304 2009-11-20  Eric Blake  <ebb9@byu.net>
17305
17306         build: mention ftp redirector in release announcements
17307         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17308         values that used to come from cfg.mk; mention FTP redirect URL.
17309         * build-aux/announce-gen: Mention the mirror list.
17310         Suggested by Karl Berry.
17311
17312         nanosleep: improve port to mingw
17313         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17315         LIB_NANOSLEEP, but only when needed.
17316         * modules/select (Link): Document LIBSOCKET.
17317         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17318         enough.
17319
17320         nanosleep: work around cygwin bug
17321         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17322         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17323         bug.
17324         (getnow): Delete, not needed.
17325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17326         LIB_CLOCK_GETTIME.
17327         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17328         clock-time, gettime.
17329         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17330         bug.
17331         * modules/nanosleep-tests: New test.
17332         * tests/test-nanosleep.c: New file.
17333
17334         sleep: work around cygwin bug
17335         * lib/sleep.c (rpl_sleep): Work around the bug.
17336         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17337         (gl_PREREQ_SLEEP): Delete unused macro.
17338         * modules/sleep (Depends-on): Add verify.
17339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17340         * modules/unistd (Makefile.am): Substitute witness.
17341         * lib/unistd.in.h (sleep): Update prototype.
17342         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17343         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17344         * modules/sleep-tests (Depends-on): Check for alarm.
17345
17346 2009-11-20  Jim Meyering  <meyering@redhat.com>
17347
17348         maint.mk: improve sc_prohibit_magic_number_exit
17349         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17350         so it does not match uses like System.exit(1).
17351         Add comments showing how to correct all offenders.
17352
17353 2009-11-19  Eric Blake  <ebb9@byu.net>
17354
17355         xalloc-die-tests: add missing library
17356         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17357
17358         test-xvasprintf: silence compiler warnings
17359         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17360         empty string from gcc.
17361
17362 2009-11-19  Jim Meyering  <meyering@redhat.com>
17363
17364         xfreopen: new module, from coreutils
17365         * modules/xfreopen: New module.
17366         * lib/xfreopen.c: New file.
17367         * lib/xfreopen.h: New file.
17368         * MODULES.html.sh (File stream based Input/Output"): Add it.
17369
17370 2009-11-19  Eric Blake  <ebb9@byu.net>
17371
17372         manywarnings: depend on warnings
17373         * modules/manywarnings (Depends-on): Add warnings.
17374
17375         build: avoid compiler warnings
17376         * lib/select.c (rpl_select): Delete unused variable.
17377         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17378
17379 2009-11-18  Eric Blake  <ebb9@byu.net>
17380
17381         tests: avoid false negative with --with-packager
17382         * tests/test-version-etc.sh: Discard packager information.
17383         * tests/test-argp-version-etc-1.sh: Likewise.
17384         Reported by Mike Frysinger.
17385
17386         utimens: fix regression on Solaris
17387         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17388         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17389         can only change fd timestamps via futimesat.  Instead, use an
17390         additional witness macro to avoid BSD bug.
17391         Reported by Jim Meyering.
17392
17393 2009-11-17  Eric Blake  <ebb9@byu.net>
17394
17395         usleep: use it to simplify tests
17396         * modules/stat-time-tests (Depends-on): Add usleep.
17397         (configure.ac): Drop usleep check.
17398         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17399         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17400         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17401         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17402         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17403         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17404         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17405         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17406         Likewise.
17407         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17408         * tests/test-lchown.h (nap): Likewise.
17409         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17410         * tests/test-stat-time.c (nap): Likewise.
17411         * tests/test-utimens-common.h (nap): Update comments.
17412
17413         usleep: new module
17414         * modules/usleep: New file.
17415         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17416         * lib/usleep.c (usleep): Likewise.
17417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17418         * modules/unistd (Makefile.am): Substitute witnesses.
17419         * lib/unistd.in.h (usleep): Add declaration.
17420         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17421         * MODULES.html.sh (Date and time): Likewise.
17422         * modules/usleep-tests (Depends-on): New test.
17423         * tests/test-usleep.c: New file.
17424
17425         chown: work around OpenBSD bug
17426         * lib/chown.c (rpl_chown): Work around the bug.
17427         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17428         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17429         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17430         * modules/chown (Depends-on): Add stdbool.
17431         * modules/lchown (Depends-on): Likewise.
17432         * doc/posix-functions/chown.texi (chown): Document the bug.
17433         * doc/posix-functions/lchown.texi (lchown): Likewise.
17434         * tests/test-lchown.h (test_chown): Relax test.
17435
17436         mkstemp: avoid conflict with C++ keyword template
17437         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17438         * lib/mkostemp.c (mkostemp): Likewise.
17439         * lib/mkostemps.c (mkostemps): Likewise.
17440         * lib/mkstemp.c (mkstemp): Likewise.
17441         * lib/mkstemps.c (mkstemps): Likewise.
17442
17443         xalloc-die-tests: optimize
17444         * tests/test-xalloc-die.sh: Reduce number of processes.
17445
17446 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17447
17448         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17449         patch from ludo@gnu.org (Ludovic Courtès).
17450
17451 2009-11-17  Jim Meyering  <meyering@redhat.com>
17452
17453         version-etc: use proper license string
17454         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17455         * modules/version-etc-fsf: Likewise.
17456
17457 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17458
17459         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17460         printed to stdout.  Deal with EOL differences.
17461
17462 2009-11-17  Eric Blake  <ebb9@byu.net>
17463
17464         unsetenv: work around Solaris bug
17465         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17466         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17467         Reported by Jim Meyering.
17468
17469         vasnprintf: avoid compiler warnings
17470         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17471         variables.
17472         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17473
17474 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17475
17476         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17477         settings since xalloc-die is no longer the self test,
17478         xalloc-die.sh is.
17479
17480 2009-11-17  Jim Meyering  <meyering@redhat.com>
17481
17482         test-xalloc-die.sh: make the code agree with the commit log
17483         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17484         at the end, just in case you happen to have a test-xalloc-die
17485         program in some other PATH directory.
17486
17487         test-xalloc-die.sh: fix a portability bug
17488         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17489         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17490         Otherwise, argv[0] (as often seen in diagnostics) would be too
17491         system-dependent, sometimes with, and sometimes without the leading "./".
17492
17493         version-etc-fsf: relax license to LGPLv3+
17494         * modules/version-etc-fsf (License): Relax license.
17495
17496 2009-11-16  Eric Blake  <ebb9@byu.net>
17497
17498         xalloc-die-tests: avoid printing null pointer
17499         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17500         shell script.
17501         * tests/test-xalloc-die.c (program_name): Declare.
17502         * tests/test-xalloc-die.sh (tmpfiles): New file.
17503
17504         setenv, unsetenv: work around various bugs
17505         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17506         (setenv) [HAVE_SETENV]: Work around bugs.
17507         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17508         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17509         for bugs.
17510         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17511         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17513         * modules/stdlib (Makefile.am): Update substitutions.
17514         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17515         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17516         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17517         * modules/setenv-tests: New test.
17518         * modules/unsetenv-tests: Likewise.
17519         * tests/test-setenv.c: New file.
17520         * tests/test-unsetenv.c: Likewise.
17521
17522 2009-11-16  Jim Meyering  <meyering@redhat.com>
17523
17524         version-etc: relax license to LGPLv3+
17525         * modules/version-etc (License): Relax license.
17526
17527         better AC_REQUIRE expanded-before-required-warning avoidance
17528         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17529         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17530         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17531         which is no longer needed.
17532
17533 2009-11-16  Eric Blake  <ebb9@byu.net>
17534
17535         test-freading: clean up temporary file
17536         * tests/test-freading.c (main): Remove file on success, and use
17537         ASSERT more liberally.
17538         Reported by Jim Meyering.
17539
17540 2009-11-16  Jim Meyering  <meyering@redhat.com>
17541
17542         avoid new AC_REQUIRE expanded-before-required warnings
17543         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17544         merely using it.
17545         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17546         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17547
17548 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17549
17550         * tests/test-xalloc-die.c: New file.
17551         * modules/xalloc-die-tests: New file.
17552         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17553         XFAIL_TESTS so it can be appended by modules.
17554
17555 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17556
17557         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17558         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17559
17560 2009-11-14  Eric Blake  <ebb9@byu.net>
17561
17562         fnmatch: avoid compiler warning
17563         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17564         to silence compiler warning about mismatch signedness in ?:.
17565         Reported by Robert Millan.
17566
17567         intprops: add double-inclusion guard
17568         * lib/intprops.h: Allow idempotent includes.
17569         Suggested by Bruce Korb.
17570
17571         openat: detect Solaris fchownat bug
17572         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17573         penalizing glibc chownat when only lchownat is broken.
17574         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17575         trailing slash bugs.
17576         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17577         * modules/openat-tests (Files): Include more files.
17578         (Depends-on): Add mgetgroups, sleep, stat-time.
17579         (configure.ac): Add additional checks.
17580         (Makefile.am): Build new test.
17581         * tests/test-fchownat.c: New file.
17582
17583         lchown: detect Solaris and FreeBSD bug
17584         * lib/lchown.c (rpl_lchown): Work around bug.
17585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17587         * modules/unistd (Makefile.am): Populate it.
17588         * lib/unistd.in.h (lchown): Update declaration.
17589         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17590         * modules/lchown-tests: New file.
17591         * tests/test-lchown.h (test_lchown): Likewise.
17592         * tests/test-lchown.c (main): Likewise.
17593
17594         chown: detect Solaris and FreeBSD bug
17595         * lib/chown.c (rpl_chown): Work around bug.
17596         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17597         (gl_PREREQ_CHOWN): Delete.
17598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17599         * modules/unistd (Makefile.am): Populate it.
17600         * lib/unistd.in.h (chown): Update declaration.
17601         * lib/lchown.c (chown): Update client.
17602         * modules/lchown (Depends-on): Add lstat.
17603         * doc/posix-functions/chown.texi (chown): Document the bug.
17604         * doc/posix-functions/getgroups.texi (getgroups): Document
17605         getgroups pitfall.
17606         * modules/chown-tests: New file.
17607         * tests/test-chown.h (test_chown): Likewise.
17608         * tests/test-chown.c (main): Likewise.
17609
17610 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17611
17612         gnulib-tool: correctly detect absence of m4 directories
17613         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17614
17615 2009-11-14  Jim Meyering  <meyering@redhat.com>
17616
17617         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17618         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17619
17620 2009-11-14  John W. Eaton  <jwe@gnu.org>
17621
17622         strftime.h: wrap funtion declaration in extern "C" block
17623         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17624
17625 2009-11-13  Eric Blake  <ebb9@byu.net>
17626
17627         getgroups: avoid compiler warning
17628         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17629
17630         getgroups: work around FreeBSD bug
17631         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17632         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17633         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17634         * tests/test-getgroups.c (main): Fix buffer overrun.
17635
17636         getgroups: avoid compilation failure
17637         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17638         * modules/getgroups (Depends-on): Add stdint.
17639
17640 2009-11-13  Jim Meyering  <meyering@redhat.com>
17641
17642         test-getgroups: avoid compilation failure
17643         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17644
17645 2009-11-13  Eric Blake  <ebb9@byu.net>
17646
17647         mgetgroups: new module, taken from coreutils
17648         * modules/mgetgroups: New file.
17649         * lib/mgetgroups.h: Likewise.
17650         * lib/mgetgroups.c (mgetgroups): Likewise.
17651         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17652         * MODULES.html.sh (Users and groups): Mention it.
17653
17654         getgroups: don't expose GETGROUPS_T to user
17655         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17656         an element at a time if GETGROUPS_T is wrong size.
17657         * lib/getugroups.h (getugroups): Change signature.
17658         * lib/unistd.in.h (getgroups): Likewise.
17659         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17660         signature needs fixing.
17661         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17662         AC_TYPE_GETGROUPS.
17663         * modules/group-member (Depends-on): Add getgroups.
17664         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17665         (group_member): Rely on getgroups replacement.
17666         * lib/getugroups.c (getugroups): Use gid_t.
17667         * tests/test-getgroups.c (main): Likewise.
17668         * NEWS: Mention the signature change.
17669         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17670         problem with signature.
17671         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17672         GETGROUPS_T is still useful for setgroups.
17673
17674         getgroups, getugroups: provide stubs for mingw
17675         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17676         * lib/getugroups.c (getugroups): Likewise.
17677         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17678         function.  Modernize replacement scheme.
17679         (gl_PREREQ_GETGROUPS): Delete.
17680         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17681         * modules/getgroups (configure.ac): Declare witness.
17682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17683         * modules/unistd (Depends-on): Substitute witness.
17684         * lib/unistd.in.h (getgroups): Declare replacement.
17685
17686         getgroups: avoid calling exit
17687         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17688         drop xalloc.
17689         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17690         dependencies.
17691         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17692         exiting, in the rare case of malloc failure.
17693
17694         getgroups: fix logic error
17695         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17696         has more than 20 groups.
17697         * modules/getgroups-tests: New test.
17698         * tests/test-getgroups.c: New file.
17699
17700 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17701
17702         * tests/test-base64.c: Improve.
17703
17704 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17705
17706         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17707         Blake <ebb9@byu.net>.
17708
17709 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17710
17711         * tests/test-xvasprintf.c: Add %s%s related checks.
17712
17713 2009-11-12  Eric Blake  <ebb9@byu.net>
17714
17715         version-etc: match standards.texi style
17716         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17717         and use <> only for URLs.
17718
17719 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17720
17721         fts: do not fail on a submount during traversal
17722         * lib/fts.c (fts_build): Read the stat info again after opening
17723         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17724         Original report at http://bugzilla.redhat.com/501848.
17725
17726 2009-11-12  Jim Meyering  <meyering@redhat.com>
17727
17728         bootstrap: sync from coreutils
17729         * build-aux/bootstrap (bootstrap_epilogue): New function.
17730         Use git_modules_config in one more place.  This make bootstrap's
17731         --gnulib-srcdir option more useful for testing.
17732
17733         bootstrap: generalize autoheader check
17734         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17735         AC_CONFIG_HEADERS.
17736
17737 2009-11-11  Eric Blake  <ebb9@byu.net>
17738
17739         mkfifoat: use new modules for Solaris and BSD bugs
17740         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17741         * lib/mkfifoat.c (mknodat): Split...
17742         * lib/mknodat.c (mknodat): ...into new file.
17743         * modules/mkfifoat (Files): Ship new file.
17744         (Depends-on): Add mkfifo, mknod.
17745         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17746         (Depends-on): Add symlink.
17747         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17748         redundant with test_mkfifo.h.
17749         (do_mkfifoat, do_mknodat): New helpers.
17750
17751         mknod: new module
17752         * modules/mknod: New file.
17753         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17754         * lib/mknod.c (mknod): Likewise.
17755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17756         defaults.
17757         * modules/sys_stat (Makefile.am): Substitute them.
17758         * lib/sys_stat.in.h (mknod): Declare replacement.
17759         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17760         Document it.
17761         * doc/posix-functions/mknod.texi (mknod): Likewise.
17762         * modules/mknod-tests: New test.
17763         * tests/test-mknod.c: Likewise.
17764
17765         mkfifo: new module
17766         * modules/mkfifo: New file.
17767         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17768         * lib/mkfifo.c (mkfifo): Likewise.
17769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17770         defaults.
17771         * modules/sys_stat (Makefile.am): Substitute them.
17772         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17773         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17774         Document it.
17775         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17776         * modules/mkfifo-tests: New test.
17777         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17778         from test-mkfifoat.c.
17779         * tests/test-mkfifo.c: New file.
17780
17781         readlink: detect FreeBSD bug
17782         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17783         slash on symlink.
17784         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17785         * tests/test-readlink.h (test_readlink): Enhance test.
17786
17787         symlink: detect FreeBSD bug
17788         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17789         slash on symlink.
17790         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17791         * tests/test-symlink.h (test_symlink): Enhance test.
17792
17793 2009-11-10  Eric Blake  <ebb9@byu.net>
17794
17795         link: detect FreeBSD bug
17796         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17797         symlink.
17798         * doc/posix-functions/link.texi (link): Document the bug.
17799         * tests/test-link.h (test_link): Enhance test.
17800         * tests/test-linkat.c (main): Update caller.
17801
17802         unlink, remove: detect FreeBSD bug
17803         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17804         slash on symlink.
17805         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17806         * doc/posix-functions/remove.texi (remove): Likewise.
17807         * tests/test-unlink.h (test_unlink): Enhance test.
17808         * tests/test-remove.c (main): Likewise.
17809
17810 2009-11-09  Eric Blake  <ebb9@byu.net>
17811
17812         rename: detect FreeBSD bug
17813         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17814         slash on symlink.
17815         * modules/renameat-tests (Depends-on): Add filenamecat.
17816         * tests/test-rename.h (test_rename): Allow one more errno.
17817         * tests/test-renameat.c (main): Likewise.
17818         * doc/posix-functions/rename.texi (rename): Document the bug.
17819
17820         open: detect FreeBSD bug
17821         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17822         symlink.
17823         * doc/posix-functions/open.texi (open): Document the bug.
17824         * doc/posix-functions/utimes.texi (utimes): Likewise.
17825         * tests/test-open.h (test_open): Add parameters, and test symlink
17826         handling.
17827         * tests/test-open.c (main): Adjust caller.
17828         * tests/test-fcntl-safer.c (main): Likewise.
17829         * modules/open-tests (Depends-on): Add stdbool, symlink.
17830         * modules/fcntl-safer-tests (Depends-on): Likewise.
17831         * tests/test-openat.c (main): Add test-open tests.
17832
17833         stat: detect FreeBSD bug
17834         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17835         symlink.
17836         * doc/posix-functions/stat.texi (stat): Document the bug.
17837         * tests/test-stat.h (test_stat_func): Add argument.
17838         * tests/test-stat.c (main): Adjust caller.
17839         * tests/test-fstatat.c (main): Likewise.
17840         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17841         Reported by Jim Meyering.
17842
17843 2009-11-09  James Youngman  <jay@gnu.org>
17844
17845         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17846         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17847
17848 2009-11-08  Jim Meyering  <meyering@redhat.com>
17849
17850         utimens: remove invalid futimesat call
17851         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17852         It used the file descriptor of the target file as the DIR_FD
17853         parameter and NULL as the file name.  That caused failure with
17854         errno == EFAULT on FreeBSD-8.0-rc2
17855
17856 2009-11-07  Eric Blake  <ebb9@byu.net>
17857
17858         fflush, freadseek: use fseeko, not fseek
17859         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17860         (clear_ungetc_buffer): Avoid potential problems on large files.
17861         * lib/freadseek.c (freadseek): Likewise.
17862         * modules/freadseek (Depends-on): Add fseeko.
17863         * modules/fseek (configure.ac): Set a witness.
17864         * tests/test-fflush.c (main): Use fseeko.
17865         * tests/test-fpurge.c (fseek): Disable link warning.
17866         * tests/test-freadable.c (fseek): Likewise.
17867         * tests/test-freading.c (fseek): Likewise.
17868         * tests/test-fseeko.c (fseek): Likewise.
17869         * tests/test-ftell.c (fseek): Likewise.
17870         * tests/test-ftello.c (fseek): Likewise.
17871         * tests/test-fwritable.c (fseek): Likewise.
17872         * tests/test-fwriting.c (fseek): Likewise.
17873
17874 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17875
17876         * modules/memchr (Depends-on): Drop getpagesize dependency.
17877
17878 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17879
17880         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17881         Reported by Ludovic Courtès.
17882         * build-aux/pmccabe2html: Improve example usage.
17883         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17884
17885 2009-11-06  Jim Meyering  <meyering@redhat.com>
17886
17887         do-release-commit-and-tag: New module.
17888         Automate the release-commit and tag process.
17889         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17890         * modules/do-release-commit-and-tag: New file.
17891         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17892
17893 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17894
17895         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17896         because test-select.c uses inet_pton.
17897
17898 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17899
17900         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17901         GETADDRINFO_LIB.  Bump serial number.
17902         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17903         Suggested by Eric Blake <ebb9@byu.net>.
17904
17905 2009-11-05  Eric Blake  <ebb9@byu.net>
17906
17907         strtod: detect darwin bug
17908         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17909         Reported by Leo Davis.
17910
17911         freopen-safer: new module
17912         * modules/freopen-safer: New module.
17913         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17914         * lib/freopen-safer.c (freopen_safer): New file.
17915         * lib/stdio-safer.h (freopen_safer): New declaration.
17916         * lib/stdio--.h (freopen): New override.
17917         * MODULES.html.sh (File stream based Input/Output): Mention it.
17918         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17919         freopen-safer module.
17920         * doc/posix-functions/stderr.texi (stderr): Likewise.
17921         * doc/posix-functions/stdin.texi (stdin): Likewise.
17922         * doc/posix-functions/stdout.texi (stdout): Likewise.
17923         * modules/freopen-safer-tests: New test.
17924         * tests/test-reopen-safer.c: New file.
17925
17926 2009-11-05  Jim Meyering  <meyering@redhat.com>
17927
17928         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17929         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17930
17931 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17932
17933         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17934
17935 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17936
17937         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17938
17939 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17940
17941         Fix link error.
17942         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17943         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17944
17945 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17946
17947         * tests/test-func.c: Also test value of __func__.
17948
17949 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17950
17951         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17952         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17953
17954 2009-11-05  Bruno Haible  <bruno@clisp.org>
17955
17956         Fix link error.
17957         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17958         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17959         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17960
17961 2009-11-05  Bruno Haible  <bruno@clisp.org>
17962
17963         Tests for module 'inet_pton'.
17964         * modules/inet_pton-tests: New file.
17965         * tests/test-inet_pton.c: New file.
17966
17967 2009-11-05  Bruno Haible  <bruno@clisp.org>
17968
17969         Tests for module 'inet_ntop'.
17970         * modules/inet_ntop-tests: New file.
17971         * tests/test-inet_ntop.c: New file.
17972
17973 2009-11-04  Eric Blake  <ebb9@byu.net>
17974
17975         stdlib-safer: wrap all mkstemp variants
17976         * modules/mkostemp (configure.ac): Set witness.
17977         * modules/mkostemps (configure.ac): Likewise.
17978         * modules/mkstemps (configure.ac): Likewise.
17979         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17980         (mkstemps_safer): Wrap more functions.
17981         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17982         wrapping.
17983         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17984         (mkstemps_safer): Implement the wrappers.
17985
17986         mkstemps, mkostemps: new modules
17987         * modules/mkostemps: New module.
17988         * modules/mkstemps: Likewise.
17989         * lib/mkostemps.c (mkostemps): New file.
17990         * lib/mkstemps.c (mkstemps): Likewise.
17991         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17992         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17994         * modules/stdlib (Makefile.am): Substitute them.
17995         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17996         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17997         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17998         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17999         * MODULES.html.sh (File system functions): Mention them.
18000
18001         tempname: resync from glibc
18002         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18003         same values for __GT_FILE as glibc.  Abort even when assertions
18004         are disabled.
18005         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18006         match its value otherwise.  Allow idempotent inclusion.
18007         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18008         * lib/mkostemp.c (mkostemp): Likewise.
18009         * lib/mkstemp.c (mkstemp): Likewise.
18010         * lib/tmpfile.c (tmpfile): Likewise.
18011         * NEWS: Document this.
18012
18013         utimens: fix use of futimens on older Linux
18014         * lib/utimens.c (fdutimens): Use updated, rather than original,
18015         timespec to avoid bug in older Linux kernel.
18016         Reported by Simon Josefsson.
18017
18018 2009-11-04  Bruno Haible  <bruno@clisp.org>
18019
18020         Make num_processors more flexible and consistent.
18021         * lib/nproc.h (enum nproc_query): New type.
18022         (num_processors): Add a 'query' argument.
18023         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18024         (num_processors): Add a 'query' argument. Test the value of the
18025         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18026         mingw, count the number of CPUs available for the current process.
18027         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18028         Check for sched_getaffinity and sched_getaffinity_np.
18029         * modules/nproc (Depends-on): Add c-ctype, extensions.
18030         * NEWS: Mention the change.
18031
18032 2009-11-03  Bruno Haible  <bruno@clisp.org>
18033
18034         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18035
18036 2009-11-03  Jim Meyering  <meyering@redhat.com>
18037
18038         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18039         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18040         if it is defined.
18041
18042 2009-11-02  Eric Blake  <ebb9@byu.net>
18043
18044         mktime, timegm: share common declaration
18045         * lib/mktime-internal.h: New file.
18046         * lib/mktime.c: Use it rather than open-coding a declaration.
18047         * lib/timegm.c: Likewise.
18048         * modules/mktime (Files): Ship it.
18049         * modules/timegm (Files): Likewise.
18050         Suggested by Bruno Haible.
18051
18052         test-update-copyright: update test to match script changes
18053         * tests/test-update-copyright.sh: Avoid hard-coding perl
18054         location.  Don't update *.bak created by earlier runs.
18055
18056 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18057             Simon Josefsson  <simon@josefsson.org>
18058             Bruno Haible  <bruno@clisp.org>
18059
18060         Fix link error on Solaris 8.
18061         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18062         also in libnsl. Define also INET_PTON_LIB.
18063         * modules/inet_pton (Link): New section.
18064
18065 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18066             Bruno Haible  <bruno@clisp.org>
18067
18068         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18069         * modules/inet_ntop (Link): New section.
18070         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18071
18072 2009-11-02  Eric Blake  <ebb9@byu.net>
18073
18074         maint: avoid compiler warnings in m4 macros
18075         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18076         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18077
18078 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18079
18080         * m4/pmccabe2html.m4: Remove file.
18081         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18082         function.  Change maintainer.
18083         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18084         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18085         Courtès).
18086
18087 2009-10-31  Eric Blake  <ebb9@byu.net>
18088
18089         fseeko: fix m4 regression
18090         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18091         regression from 2009-10-27.
18092         Reported by Ralf Wildenhues.
18093
18094 2009-10-31  Jim Meyering  <meyering@redhat.com>
18095
18096         inttostr: aesthetics and improved (compile-time) safety
18097         Define inttype_is_signed rather than inttype_is_unsigned,
18098         since the sole use is via "#if inttype_is_signed".
18099         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18100         inttype_is_unsigned.
18101         * lib/offtostr.c (inttype_is_signed): Likewise.
18102         * lib/uinttostr.c (inttype_is_signed): Likewise.
18103         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18104         * lib/inttostr.c (inttostr): Use verify to cross-check the
18105         inttype_is_signed value and the signedness of the actual type.
18106         * modules/inttostr (Depends-on): Add verify.
18107
18108 2009-10-30  Eric Blake  <ebb9@byu.net>
18109
18110         build: avoid compiler warnings
18111         * lib/fchmodat.c (lchmod): Mark unused variables.
18112         * lib/getopt.c (_getopt_initialize): Likewise.
18113         * lib/mktime.c (__mktime_internal): Provide prototype.
18114         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18115         older gcc that do not understand #pragma GCC diagnostic.
18116         * lib/uinttostr.c (inttype_is_unsigned): Define.
18117         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18118
18119 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18120
18121         stat: fix compilation on AIX
18122         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18123         only see struct stat64.
18124
18125 2009-10-30  Eric Blake  <ebb9@byu.net>
18126
18127         exclude: make more robust
18128         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18129         rather than masking a coding bug.
18130         Suggested by Bruno Haible.
18131
18132 2009-10-30  Jim Meyering  <meyering@redhat.com>
18133
18134         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18135         Rather than putting #!/usr/bin/perl on the first line,
18136         start with a variant of what's recommended by "man perlrun" that
18137         invokes the first "perl" program from your shell's search path.
18138         * build-aux/gitlog-to-changelog: Replace #!... as above.
18139         Add a "Local Variables" perl mode setting.
18140         Prompted by a patch from Ludovic Courtès.
18141         Improved by Eric Blake.
18142         * build-aux/useless-if-before-free: Likewise.
18143         * build-aux/announce-gen: Likewise.
18144         * build-aux/update-copyright: Likewise.
18145
18146 2009-10-29  Eric Blake  <ebb9@byu.net>
18147
18148         filenamecat-lgpl: adjust clients
18149         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18150         filenamecat.
18151         * modules/renameat (Depends-on): Likewise.
18152
18153         filenamecat: split into filenamecat-lgpl
18154         * modules/filenamecat-lgpl: New module.
18155         * modules/filenamecat (Files): Move library-safe files into
18156         filenamecat-lgpl.
18157         (Depends-on): Add filenamecat-lgpl.
18158         (configure.ac): Declare witness.
18159         * lib/filenamecat.h (file_name_concat): Only declare when using
18160         GPL module.
18161         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18162         Move...
18163         * lib/filenamecat-lgpl.c: ...into new file.
18164         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18165         (gl_FILE_NAME_CONCAT): Use it.
18166         * MODULES.html.sh (File system functions): Mention new module.
18167
18168         argp: avoid memory leak
18169         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18170         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18171         base_name, since the latter malloc()s and can call exit().
18172         Leak introduced 2006-07-03.
18173
18174         dirname-lgpl: adjust clients that don't need full dirname
18175         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18176         * modules/filenamecat (Depends-on): Likewise.
18177         * modules/linkat (Depends-on): Likewise.
18178         * modules/mkancesdirs (Depends-on): Likewise.
18179         * modules/mkdir (Depends-on): Likewise.
18180         * modules/openat (Depends-on): Likewise.
18181         * modules/savewd (Depends-on): Likewise.
18182         * modules/rename (Depends-on): Likewise.
18183         (License): Relax license.
18184         * modules/mkdir-tests (Depends-on): Drop progname.
18185         (Makefile.am): Delete unneeded LDADD.
18186         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18187
18188         dirname: split into dirname-lgpl
18189         * modules/dirname-lgpl: New module.
18190         * modules/dirname (Files): Move library-safe files into
18191         dirname-lgpl.
18192         (Depends-on): Add dirname-lgpl.
18193         (configure.ac): Declare witness.
18194         * modules/double-slash-root (License): Relax license.
18195         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18196         module.
18197         * lib/dirname.c (dir_len, mdir_name): Move...
18198         * lib/dirname-lgpl.c: ...into new file.
18199         * lib/basename.c (last_component, base_len): Move...
18200         * lib/basename-lgpl.c: ...into new file.
18201         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18202         (gl_DIRNAME): Use it.
18203         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18204         Mention new module.
18205         * modules/dirname-tests (Depends-on): Add progname.
18206         * tests/test-dirname.c (program_name): Delete.
18207
18208         mkdir: make safe for libraries
18209         * modules/mkdir (Depends-on): Drop xalloc.
18210         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18211         exit.
18212
18213         tests: avoid some compiler warnings
18214         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18215         literals.
18216         * tests/test-memchr.c (main): Avoid type mismatch.
18217         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18218         * tests/test-base64.c (main): Likewise.
18219         * tests/test-getdelim.c (main): Likewise.
18220         * tests/test-gethostname.c (main): Likewise.
18221         * tests/test-getline.c (main): Likewise.
18222         * tests/test-netinet_in.c (main): Likewise.
18223         * tests/test-select.c (open_server_socket, main): Likewise.
18224         * tests/test-select-stdin.c (main): Likewise.
18225         * tests/test-sockets.c (main): Likewise.
18226         * tests/test-strsignal.c (main): Likewise.
18227         * tests/test-sys_select.c (main): Likewise.
18228         * tests/test-sys_socket.c (main): Likewise.
18229         * tests/test-u64.c (main): Likewise.
18230         * tests/test-xfprintf-posix.c (main): Likewise.
18231         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18232
18233         sockets: avoid compiler warning
18234         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18235
18236         maint: detect usage(1) and other suspicious exits
18237         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18238
18239 2009-10-29  Jim Meyering  <meyering@redhat.com>
18240
18241         timespec: long-to-int truncation could make timespec_cmp malfunction
18242         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18243         a multiple of 2^32 nanoseconds as no difference.
18244
18245 2009-10-28  Jim Meyering  <meyering@redhat.com>
18246
18247         fprintftime: wrap macro code argument in "do {...} while(0)"
18248         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18249         cpy macro must be a statement that can be followed by a semicolon.
18250         Now that the else clause contains a comment and is hence longer
18251         than one line, I require curly braces.  That in turn requires
18252         that we wrap this code block in the standard do...while(0).
18253
18254         fprintftime: remove stray semicolon from previous change
18255         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18256
18257         fprintftime: avoid a warning about ignored fwrite return value
18258         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18259         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18260         that is unsafe.
18261         * modules/fprintftime (Depends-on): Add ignore-value.
18262
18263         exclude: avoid an unwarranted warning
18264         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18265
18266 2009-10-27  Eric Blake  <ebb9@byu.net>
18267
18268         fseek: avoid compilation failure when fflush is replaced
18269         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18270         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18271         module is in use.
18272         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18273         module is not in use; since REPLACE_FSEEK worked otherwise.
18274         (GNULIB_FTELLO): Likewise for ftell.
18275         Reported by Ian Beckwith and others.
18276
18277 2009-10-27  Bruno Haible  <bruno@clisp.org>
18278
18279         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18280         Reported by Jim Meyering.
18281
18282 2009-10-27  Jim Meyering  <jim@meyering.net>
18283             Bruno Haible  <bruno@clisp.org>
18284
18285         Avoid warning despite dropping the return value of fwrite.
18286         * lib/unicodeio.c: Include ignore-value.h.
18287         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18288         * modules/unicodeio (Depends-on): Add ignore-value.
18289
18290 2009-10-26  Eric Blake  <ebb9@byu.net>
18291
18292         areadlinkat: fix fallback path
18293         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18294         pointer and zero.
18295
18296 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18297
18298         Use a better IO block size for modern systems
18299         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18300         * lib/md2.c: Likewise.
18301         * lib/md4.c: Likewise.
18302         * lib/md5.c: Likewise.
18303         * lib/sha1.c: Likewise.
18304         * lib/sha256.c: Likewise.
18305         * lib/sha512.c: Likewise.
18306
18307 2009-10-22  Eric Blake  <ebb9@byu.net>
18308
18309         tests: avoid several compiler warnings
18310         * tests/test-getcwd.c (main): Avoid buffer underflow.
18311         * tests/test-getdate.c (main): String literals are not safe with
18312         putenv, so use setenv.  Declare unused argument.
18313         * modules/getdate-tests (Depends-on): Add setenv.
18314         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18315         problems with string literals in char *.
18316         * tests/test-hash.c (main): Avoid shadowing declaration.
18317         (insert_new): Treat string literals as char const *.
18318         * tests/test-getopt.h (test_getopt): Likewise.
18319         (getopt_loop): Alter types to minimize casting elsewhere.
18320         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18321         (test_getopt_long_posix): Likewise.
18322         (do_getopt_long): Add wrapper to minimize casting.
18323         * tests/test-atexit.c (clear_temp_file): Use void.
18324         * tests/test-areadlink-with-size.c (main): Declare unused
18325         arguments.
18326         * tests/test-areadlink.c (main): Likewise.
18327         * tests/test-areadlinkat-with-size.c (main): Likewise.
18328         * tests/test-areadlinkat.c (main): Likewise.
18329         * tests/test-canonicalize-lgpl.c (main): Likewise.
18330         * tests/test-canonicalize.c (main): Likewise.
18331         * tests/test-dirent-safer.c (main): Likewise.
18332         * tests/test-dirname.c (main): Likewise.
18333         * tests/test-dup2.c (main): Likewise.
18334         * tests/test-fchdir.c (main): Likewise.
18335         * tests/test-fcntl-h.c (main): Likewise.
18336         * tests/test-fcntl-safer.c (main): Likewise.
18337         * tests/test-fdopendir.c (main): Likewise.
18338         * tests/test-fdutimensat.c (main): Likewise.
18339         * tests/test-fflush.c (main): Likewise.
18340         * tests/test-filenamecat.c (main): Likewise.
18341         * tests/test-filevercmp.c (main): Likewise.
18342         * tests/test-fopen-safer.c (main): Likewise.
18343         * tests/test-fopen.c (main): Likewise.
18344         * tests/test-fpending.c (main): Likewise.
18345         * tests/test-fpurge.c (main): Likewise.
18346         * tests/test-freading.c (main): Likewise.
18347         * tests/test-fstatat.c (main): Likewise.
18348         * tests/test-fsync.c (main): Likewise.
18349         * tests/test-futimens.c (main): Likewise.
18350         * tests/test-getndelim2.c (main): Likewise.
18351         * tests/test-gettimeofday.c (main): Likewise.
18352         * tests/test-getopt.c (main): Likewise.
18353         * tests/test-i-ring.c (main): Likewise.
18354         * tests/test-inttypes.c (main): Likewise.
18355         * tests/test-link.c (main): Likewise.
18356         * tests/test-lstat.c (main): Likewise.
18357         * tests/test-math.c (main): Likewise.
18358         * tests/test-md5.c (main): Likewise.
18359         * tests/test-memchr2.c (main): Likewise.
18360         * tests/test-memrchr.c (main): Likewise.
18361         * tests/test-mkdir.c (main): Likewise.
18362         * tests/test-mkdirat.c (main): Likewise.
18363         * tests/test-mkfifoat.c (main): Likewise.
18364         * tests/test-open.c (main): Likewise.
18365         * tests/test-openat-safer.c (main): Likewise.
18366         * tests/test-openat.c (main): Likewise.
18367         * tests/test-quotearg.c (main): Likewise.
18368         * tests/test-rawmemchr.c (main): Likewise.
18369         * tests/test-readlink.c (main): Likewise.
18370         * tests/test-remove.c (main): Likewise.
18371         * tests/test-rename.c (main): Likewise.
18372         * tests/test-renameat.c (main): Likewise.
18373         * tests/test-rmdir.c (main): Likewise.
18374         * tests/test-sha1.c (main): Likewise.
18375         * tests/test-signal.c (main): Likewise.
18376         * tests/test-sigaction.c (main): Likewise.
18377         * tests/test-stat.c (main): Likewise.
18378         * tests/test-stat-time.c (main): Likewise.
18379         * tests/test-stddef.c (main): Likewise.
18380         * tests/test-stdint.c (main): Likewise.
18381         * tests/test-stdio.c (main): Likewise.
18382         * tests/test-stdlib.c (main): Likewise.
18383         * tests/test-strchrnul.c (main): Likewise.
18384         * tests/test-strerror.c (main): Likewise.
18385         * tests/test-string.c (main): Likewise.
18386         * tests/test-strtod.c (main): Likewise.
18387         * tests/test-strverscmp.c (main): Likewise.
18388         * tests/test-symlink.c (main): Likewise.
18389         * tests/test-symlinkat.c (main): Likewise.
18390         * tests/test-sys_stat.c (main): Likewise.
18391         * tests/test-sys_time.c (main): Likewise.
18392         * tests/test-time.c (main): Likewise.
18393         * tests/test-unistd.c (main): Likewise.
18394         * tests/test-unlink.c (main): Likewise.
18395         * tests/test-unlinkat.c (main): Likewise.
18396         * tests/test-utimens.c (main): Likewise.
18397         * tests/test-utimensat.c (main): Likewise.
18398         * tests/test-version-etc.c (main): Likewise.
18399         * tests/test-wchar.c (main): Likewise.
18400         * tests/test-wctype.c (main): Likewise.
18401         * tests/test-xprintf-posix.c (main): Likewise.
18402         * tests/test-posixtm.c (main): Likewise.
18403         (STREQ): Delete unused macro.
18404         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18405         shadowed variables.
18406         * tests/test-memchr.c (main): Likewise.
18407
18408 2009-10-21  Eric Blake  <ebb9@byu.net>
18409
18410         areadlinkat: avoid failure on older glibc
18411         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18412         rather than mis-comparing 0 against FUNC_RESULT of char*.
18413
18414 2009-10-21  Bruno Haible  <bruno@clisp.org>
18415
18416         * modules/stpncpy (License): Relicense under LGPLv2+.
18417         Reported by David Lutterkort <lutter@redhat.com>.
18418
18419 2009-10-20  Eric Blake  <ebb9@byu.net>
18420
18421         utimensat: work around Solaris 9 bug
18422         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18423         has trailing slash bugs.
18424         * tests/test-lutimens.h (test_lutimens): Enhance test.
18425         * tests/test-utimens.h (test_utimens): Likewise.
18426         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18427         * doc/posix-functions/utimes.texi (utimes): Likewise.
18428         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18429         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18430         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18431         * doc/posix-functions/futimens.texi (futimens): Likewise.
18432
18433         fdutimensat: new module
18434         * modules/fdutimensat: New file.
18435         * lib/fdutimensat.c (fdutimensat): Likewise.
18436         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18437         * MODULES.html.sh (File system functions): Mention module.
18438         * modules/fdutimensat-tests: New test.
18439         * tests/test-fdutimensat.c: Likewise.
18440
18441         doc: regenerate INSTALL
18442         * doc/INSTALL: Reflect recent autoconf update.
18443         * doc/INSTALL.ISO: Likewise.
18444         * doc/INSTALL.UTF-8: Likewise.
18445
18446 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18447
18448         acl: warn if ACL support is not detected
18449         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18450
18451 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18452
18453         * lib/nproc.h: Add extern "C" block for C++.
18454
18455 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18456             Bruno Haible  <bruno@clisp.org>
18457
18458         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18459         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18460         * doc/posix-functions/isalpha.texi: Likewise.
18461         * doc/posix-functions/isblank.texi: Likewise.
18462         * doc/posix-functions/iscntrl.texi: Likewise.
18463         * doc/posix-functions/isdigit.texi: Likewise.
18464         * doc/posix-functions/isgraph.texi: Likewise.
18465         * doc/posix-functions/islower.texi: Likewise.
18466         * doc/posix-functions/isprint.texi: Likewise.
18467         * doc/posix-functions/ispunct.texi: Likewise.
18468         * doc/posix-functions/isspace.texi: Likewise.
18469         * doc/posix-functions/isupper.texi: Likewise.
18470         * doc/posix-functions/isxdigit.texi: Likewise.
18471
18472 2009-10-18  Bruno Haible  <bruno@clisp.org>
18473
18474         Tests for module 'isblank'.
18475         * modules/isblank-tests: New file.
18476         * tests/test-isblank.c: New file.
18477
18478         New module 'isblank'.
18479         * lib/isblank.c: New file.
18480         * m4/isblank.m4: New file.
18481         * modules/isblank: New file.
18482         * doc/posix-functions/isblank.texi: Mention the new module.
18483
18484 2009-10-18  Bruno Haible  <bruno@clisp.org>
18485
18486         New module 'ctype'.
18487         * lib/ctype.in.h: New file.
18488         * m4/ctype.m4: New file.
18489         * modules/ctype: New file.
18490         * doc/posix-headers/ctype.texi: Mention the new module.
18491
18492 2009-10-18  Jim Meyering  <meyering@redhat.com>
18493
18494         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18495         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18496         right after its initialization, rather than farther down.
18497         Keeping these in close proximity makes it easier to ensure
18498         that each such variable is initialized.  E.g.,
18499
18500             LIB_CLOCK_GETTIME=
18501             AC_SUBST([LIB_CLOCK_GETTIME])
18502
18503         This change also increments these serial numbers.
18504         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18505         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18507
18508 2009-10-18  Bruno Haible  <bruno@clisp.org>
18509
18510         Don't let environment variables perturb build.
18511         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18512         (gl_PREREQ_GETHRXTIME): ... not here.
18513
18514 2009-10-18  Bruno Haible  <bruno@clisp.org>
18515
18516         Avoid symlink attack in localcharset module.
18517         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18518         (O_NOFOLLOW): Define fallback.
18519         (get_charset_aliases): Don't open the file if it is a symbolic link.
18520         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18521         gl_FCNTL_H.
18522         (gl_FCNTL_H): Require it.
18523         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18524         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18525         Reported by Fergal Glynn <fglynn@veracode.com>.
18526
18527 2009-10-18  Bruno Haible  <bruno@clisp.org>
18528
18529         Implement nproc for mingw.
18530         * lib/nproc.c: Include <windows.h>
18531         (num_processors): On native Windows platforms, try GetSystemInfo.
18532
18533 2009-10-18  Bruno Haible  <bruno@clisp.org>
18534
18535         Implement nproc for IRIX.
18536         * lib/nproc.c: Include <sys/sysmp.h>.
18537         (num_processors): On IRIX systems, try sysmp.
18538         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18539
18540 2009-10-18  Bruno Haible  <bruno@clisp.org>
18541
18542         Implement nproc for HP-UX.
18543         * lib/nproc.c: Include <sys/pstat.h>
18544         (num_processors): On HP-UX systems, try pstat_getdynamic.
18545         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18546         pstat_getdynamic.
18547
18548 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18549             Bruno Haible  <bruno@clisp.org>
18550
18551         Implement nproc for NetBSD, OpenBSD.
18552         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18553         (ARRAY_SIZE): New macro.
18554         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18555         * m4/nproc.m4: New file.
18556         * modules/nproc (Files): Add m4/nproc.m4.
18557         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18558         (Makefile.am): Instead, augment lib_SOURCES.
18559
18560 2009-10-18  Bruno Haible  <bruno@clisp.org>
18561
18562         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18563         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18564         sys/param.h.
18565
18566 2009-10-16  Eric Blake  <ebb9@byu.net>
18567
18568         utimensat: new module
18569         * modules/utimensat: New file.
18570         * lib/utimensat.c (utimensat): Likewise.
18571         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18572         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18573         so we can work around Linux bugs.
18574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18575         * modules/sys_stat (Makefile.am): Substitute them.
18576         * lib/sys_stat.in.h (utimensat): Declare it.
18577         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18578         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18579         * modules/utimensat-tests: New test.
18580         * tests/test-utimensat.c: Likewise.
18581
18582         utimens: let lutimens work on non-symlinks
18583         * lib/utimens.c (lutimens): Fall back to utimens rather than
18584         failing with ENOSYS, when file is not a symlink.
18585         (utimens): Reduce redirection.
18586         * tests/test-lutimens.h (test_lutimens): Update test to cover
18587         non-symlinks.
18588         * tests/test-utimens.h (test_utimens): Update test to cover
18589         symlinks.
18590         * tests/test-utimens.c (main): Update caller.
18591
18592         utimens: cache whether utimensat syscall works
18593         * lib/utimens.c (utimensat_works_really): New cache variable.
18594         (fdutimens, lutimens): Use it to avoid failing syscall.
18595
18596         test-stat-time, test-utimens: improve portability
18597         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18598         ext4 on alpha, and for cygwin.
18599         * tests/test-utimens-common.h: New file.
18600         (nap): Factor delays into single function.
18601         * tests/test-lutimens.h (test_lutimens): Use new header.
18602         * tests/test-futimens.h (test_futimens): Likewise.
18603         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18604         timestamps to occur from same machine, as was done previously for
18605         test_utimens.
18606         * modules/utimens-tests (Files): Ship new file.
18607         * modules/futimens-tests (Files): Likewise.
18608         Reported in part by Jim Meyering.
18609
18610         sys_stat: sort replacement declarations
18611         * lib/sys_stat.in.h: Sort declarations.
18612         * lib/futimens.c (futimens): Fix typo.
18613
18614 2009-10-15  Jim Meyering  <meyering@redhat.com>
18615
18616         don't let environment settings perturb build
18617         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18618         could cause a configure-time and/or build-time malfunction.
18619         Typically, a configure-time function-in-library test is performed
18620         via code like this:
18621
18622           LIB_VAR=
18623           AC_SUBST([LIB_VAR])
18624           prefix_saved_LIBS=$LIBS
18625             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18626                        [test "$ac_cv_search_FUNC" = "none required" ||
18627                         LIB_VAR=$ac_cv_search_FUNC])
18628           LIBS=$prefix_saved_LIBS
18629
18630         However, in each of the files affected by this change, the LIB_VAR=
18631         initialization was omitted.  Thus, when set in the environment, its
18632         value would propagate into generated Makefiles when FUNC is not found
18633         in LIB_NAME.
18634         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18635         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18637
18638 2009-10-14  Eric Blake  <ebb9@byu.net>
18639
18640         fchdir: avoid infinite recursion in mingw
18641         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18642         recursing.
18643
18644         test-stat-time: port to mingw
18645         * tests/test-stat-time.c (force_unlink): Return a value.
18646         (test_ctime) [W32]: Fix compilation error.
18647         (nap): Don't call usleep with too large an argument.  Use
18648         force_unlink.
18649         * doc/pastposix-functions/usleep.texi (usleep): Document the
18650         portability issue.
18651
18652 2009-10-13  Jim Meyering  <meyering@redhat.com>
18653
18654         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18655         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18656         * modules/pipe-filter-ii: Likewise.
18657         * modules/sys_socket-tests: Likewise.
18658         * modules/tsearch-tests: Likewise.
18659         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18660         (check): Depend on it.
18661
18662 2009-10-12  Eric Blake  <ebb9@byu.net>
18663
18664         utimens-tests: port to NFS file systems
18665         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18666         comparisons to avoid spurious failures from timestamp drift
18667         between NFS machines.
18668
18669 2009-10-12  Eric Blake  <ebb9@byu.net>
18670
18671         stat-time-tests: minor cleanups
18672         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18673         * tests/test-stat-time.c (nap): Separate assignment from call.
18674         Suggested by Paolo Bonzini and Bruno Haible.
18675
18676         sys_stat: guarantee struct timespec
18677         * lib/sys_stat.in.h (includes): Always include <time.h>
18678         * modules/sys_stat (Depends-on): Add time.
18679         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18680         mode_t permission values.
18681         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18682         get at subsecond timestamps.
18683
18684 2009-10-10  Eric Blake  <ebb9@byu.net>
18685
18686         futimens: new module
18687         * modules/futimens: New file.
18688         * lib/futimens.c (futimens): Likewise.
18689         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18690         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18691         we can work around Linux bugs.
18692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18693         * modules/sys_stat (Makefile.am): Substitute them.
18694         * lib/sys_stat.in.h (futimens): Declare it.
18695         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18696         * doc/posix-functions/futimens.texi (futimens): Likewise.
18697         * modules/futimens-tests: New test.
18698         * tests/test-futimens.c: Likewise.
18699
18700         utimens: introduce fdutimens
18701         * lib/utimens.h (fdutimens): New prototype.
18702         * lib/utimens.c (gl_futimens): Move guts...
18703         (fdutimens): ...to new interface.
18704         * tests/test-utimens.c (do_fdutimens): Use it.
18705
18706         utimens: add UTIME_NOW and UTIME_OMIT support
18707         * lib/utimens.c (validate_timespec, update_timespec): New helper
18708         functions.
18709         (gl_futimens, lutimens): Use them.
18710         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18711         stdbool, sys_stat.
18712         (Link): Mention resulting library dependency.
18713         * modules/utimecmp (Link): Likewise.
18714         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18715         (Makefile.am): Pick up library dependency.
18716         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18717         definition.
18718         * tests/test-sys_stat.c: Test the definitions.
18719         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18720         * NEWS: Document library dependency.
18721
18722         utimecmp: support symlink timestamps
18723         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18724         hashing when possible.  Use pathconf when available.
18725         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18726         * modules/utimecmp (Depends-on): Add lstat.
18727
18728         utimens: add lutimens interface
18729         * lib/utimens.c (lutimens): New function.
18730         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18731         * lib/utimens.h (lutimens): Declare new interface.
18732         * tests/test-utimens.c (main): Enhance test.
18733         * tests/test-lutimens.h (test_lutimens): New file.
18734         * modules/utimens-tests (Files): Distribute it.
18735         (Depends-on): Add symlink.
18736         (configure.ac): Check for usleep.
18737
18738         utimens: validate futimens usage
18739         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18740         fewer syscalls on failure later on.  Avoid compiler warning on
18741         mingw.
18742         * modules/utimens (Depends-on): Add dup2.
18743
18744         utimens: add test
18745         * modules/utimens-tests: New test.
18746         * tests/test-utimens.h: New file.
18747         * tests/test-futimens.h: Likewise.
18748         * tests/test-utimens.c: Likewise.
18749
18750         doc: mention timestamp portability issues
18751         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18752         instead.
18753         * doc/posix-functions/utime.texi (utime): Likewise.
18754         * doc/posix-functions/utimes.texi (utimes): Likewise.
18755         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18756         instead.
18757         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18758         module.
18759         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18760         Mention weakness with symlink timestamps.
18761         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18762         to utimensat/futimens instead.
18763         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18764
18765         test-dup2: enhance test
18766         * tests/test-dup2.c (main): Also check AT_FDCWD.
18767
18768         test-stat-time: avoid more spurious failures
18769         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18770         xfs; and avoid race if the two timestamps cross quantization edge.
18771
18772         relocatable: prefer 'file system' over 'filesystem'
18773         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18774         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18775         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18776         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18777         * lib/relocatable.c (compute_curr_prefix): Likewise.
18778
18779 2009-10-10  Jim Meyering  <meyering@redhat.com>
18780
18781         stat-time-tests: check for the usleep function
18782         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18783
18784 2009-10-10  Bruno Haible  <bruno@clisp.org>
18785
18786         * modules/xnanosleep: Put the Link section after the Include section.
18787
18788 2009-10-09  Eric Blake  <ebb9@byu.net>
18789
18790         dup2: work around FreeBSD 6.1 bug
18791         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18792         * doc/posix-functions/dup2.texi (dup2): Document it.
18793         Reported by Nelson H. F. Beebe and Jim Meyering.
18794
18795         test-stat-time: port to buggy NFS clients
18796         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18797         (test_ctime): Also skip test if mtime and ctime are skewed.
18798
18799         maint: prefer 'file system' over 'filesystem'
18800         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18801         * doc/posix-functions/lstat.texi (lstat): Likewise.
18802         * lib/file-has-acl.c (file_has_acl): Likewise.
18803         * lib/fwriteerror.c [TEST]: Likewise.
18804         * tests/test-areadlink.h (test_areadlink): Likewise.
18805         * tests/test-areadlinkat-with-size.c (main): Likewise.
18806         * tests/test-areadlinkat.c (main): Likewise.
18807         * tests/test-canonicalize-lgpl.c (main): Likewise.
18808         * tests/test-canonicalize.c (main): Likewise.
18809         * tests/test-fstatat.c (main): Likewise.
18810         * tests/test-linkat.c (main): Likewise.
18811         * tests/test-lstat.h (test_lstat_func): Likewise.
18812         * tests/test-mkdir.h (test_mkdir): Likewise.
18813         * tests/test-readlink.h (test_readlink): Likewise.
18814         * tests/test-remove.c (main): Likewise.
18815         * tests/test-rename.h (test_rename): Likewise.
18816         * tests/test-renameat.c (main): Likewise.
18817         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18818         * tests/test-symlink.h (test_symlink): Likewise.
18819         * tests/test-symlinkat.c (main): Likewise.
18820         * tests/test-unlink.h (test_unlink_func): Likewise.
18821         * tests/test-unlinkat.c (main): Likewise.
18822
18823         maint: make realtime library usage explicit
18824         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18825         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18826         * modules/settime (Link): Likewise.
18827         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18828
18829         test-stat-time: speed up execution
18830         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18831         warning on mingw.
18832         (nap): New helper function.
18833         (prepare_test): Use it to reduce sleep time.
18834         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18835         execution.
18836         * modules/stat-time-tests (configure.ac): Check for usleep.
18837
18838 2009-10-09  Jim Meyering  <meyering@redhat.com>
18839
18840         selinux-h: always use getfilecon wrappers
18841         * lib/getfilecon.c: New file.
18842         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18843         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18844         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18845         (fgetfilecon): Provide a stub.
18846         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18847         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18848         file unconditionally.
18849         When <selinux/selinux.h> is found, arrange to use wrappers.
18850         * modules/selinux-h (Files): Add getfilecon.c.
18851         (Makefile.am): Substitute include-next-related bits
18852         into the now-always-generated selinux/selinux.h file.
18853         * doc/glibc-functions/lgetfilecon.texi: New file.
18854         * doc/glibc-functions/fgetfilecon.texi: New file.
18855         * doc/glibc-functions/getfilecon.texi: New file.
18856         * doc/glibc-functions/getfilecon-desc.texi: New file.
18857         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18858         which to pull in the new files.
18859         * MODULES.html.sh (Misc): Add selinux-h.
18860
18861 2009-10-08  Jim Meyering  <meyering@redhat.com>
18862
18863         unistd: fix comment typo
18864         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18865
18866 2009-10-08  Eric Blake  <ebb9@byu.net>
18867
18868         areadlink: use SIZE_MAX consistently
18869         * modules/areadlink (Depends-on): Add stdint.
18870         * modules/areadlink-with-size (Depends-on): Likewise.
18871         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18872         gives NULL; drop sys/types, since unistd gives size_t; and add
18873         stdint for SIZE_MAX.
18874         (SIZE_MAX): Rely on headers.
18875         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18876         and add stdint.
18877         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18878         (SIZE_MAX): Likewise.
18879         (INITIAL_BUF_SIZE): Turn into enum.
18880         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18881
18882 2009-10-08  Jim Meyering  <meyering@redhat.com>
18883
18884         areadlinkat: avoid compilation failure
18885         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18886         Fix typo in comment.
18887
18888 2009-10-07  Eric Blake  <ebb9@byu.net>
18889
18890         areadlinkat-with-size: new module
18891         * modules/areadlinkat-with-size: New module.
18892         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18893         * lib/areadlink.h (areadlinkat): Declare it.
18894         * MODULES.html.sh (File system functions): Mention it.
18895         * modules/areadlinkat-with-size-tests: New test.
18896         * tests/test-areadlinkat-with-size.c: New file.
18897
18898         xreadlinkat: new module
18899         * modules/xreadlinkat: New module.
18900         * lib/xreadlinkat.c (xreadlinkat): New file.
18901         * lib/xreadlink.h (xreadlinkat): Declare it.
18902         * MODULES.html.sh (File system functions): Mention it.
18903
18904         areadlinkat: new module
18905         * lib/at-func.c (FUNC_FAIL): New define.
18906         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18907         * modules/areadlinkat: New module.
18908         * lib/linkat.c (areadlinkat): Move...
18909         * lib/areadlinkat.c (areadlinkat): ...to new file.
18910         * lib/areadlink.h (areadlinkat): Declare it.
18911         * modules/linkat (Depends-on): Add areadlinkat.
18912         * MODULES.html.sh (File system functions): Mention it.
18913         * modules/areadlinkat-tests: New test.
18914         * tests/test-areadlinkat.c: New file.
18915
18916         areadlink, areadlink-with-size: add tests
18917         * modules/areadlink-tests: New test.
18918         * modules/areadlink-with-size-tests: Likewise.
18919         * tests/test-areadlink.h: New file.
18920         * tests/test-areadlink.c: Likewise.
18921         * tests/test-areadlink-with-size.c: Likewise.
18922
18923         maint: minor cleanups
18924         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18925         _UNUSED_PARAMETER_ instead.
18926         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18927         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18928         * modules/linkat-tests (Files): Distribute test-link.h.
18929
18930         openat, utimens: whitespace cleanup
18931         * lib/openat.c: Prefer space throughout, rather than mix of 8
18932         spaces vs. tabs.
18933         * lib/at-func.c: Likewise.
18934         * lib/utimens.c: Likewise.
18935
18936         openat: avoid using wrong fd
18937         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18938         working directory chooses same fd.
18939         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18940
18941         mkdir, mkdirat: fix cygwin 1.5.x bug
18942         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18943         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18944         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18945         bug.
18946         (gl_PREREQ_MKDIR): Delete unused macro.
18947         * modules/mkdir (Files): Track file rename.
18948         (configure.ac): Update macro name.
18949         * modules/openat (Depends-on): Add mkdir.
18950         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18951
18952         mkdir, mkdirat: add tests
18953         * modules/mkdir-tests: New test.
18954         * tests/test-mkdir.h: New file.
18955         * tests/test-mkdir.c: Likewise.
18956         * tests/test-mkdirat.c: Likewise.
18957         * modules/openat-tests (Files): Add new files.
18958         (Makefile.am): Run new test.
18959
18960 2009-10-06  Eric Blake  <ebb9@byu.net>
18961
18962         doc: tweak *at function documentation
18963         * doc/posix-functions/faccessat.texi (faccessat): Mention
18964         known issue with replacement.
18965         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18966         * doc/posix-functions/linkat.texi (linkat): Likewise.
18967         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18968         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18969         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18970         * doc/posix-functions/renameat.texi (renameat): Likewise.
18971         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18972
18973         openat: fix GNU/Hurd bug in unlinkat
18974         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18975         broken.
18976         * doc/posix-functions/unlink.texi (unlink): Document this.
18977         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18978
18979         fdopendir: fix GNU/Hurd bug
18980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18981         allowing non-directory fds.
18982         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18983         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18984         * modules/dirent (Makefile.am): Substitute it.
18985         * lib/dirent.in.h (fdopendir): Declare replacement.
18986         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18987         * tests/test-fdopendir.c (main): Test something other than
18988         /dev/null, since on Hurd that behaves like a directory.
18989
18990         test-symlink: port to GNU/Hurd
18991         * tests/test-symlink.h (test_symlink): Relax expected errno.
18992
18993         doc: tweak more cygwin information
18994         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18995         now compatible with glibc.
18996         * doc/posix-functions/getopt.texi (getopt): Likewise.
18997
18998         getopt-gnu: add another test
18999         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19000         guarantee behavior relied on by m4.
19001         * tests/test-getopt.c (main): Use it.
19002         * modules/getopt-posix-tests (Depends-on): Add setenv.
19003         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19004
19005         getopt: fix compilation on darwin
19006         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19007         include.
19008         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19009         Reported by Ludovic Courtès.
19010
19011 2009-10-06  Bruno Haible  <bruno@clisp.org>
19012
19013         * modules/size_max (Description): Discourage its use.
19014         Reported by Simon Josefsson.
19015
19016 2009-10-06  Jim Meyering  <meyering@redhat.com>
19017
19018         linkat: avoid compilation failure
19019         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19020
19021 2009-10-05  Eric Blake  <ebb9@byu.net>
19022
19023         linkat: support Linux 2.6.17
19024         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19025         linkat on Linux, but allow cache variable override.
19026         * lib/linkat.c (rpl_linkat): Define override.
19027         * modules/linkat (Depends-on): Add symlinkat.
19028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19029         * modules/unistd (Makefile.am): Substitute it.
19030         * lib/unistd.in.h (linkat): Declare replacement.
19031         Reported by Pádraig Brady.
19032
19033         quotearg: port test to systems with C.UTF-8 locale
19034         * tests/test-quotearg.c (struct result_strings): Add another
19035         member, differentiating between C.ASCII and C.UTF-8 handling.
19036         (compare_strings): Add parameter.
19037         (main): Adjust all callers.
19038
19039         getopt: avoid clash with FreeBSD _getopt_internal
19040         * lib/getopt.in.h (_getopt_internal): Override the name.
19041         * lib/getopt_int.h (includes): Pick up any overrides.
19042         Reported by Reuben Thomas.
19043
19044         hash: allow C89 compilation
19045         * lib/hash.c (check_tuning): Move declaration before statement.
19046         Reported by Reuben Thomas.
19047
19048 2009-10-05  Karl Berry  <karl@gnu.org>
19049
19050         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19051
19052 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19053             Bruno Haible  <bruno@clisp.org>
19054
19055         * lib/uname.c (uname): Use a table-driven algorithm to compute
19056         Windows NT versions.
19057
19058 2009-10-04  Bruno Haible  <bruno@clisp.org>
19059
19060         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19061         program_invocation_short_name.
19062         * modules/progname (configure.ac): Test for presence of
19063         program_invocation_short_name.
19064         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19065
19066 2009-10-04  Bruno Haible  <bruno@clisp.org>
19067
19068         * lib/progname.c (set_program_name): Fix comment.
19069         Reported by Jim Meyering.
19070
19071 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19072             Bruno Haible  <bruno@clisp.org>
19073
19074         * lib/uname.c: Include <string.h>.
19075         (uname): Do only one call to GetVersionEx in the common case.
19076
19077 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19078             Bruno Haible  <bruno@clisp.org>
19079
19080         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19081         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19082         (uname): Add support for Windows CE and various non-x86 CPU types.
19083
19084 2009-10-03  Bruno Haible  <bruno@clisp.org>
19085
19086         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19087         invocation to tests/configure.ac.
19088         Reported by Ian Beckwith <ianb@erislabs.net>.
19089
19090 2009-10-02  Eric Blake  <ebb9@byu.net>
19091
19092         fchdir: avoid compiler warning
19093         * lib/fchdir.c (canonicalize_file_name)
19094         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19095
19096         test-open: support mingw errno values
19097         * tests/test-open.h (test_open): Relax test.
19098         * tests/test-fopen.h (test_fopen): Likewise.
19099         * tests/test-openat-safer.c (main): Likewise.
19100
19101         open: fix opening directory on mingw
19102         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19103
19104         test-open: on GNU/Hurd, /dev/null is a directory
19105         * tests/test-fopen.h (main): Rename...
19106         (test_fopen): ...to this.  Use a guaranteed non-directory when
19107         confirming open behavior on trailing slash.
19108         * tests/test-openat-safer.c (main): Likewise.
19109         * tests/test-open.h (main): Likewise....
19110         (test_open): ...to this.
19111         * tests/test-fopen.c (main): Adjust caller.
19112         * tests/test-fopen-safer.c (main): Likewise.
19113         * tests/test-open.c (main): Likewise.
19114         * tests/test-fcntl-safer.c (main): Likewise.
19115         Reported by Samuel Thibault.
19116
19117         rename, fchdir: don't ignore chdir failure
19118         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19119         * lib/rename.c (rpl_rename) [W32]: Likewise.
19120         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19121         an empty destination directory if source cannot be renamed,
19122         although there is still possibility for failure.
19123         * doc/posix-functions/rename.texi (rename): Document the race.
19124         Reported by Jim Meyering.
19125
19126         maint: cleanup whitespace in recent commits
19127         * lib/rename.c (rpl_rename): Remove tabs.
19128         * tests/test-link.h (test_link): Likewise.
19129         * lib/fchdir.c (get_name): Likewise.
19130         Reported by Jim Meyering.
19131
19132 2009-10-02  Ben Pfaff  <blp@gnu.org>
19133
19134         relocatable-prog-wrapper: Add missing dependency on
19135         double-slash-root.
19136         * modules/relocatable-prog-wrapper: Add dependency.
19137         Reported by Ian Beckwith <ianb@erislabs.net>.
19138
19139 2009-10-02  Eric Blake  <ebb9@byu.net>
19140
19141         renameat: fix Solaris bugs
19142         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19143         needed fixing.
19144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19145         * modules/stdio (Makefile.am): Substitute it.
19146         * lib/stdio.in.h (renameat): Declare replacement.
19147         * lib/renameat.c (rpl_renameat): Implement fix.
19148
19149         renameat: new module
19150         * modules/renameat: New file.
19151         * lib/renameat.c (renameat): Likewise.
19152         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19154         * modules/stdio (Makefile.am): Substitute them.
19155         * lib/stdio.in.h (renameat): Declare it.
19156         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19157         * doc/posix-functions/renameat.texi (renameat): Likewise.
19158         * modules/renameat-tests: New test.
19159         * tests/test-renameat.c: Likewise.
19160
19161         rename: fix mingw bugs
19162         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19163         directory overwrite bugs.
19164
19165         rename: fix another cygwin 1.5 bug
19166         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19167         checks.
19168         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19169         unnecessary cygwin workarounds.  Also work around bug with moving
19170         full directory onto an empty one.
19171         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19172
19173         rename-dest-slash: merge into rename module
19174         * modules/rename-dest-slash (Status): Mark obsolete.
19175         (Depends-on): Add rename.
19176         (Files): Let rename do it all.
19177         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19178         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19179         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19180         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19181         * lib/rename.c (rpl_rename): Update comments.
19182
19183         rename: fix cygwin 1.5.x bugs
19184         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19185         * lib/rename.c (rpl_rename): Work around them.
19186         * modules/rename (Depends-on): Add same-inode.
19187
19188         rename: fix Solaris 10 bug
19189         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19190         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19191         was the only bug.
19192
19193         rename: fix Solaris 9 bug
19194         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19195         on non-directory.  Avoid calling exit.
19196         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19197         strdup.
19198         * modules/rename-tests (Depends-on): Drop lstat.
19199         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19200         (gl_PREREQ_RENAME): Delete unused macro.
19201
19202         rename-dest-slash: fix NetBSD bug
19203         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19204         links.
19205         * modules/rename-dest-slash (Depends-on): Add same-inode.
19206
19207         rename-tests: new test, exposes several platform bugs
19208         * modules/rename-tests: New file.
19209         * tests/test-rename.h: Likewise.
19210         * tests/test-rename.c: Likewise.
19211         * doc/posix-functions/rename.texi (rename): Improve documentation,
19212         including bugs that will eventually be fixed in gnulib.
19213
19214 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19215
19216         * lib/uname.c: Include <stdlib.h>
19217         (uname): Assume version info is available.
19218
19219 2009-10-02  Jim Meyering  <meyering@redhat.com>
19220
19221         gnu-web-doc-update: correct --help output
19222         * build-aux/gnu-web-doc-update: Make --help output relevant.
19223
19224         gnu-web-doc-update: add standard options
19225         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19226
19227         gnu-web-doc-update: New module.
19228         Use this script to automatically update the on-line web documentation
19229         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19230         * modules/gnu-web-doc-update: New file, from coreutils.
19231         * build-aux/gnu-web-doc-update: New script.
19232
19233 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19234
19235         link: LoadLibrary is not needed.
19236         * lib/link.c: Use GetModuleHandle.
19237
19238 2009-10-01  Eric Blake  <ebb9@byu.net>
19239
19240         getopt: bump serial number
19241         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19242         change.
19243
19244         tests: tighten link, rmdir, and remove tests
19245         * tests/test-link.h (includes): No need to use <config.h> here.
19246         Clean up if directory hard link was created, otherwise test for
19247         trailing '.'.
19248         * tests/test-linkat.c (main): Simplify.
19249         * tests/test-remove.c (main): Enhance test for trailing '.'.
19250         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19251
19252 2009-10-01  Jim Meyering  <meyering@redhat.com>
19253
19254         maint.mk: requiring "make major" was annoying, for a "minor" release.
19255         What is intended is "stable", to contrast with alpha and beta,
19256         so require "make stable", not "make major".
19257         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19258         (get_tool_versions): Likewise.
19259         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19260
19261 2009-09-30  Ben Pfaff  <blp@gnu.org>
19262
19263         Fix broken build of replacement for Windows tmpfile().
19264         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19265         flags argument added along with the 'mkostemp' module.
19266
19267 2009-09-28  Bruno Haible  <bruno@clisp.org>
19268
19269         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19270         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19271         to 'remove_elt'.
19272         (gl_list_remove): Update.
19273         * lib/gl_list.c (gl_list_remove): Update.
19274         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19275         to 'remove_elt'.
19276         (gl_oset_remove): Update.
19277         * lib/gl_list.c (gl_oset_remove): Update.
19278         Reported by Eric Blake.
19279
19280 2009-09-28  Eric Blake  <ebb9@byu.net>
19281
19282         doc: mention yet more cygwin 1.7 status
19283         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19284         cygwin.
19285         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19286         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19287
19288         argp: fix test failure
19289         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19290         that are not upper-case.  Pass correct range to tolower.
19291
19292 2009-09-27  Jim Meyering  <meyering@redhat.com>
19293
19294         test-yesno: work around sparc-dash here-document infelicity
19295         Without this change, the literal \177 byte in a here document
19296         would make dash 0.5.5.1-3 access uninitialized memory.
19297         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19298         Instead, use a marker, "@", and filter through tr to create the desired
19299         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19300
19301 2009-09-27  Bruno Haible  <bruno@clisp.org>
19302
19303         Disable untested support for new flavours of ACLs on AIX.
19304         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19305         progress.
19306         * lib/set-mode-acl.c (qset_acl): Likewise.
19307
19308 2008-12-07  Bruno Haible  <bruno@clisp.org>
19309
19310         Add support for new flavours of ACLs on AIX. (Untested.)
19311         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19312         (file_has_acl): Add support for newer AIX.
19313         * lib/set-mode-acl.c (qset_acl): Likewise.
19314         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19315         Rainer Tammer <tammer@tammer.net>.
19316
19317 2009-09-26  Eric Blake  <ebb9@byu.net>
19318
19319         argp: fix compilation of getopt
19320         * lib/getopt.in.h (includes): Use different guard than glibc.
19321         Reported by Sergey Poznyakoff.
19322
19323         doc: mention more cygwin 1.7 status
19324         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19325         bug.
19326         * doc/posix-functions/execl.texi (execl): Likewise.
19327         * doc/posix-functions/execle.texi (execle): Likewise.
19328         * doc/posix-functions/execlp.texi (execlp): Likewise.
19329         * doc/posix-functions/execv.texi (execv): Likewise.
19330         * doc/posix-functions/execve.texi (execve): Likewise.
19331         * doc/posix-functions/execvp.texi (execvp): Likewise.
19332         * doc/glibc-functions/canonicalize_file_name.texi
19333         (canonicalize_file_name): Cygwin 1.7 now provides this.
19334         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19335         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19336         on AT_SYMLINK_NOFOLLOW.
19337
19338 2009-09-24  Eric Blake  <ebb9@byu.net>
19339
19340         test-linkat: make test more robust
19341         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19342
19343         getopt: fix inclusion guards for cygwin
19344         * modules/getopt-posix (Depends-on): Add include-next.
19345         (Makefile.am): Substitute more items in replacement header.
19346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19347         <getopt.h>.
19348         * lib/getopt.in.h (includes): Use split inclusion guard, and
19349         prefer <getopt.h> over include <unistd.h> when one is present.
19350         (option): Also override name of 'struct option'.
19351
19352         same-inode: revert prior change; it is not yet ready
19353         * NEWS: Undo mention of this change.
19354         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19355         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19356         * lib/cycle-check.c (cycle_check): Likewise.
19357         * lib/same.c (same_name): Likewise.
19358         * lib/at-func2.c (at_func2): Likewise.
19359
19360 2009-09-23  Eric Blake  <ebb9@byu.net>
19361
19362         linkat: new module
19363         * modules/linkat: New file.
19364         * lib/at-func2.c (at_func2): Likewise.
19365         * lib/linkat.c (linkat): Likewise.
19366         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19367         * lib/openat-priv.h (at_func2): Add declaration.
19368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19369         * modules/unistd (Makefile.am): Substitute them.
19370         * lib/unistd.in.h (linkat): Declare it.
19371         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19372         * doc/posix-functions/linkat.texi (linkat): Likewise.
19373         * doc/posix-functions/link.texi (link): Tweak wording.
19374         * tests/test-link.c (main): Move guts...
19375         * tests/test-link.h (test_link): ...into new file.
19376         * modules/linkat-tests: New test.
19377         * tests/test-linkat.c: Likewise.
19378         * modules/link-tests (Files): Ship new file.
19379         (Depends-on): Add stdbool.
19380
19381         dirname: add library-safe mdir_name
19382         * lib/dirname.h (mdir_name): New prototype.
19383         * lib/dirname.c (dir_name): Move guts...
19384         (mdir_name): ...to new function that avoids xalloc_die.
19385
19386         fchdir: another mingw fix
19387         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19388         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19389         on mingw (where it has not yet been ported), and make it optional
19390         elsewhere.
19391         (_gl_register_fd): Use it.
19392
19393         same-inode: make SAME_INODE tri-state, to port to mingw
19394         * NEWS: Mention this change.
19395         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19396         st_ino always being 0.
19397         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19398         * lib/cycle-check.c (cycle_check): Likewise.
19399         * lib/same.c (same_name): Likewise.
19400
19401         lstat: avoid mingw compilation error
19402         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19403         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19404         lstat ourselves.
19405         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19406         was adequate.
19407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19408         the checks for lstat.
19409         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19410
19411         link: fix test failure on Solaris 9
19412         * lib/link.c (rpl_link): Don't assume link will catch bogus
19413         trailing slash on source.
19414
19415         test-symlinkat: enhance test
19416         * tests/test-readlink.c (main): Move guts...
19417         * tests/test-readlink.h (test_readlink): ...into new file.
19418         * tests/test-symlink.c (main): Move guts...
19419         * tests/test-symlink.h (test_symlink): ...into new file.
19420         * tests/test-symlinkat.c (main): Use new files for further
19421         coverage.
19422         (do_symlink, do_readlink): New helper functions.
19423         * modules/symlink-tests (Files): Ship new file.
19424         (Depends-on): Add stdbool.
19425         * modules/readlink-tests (Files): Ship new file.
19426         (Depends-on): Add stdbool.
19427         * modules/symlinkat-tests (Files): Use new files.
19428
19429 2009-09-23  Eric Blake  <ebb9@byu.net>
19430
19431         readlink: document portability issue with symlink length
19432         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19433         systems have bogus st_size on symlinks, and mention the
19434         areadlink-with-size module.
19435         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19436         * doc/posix-functions/readlink.texi (readlink): Mention the
19437         areadlink module, and ERANGE failure.
19438         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19439         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19440
19441         readlink: fix Solaris 9 bug with trailing slash
19442         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19443         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19444         * doc/posix-functions/readlink.texi (readlink): Document this.
19445         * modules/readlink-tests: New test.
19446         * tests/test-readlink.c: Likewise.
19447
19448         readlink: fix cygwin 1.5.x bug with return type
19449         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19450         * lib/unistd.in.h (readlink): Use ssize_t.
19451         * lib/readlink.c (readlink): Likewise.
19452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19453         * modules/unistd (Makefile.am): Substitute it.
19454         * lib/unistd.in.h (readlink): Declare replacement.
19455         * doc/posix-functions/readlink.texi (readlink): Document this.
19456
19457         symlink: use throughout gnulib
19458         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19459         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19460         symlink is not used.
19461         * modules/symlinkat (Depends-on): Add symlink.
19462         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19463         * modules/canonicalize-tests (Depends-on): Likewise.
19464         * modules/lstat-tests (Depends-on): Likewise.
19465         * modules/openat-tests (Depends-on): Likewise.
19466         * modules/remove-tests (Depends-on): Likewise.
19467         * modules/rmdir-tests (Depends-on): Likewise.
19468         * modules/unlink-tests (Depends-on): Likewise.
19469         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19470         * tests/test-canonicalize.c (symlink): Likewise.
19471         * tests/test-fstatat.c (symlink): Likewise.
19472         * tests/test-lstat.c (symlink): Likewise.
19473         * tests/test-remove.c (symlink): Likewise.
19474         * tests/test-rmdir.c (symlink): Likewise.
19475         * tests/test-unlink.c (symlink): Likewise.
19476         * tests/test-unlinkat.c (symlink): Likewise.
19477
19478         symlink: new module, for Solaris 9 bug
19479         * modules/symlink: New file.
19480         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19481         * lib/symlink.c: Likewise.
19482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19483         * modules/unistd (Makefile.am): Substitute them.
19484         * lib/unistd.in.h (symlink): Declare replacement.
19485         * MODULES.html.sh (File system functions): Mention it.
19486         * doc/posix-functions/symlink.texi (symlink): Likewise.
19487         * modules/symlink-tests: New test.
19488         * tests/test-symlink.c: Likewise.
19489
19490 2009-09-23  Bruno Haible  <bruno@clisp.org>
19491
19492         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19493         when needed.
19494         Test case: gnulib-tool --import --with-tests atexit inttypes.
19495         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19496
19497 2009-09-23  Bruno Haible  <bruno@clisp.org>
19498
19499         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19500         subcommand, not in a subshell.
19501
19502 2009-09-22  Eric Blake  <ebb9@byu.net>
19503
19504         unistd: sort replacement declarations
19505         * lib/unistd.in.h: Sort declarations.
19506
19507         open, openat: minor optimization
19508         * lib/open.c (open): If open succeeded, len is non-zero.
19509         * lib/openat.c (rpl_openat): Likewise.
19510
19511         link-follow: ensure correct result
19512         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19513         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19514         distinguish between possible failures.
19515
19516 2009-09-21  Eric Blake  <ebb9@byu.net>
19517
19518         fts: avoid compiler warning
19519         * lib/fts.c (dirent_inode_sort_may_be_useful)
19520         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19521
19522 2009-09-19  Bruno Haible  <bruno@clisp.org>
19523
19524         * lib/progreloc.c (canonicalize_file_name): New declaration.
19525
19526 2009-09-19  Eric Blake  <ebb9@byu.net>
19527
19528         link: fix quoting
19529         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19530
19531         openat: fix openat bugs on Solaris 9
19532         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19533         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19534         * modules/openat (Depends-on): Add open.
19535         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19536         * modules/fcntl-h (Makefile.am): Substitute it.
19537         * lib/fcntl.in.h (openat): Declare replacement.
19538         * doc/posix-functions/openat.texi (openat): Document this.
19539
19540         openat: move fstatat and unlinkat into correct files
19541         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19542         compiled.
19543         * lib/openat.c (fstatat, unlinkat): Move...
19544         * lib/fstatat.c (fstatat): ...into correct files.
19545         * lib/unlinkat.c (unlinkat): Likewise.
19546
19547         openat: fix unlinkat bugs on Solaris 9
19548         * lib/unlinkat.c (unlinkat): New file.
19549         * modules/openat (Depends-on): Add unlink.
19550         (Files): Distribute it.
19551         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19552         trailing slash behavior is broken.
19553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19554         * modules/unistd (Makefile.am): Substitute it.
19555         * lib/unistd.in.h (unlinkat): Declare replacement.
19556         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19557
19558         openat: fix fstatat bugs on Solaris 9
19559         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19560         stat.
19561         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19562
19563         test-unlinkat: enhance test, to expose Solaris 9 bug
19564         * tests/test-unlink.c (main): Factor guts...
19565         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19566         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19567         * tests/test-rmdir.c (main): Adjust caller.
19568         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19569         (unlinker): New helper function.
19570         (rmdirat): Enhance check.
19571         * modules/rmdir-tests (Depends-on): Add stdbool.
19572         * modules/unlink-tests (Depends-on): Likewise.
19573         (Files): Add test-unlink.h.
19574         * modules/openat-tests (Files): Likewise.
19575         (Depends-on): Add unlinkdir.
19576
19577         test-fstatat: new test, to expose Solaris 9 bugs
19578         * tests/test-stat.c (main): Factor guts...
19579         * tests/test-stat.h (test_stat_func): ...into new file.
19580         * tests/test-lstat.c (main): Factor guts...
19581         * tests/test-lstat.h (test_lstat_func): ...into new file.
19582         * tests/test-fstatat.c: New file.
19583         * modules/stat-tests (Files): Add test-stat.h.
19584         * modules/lstat-tests (Files): Add test-lstat.h.
19585         (Depends-on): Add stdbool.
19586         * modules/openat-tests (Depends-on): Add pathmax.
19587         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19588         (Makefile.am): Run new test.
19589
19590         remove: new module, for mingw and Solaris 9 bugs
19591         * modules/remove: New file.
19592         * lib/remove.c: Likewise.
19593         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19595         * modules/stdio (Makefile.am): Use them.
19596         * lib/stdio.in.h (remove): Declare replacement.
19597         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19598         * doc/posix-functions/remove.texi (remove): Likewise.
19599         * modules/remove-tests: New test.
19600         * tests/test-remove.c: Likewise.
19601
19602         unlink: new module, for Solaris 9 bug
19603         * modules/unlink: New file.
19604         * lib/unlink.c: Likewise.
19605         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19607         * modules/unistd (Makefile.am): Use them.
19608         * lib/unistd.in.h (stat): Declare replacement.
19609         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19610         * doc/posix-functions/unlink.texi (unlink): Likewise.
19611         * modules/unlink-tests: New test.
19612         * tests/test-unlink.c: Likewise.
19613
19614         lstat: fix Solaris 9 bug
19615         * lib/lstat.c (lstat): Also check for trailing slash on
19616         non-symlink, non-directories.  Use stat module to simplify logic.
19617         * doc/posix-functions/lstat.texi (lstat): Document it.
19618         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19619         (configure.ac): Check for symlink.
19620         * tests/test-lstat.c (main): Add more tests.
19621
19622         stat: add as dependency to other modules
19623         * modules/chown (Depends-on): Add stat.
19624         * modules/euidaccess (Depends-on): Likewise.
19625         * modules/fchdir (Depends-on): Likewise.
19626         * modules/isdir (Depends-on): Likewise.
19627         * modules/link (Depends-on): Likewise.
19628         * modules/lstat (Depends-on): Likewise.
19629         * modules/mkdir-p (Depends-on): Likewise.
19630         * modules/modechange (Depends-on): Likewise.
19631         * modules/open (Depends-on): Likewise.
19632         * modules/readlink (Depends-on): Likewise.
19633         * modules/same (Depends-on): Likewise.
19634
19635         stat: fix Solaris 9 bug
19636         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19637         slash.
19638         * lib/stat.c (rpl_stat): Work around it.
19639         * doc/posix-functions/stat.texi (stat): Update documentation.
19640
19641         stat: new module, for mingw bug
19642         * modules/stat: New file.
19643         * lib/stat.c: Likewise.
19644         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19646         * modules/sys_stat (Makefile.am): Use them.
19647         * lib/sys_stat.in.h (stat): Declare replacement.
19648         * lib/openat.c (fstatat): Deal with lstat and stat being function
19649         macros.
19650         * modules/openat (Depends-on): Add inline.
19651         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19652         * doc/posix-functions/stat.texi (stat): Likewise.
19653         * modules/stat-tests: New test.
19654         * tests/test-stat.c: Likewise.
19655
19656 2009-09-19  Jim Meyering  <meyering@redhat.com>
19657
19658         syntax-check: detect unnecessary inclusion of canonicalize.h
19659         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19660
19661 2009-09-19  Eric Blake  <ebb9@byu.net>
19662
19663         canonicalize-lgpl: adjust clients to use correct header
19664         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19665         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19666         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19667         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19668         * lib/progreloc.c (includes): Likewise.
19669
19670 2009-09-19  Jim Meyering  <meyering@redhat.com>
19671
19672         test-posixtm.c: correct a comment
19673         * tests/test-posixtm.c: Correct first-line comment.
19674         Spotted by Eric Blake.
19675
19676 2009-09-16  Jim Meyering  <meyering@redhat.com>
19677
19678         posixtm-tests: make T const-correct; add a test case
19679         * tests/test-posixtm.c (T): Declare const.
19680         Add a test for -(2^31+1).
19681         Remove useless can-succeed-only-in-2002 test.
19682
19683         posixtm-tests: adjust the sole failing test
19684         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19685         expected output matches what mktime now produces.  Cross-checked via
19686         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19687
19688         posixtm: move #ifdef'd tests into a new module
19689         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19690         * tests/test-posixtm.c: ... this new file.
19691         * modules/posixtm-tests: New module.
19692
19693 2009-09-19  Eric Blake  <ebb9@byu.net>
19694
19695         openat: simplify use of at-func.c
19696         * lib/at-func.c (includes): Include prerequisites here, to
19697         simplify requirements on client files.
19698         * lib/openat-priv.h: Add double-inclusion guard.
19699         * lib/faccessat.c (includes): Simplify.
19700         * lib/fchmodat.c (includes): Likewise.
19701         * lib/fchownat.c (includes): Likewise.
19702         * lib/mkdirat.c (includes): Likewise.
19703         * lib/mkfifoat.c (includes): Likewise.
19704         * lib/symlinkat.c (includes): Likewise.
19705
19706         openat: allow return of fd 0
19707         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19708         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19709         unistd-safer.
19710         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19711         <fcntl.h>; this module does not leak fds.
19712         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19713         must be allowed to return 0, leaving openat_safer to add the
19714         safety.
19715         (openat_permissive): Avoid writing to just-opened fd 2 if
19716         restoring the current directory fails.
19717         * lib/openat-die.c (openat_restore_fail): Add comment.
19718         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19719         (save_cwd): Guarantee safe fd, but without use of open_safer.
19720         * tests/test-openat.c: New test.
19721         * modules/openat-tests (Files, Makefile.am): Distribute and build
19722         new file.
19723
19724         relocatable-prog-wrapper: fix build
19725         * modules/relocatable-prog-wrapper (Files): Update name of
19726         canonicalize m4 file, broken on 2009-09-17.
19727         Reported by emad hajjar <aleppos@hotmail.com>.
19728
19729 2009-09-19  Bruno Haible  <bruno@clisp.org>
19730
19731         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19732         * lib/safe-alloc.c: Likewise.
19733         Reported by Ian Beckwith <ianb@erislabs.net>.
19734
19735 2009-09-18  Bruno Haible  <bruno@clisp.org>
19736
19737         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19738         Reported by <erobles@sensacd.com.mx>.
19739
19740 2009-09-17  Eric Blake  <ebb9@byu.net>
19741
19742         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19743         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19744         slashes when checking if last component is missing.
19745         * tests/test-canonicalize.c (main): Test this.
19746
19747         canonicalize, canonicalize-lgpl: honor // if distinct from /
19748         * modules/canonicalize (Files): Add double-slash-root.m4.
19749         * modules/canonicalize-lgpl (Files): Likewise.
19750         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19751         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19752         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19753         fallback definition.
19754         (canonicalize_filename_mode): Use it to protect //.
19755         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19756         (__realpath): Likewise.
19757         * tests/test-canonicalize.c (main): Test this.
19758         * tests/test-canonicalize-lgpl.c (main): Likewise.
19759         * modules/canonicalize-tests (Depends-on): Add same-inode.
19760         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19761
19762         canonicalize-lgpl: fix glibc bug with trailing slash
19763         * m4/canonicalize-lgpl.m4: Move contents...
19764         * m4/canonicalize.m4: ...here.
19765         (gl_CANONICALIZE_LGPL): Factor realpath check...
19766         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19767         glibc 2.3.5 bug, fixed 2005-04-27.
19768         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19769         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19770         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19771         * modules/canonicalize-lgpl (Files): Manage file rename.
19772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19773         * modules/stdlib (Makefile.am): Substitute witness.
19774         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19775         is needed.
19776         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19777         replacement is required.
19778         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19779         * doc/glibc-functions/canonicalize_file_name.texi
19780         (canonicalize_file_name): Document this.
19781         * doc/posix-functions/realpath.texi (realpath): Likewise.
19782
19783         canonicalize-lgpl: reject non-directory with trailing slash
19784         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19785         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19786         catches failures in glibc 2.3.5.
19787         * tests/test-canonicalize.c (main): Likewise.
19788
19789         canonicalize-lgpl: use native realpath if it works
19790         * lib/canonicalize-lgpl.c (realpath): Guard with
19791         FUNC_REALPATH_WORKS.
19792         * lib/stdlib.in.h (realpath): Make declaration optional based on
19793         HAVE_REALPATH.
19794         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19795         native realpath works.
19796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19797         * modules/stdlib (Makefile.am): Substitute witness.
19798
19799         canonicalize, canonicalize-lgpl: use <stdlib.h>
19800         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19801         (Include): Mention <stdlib.h>.
19802         (configure.ac): Mention functions we provide.
19803         * modules/canonicalize (configure.ac): Likewise.
19804         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19805         realpath if canonicalize_file_name is missing.
19806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19807         * modules/stdlib (Makefile.am): Substitute witnesses.
19808         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19809         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19810         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19811         * NEWS: Document this.
19812         * doc/glibc-functions/canonicalize_file_name.texi
19813         (canonicalize_file_name): Likewise.
19814         * doc/posix-functions/realpath.texi (realpath): Likewise.
19815         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19816
19817         test-canonicalize: consolidate into single C program
19818         * tests/test-canonicalize.sh: Delete; move setup into...
19819         * tests/test-canonicalize.c (main): ...the program, making it
19820         easier to run in debugger.  Add some tests.
19821         * modules/canonicalize-tests (Files): Remove unused file.
19822         (Depends-on): Add progname.
19823         (configure.ac, Makefile.am): Simplify.
19824
19825         test-canonicalize-lgpl: consolidate into single C program
19826         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19827         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19828         easier to run in debugger.  Add some tests.
19829         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19830         (configure.ac, Makefile.am): Simplify.
19831
19832         canonicalize: avoid resolvepath
19833         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19834         unnecessary checks.
19835         * lib/canonicalize.c (includes): Simplify.
19836         (canonicalize_file_name): Drop resolvepath implementation.
19837         * modules/canonicalize (Depends-on): Drop filenamecat.
19838
19839         canonicalize: don't lose errno
19840         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19841         over calls to free.
19842
19843         canonicalize: simplify errno handling
19844         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19845         assignment.
19846
19847         canonicalize, canonicalize-lgpl: update module dependencies
19848         * modules/canonicalize (Depends-on): Add extensions, lstat,
19849         pathmax, stdlib.
19850         (Files): Drop pathmax.h.
19851         (configure.ac): Adjust macro name.
19852         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19853         lstat, stdlib, sys_stat.
19854         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19855         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19856         extensions.
19857         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19858         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19859         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19860         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19861         declaration, if available.
19862         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19863         we can rely on the readlink module.
19864         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19865         (includes): Use <unistd.h> unconditionally.
19866
19867 2009-09-17  Eric Blake  <ebb9@byu.net>
19868
19869         maint: make Include sections of modules consistent
19870         * modules/alloca: Use only header name; no need to list #include.
19871         * modules/alloca-opt: Likewise.
19872         * modules/arpa_inet: Likewise.
19873         * modules/canon-host: Likewise.
19874         * modules/configmake: Likewise.
19875         * modules/dirent: Likewise.
19876         * modules/eealloc: Likewise.
19877         * modules/environ: Likewise.
19878         * modules/fchdir: Likewise.
19879         * modules/fcntl: Likewise.
19880         * modules/fcntl-h: Likewise.
19881         * modules/gethrxtime: Likewise.
19882         * modules/gettime: Likewise.
19883         * modules/ignore-value: Likewise.
19884         * modules/inet_ntop: Likewise.
19885         * modules/inet_pton: Likewise.
19886         * modules/inttypes: Likewise.
19887         * modules/isnand-nolibm: Likewise.
19888         * modules/isnanf-nolibm: Likewise.
19889         * modules/mbchar: Likewise.
19890         * modules/mbfile: Likewise.
19891         * modules/mbiter: Likewise.
19892         * modules/mbuiter: Likewise.
19893         * modules/netdb: Likewise.
19894         * modules/netinet_in: Likewise.
19895         * modules/nproc: Likewise.
19896         * modules/pagealign_alloc: Likewise.
19897         * modules/poll: Likewise.
19898         * modules/printf-frexp: Likewise.
19899         * modules/pthread: Likewise.
19900         * modules/putenv: Likewise.
19901         * modules/random_r: Likewise.
19902         * modules/relocatable-prog: Likewise.
19903         * modules/search: Likewise.
19904         * modules/select: Likewise.
19905         * modules/selinux-h: Likewise.
19906         * modules/settime: Likewise.
19907         * modules/signal: Likewise.
19908         * modules/size_max: Likewise.
19909         * modules/socklen: Likewise.
19910         * modules/ssize_t: Likewise.
19911         * modules/stdarg: Likewise.
19912         * modules/stdbool: Likewise.
19913         * modules/stddef: Likewise.
19914         * modules/stdint: Likewise.
19915         * modules/stdio: Likewise.
19916         * modules/stdlib: Likewise.
19917         * modules/string: Likewise.
19918         * modules/strings: Likewise.
19919         * modules/sys_file: Likewise.
19920         * modules/sys_ioctl: Likewise.
19921         * modules/sys_select: Likewise.
19922         * modules/sys_socket: Likewise.
19923         * modules/sys_stat: Likewise.
19924         * modules/sys_time: Likewise.
19925         * modules/sys_times: Likewise.
19926         * modules/sys_utsname: Likewise.
19927         * modules/sys_wait: Likewise.
19928         * modules/sysexits: Likewise.
19929         * modules/time: Likewise.
19930         * modules/times: Likewise.
19931         * modules/tmpfile: Likewise.
19932         * modules/trim: Likewise.
19933         * modules/unistd: Likewise.
19934         * modules/wchar: Likewise.
19935         * modules/wctype: Likewise.
19936
19937 2009-09-17  Bruno Haible  <bruno@clisp.org>
19938
19939         Make getdate.y compile on QNX and NetBSD 5 / i386.
19940         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19941         TIME_T_FITS_IN_LONG_INT.
19942         * lib/getdate.y (long_time_t): New type.
19943         (relative_time): Change type of 'seconds' field to long_time_t.
19944         (get_date): Update types of local variables. Check against overflow
19945         during conversion from long_time_t to time_t.
19946         Reported by Matt Kraai <kraai@ftbfs.org>
19947         and Hasso Tepper <hasso@netbsd.org>.
19948
19949 2009-09-17  Bruno Haible  <bruno@clisp.org>
19950
19951         * modules/COPYING: Update copyright years.
19952         * modules/README: Likeiwse.
19953         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19954         Reported by Ian Beckwith <ianb@erislabs.net>.
19955
19956 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19957
19958         * users.txt: Update references for gnuit package.
19959
19960 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19961
19962         * m4/getdelim.m4: Fix typo in copyright line.
19963
19964 2009-09-17  Bruno Haible  <bruno@clisp.org>
19965
19966         * lib/atoll.c: Use the standard header with GPL copyright.
19967         * lib/argz.in.h: Likewise.
19968         * lib/glob.c: Likewise.
19969         * lib/glob-libc.h: Likewise.
19970         * lib/random_r.c: Likewise.
19971         * lib/siglist.h: Likewise.
19972         * lib/strsignal.c: Likewise.
19973         Reported by Ian Beckwith <ianb@erislabs.net>.
19974
19975 2009-09-17  Eric Blake  <ebb9@byu.net>
19976
19977         rmdir: ensure correct dependency order
19978         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19979
19980 2009-09-17  Bruno Haible  <bruno@clisp.org>
19981
19982         Disable assertion that fails on NetBSD 5 / i386.
19983         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19984         Reported by Sam Steingold <sds@gnu.org>
19985         and Hasso Tepper <hasso@netbsd.org>.
19986
19987 2009-09-16  Eric Blake  <ebb9@byu.net>
19988
19989         unlinkdir: port to mingw
19990         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19991         on which no one can unlink a directory.
19992
19993         stdlib: sort witness names
19994         * modules/stdlib (Makefile.am): Sort replacements.
19995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19996         * lib/stdlib.in.h: Likewise.
19997
19998         parse-duration-tests: avoid link failure
19999         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20000         LIBINTL.
20001         Reported by Tom G. Christensen.
20002
20003         openat-tests: ensure unlinkat behaves like rmdir
20004         * tests/test-rmdir.c (main): Factor guts...
20005         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20006         * modules/rmdir-tests (Files): Ship new file.
20007         * modules/openat-tests: New test.
20008         * tests/test-unlinkat.c: Likewise.
20009
20010         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20011         * modules/rmdir-errno (Status, Notice): Now obsolete.
20012
20013         rmdir: work around cygwin 1.5.x and mingw bugs
20014         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20015         * lib/rmdir.c (rmdir): Work around it.
20016         * modules/rmdir (Status, Notice): No longer obsolete.
20017         (Files): Add dos.m4.
20018         (Depends-on): Add unistd.
20019         (configure.ac): Set witnesses.
20020         (License): Relax to LGPLv2+.
20021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20022         * modules/unistd (Makefile.am): Substitute witnesses.
20023         * lib/unistd.in.h (rmdir): Declare replacement.
20024         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20025         * modules/rmdir-tests: New tests.
20026         * tests/test-rmdir.c: Likewise.
20027
20028 2009-09-15  Eric Blake  <ebb9@byu.net>
20029
20030         fchdir: improve use of replacement functions
20031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20033         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20034         REPLACE_CLOSEDIR.
20035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20036         * modules/sys_stat (Makefile.am): Substitute correct witness.
20037         * modules/dirent (Makefile.am): Likewise.
20038         * modules/unistd (Makefile.am): Likewise.
20039         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20040         * lib/unistd.in.h (dup): Likewise.
20041         * lib/sys_stat.in.h (fstat): Likewise.
20042
20043         maint: ignore gnulib-tool temp files
20044         * .gitignore: Ignore files created during gnulib-tool --test.
20045
20046 2009-09-13  Jim Meyering  <meyering@redhat.com>
20047
20048         posixtm: don't reject a time that specify "60" as the number of seconds
20049         * lib/posixtm.c (posixtime): The code to reject invalid dates
20050         would also reject a time specified with the .60 suffix.
20051         But POSIX allows that, in order to accommodate leap seconds.
20052         So don't reject it.
20053         (main): Adjust tests accordingly.
20054         * modules/posixtm (Depends-on): Add stpcpy.
20055
20056 2009-09-11  Jim Meyering  <meyering@redhat.com>
20057
20058         announce-gen: include [$release_type] in emitted Subject:
20059         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20060         e.g., [stable] in the emitted Subject: line.
20061
20062 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20063
20064         Remove obsolete macros from several modules.
20065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20066         obsolete Autoconf macros with their modern counterparts.
20067         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20068         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20069         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20070         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20072         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20075         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20076         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20077         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20078         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20079         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20080         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20081         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20082         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20083         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20084         * m4/time_r.m4 (gl_TIME_R): Likewise.
20085         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20086         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20087         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20088
20089         Fix copyright header in build-aux scripts.
20090         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20091         recommendation.
20092         * build-aux/ncftpput-ftp: Likewise.
20093         * build-aux/update-copyright: Likewise.
20094
20095 2009-09-09  Eric Blake  <ebb9@byu.net>
20096
20097         test-link: allow Linux choice of errno
20098         * tests/test-link.c (main): Relax test for alternate error.
20099
20100         strndup: fix improper m4 caching
20101         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20102         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20103         (gl_PREREQ_STRNDUP): Delete.
20104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20105         * modules/string (Makefile.am): Substitute it.
20106         * lib/string.in.h (strndup): Modernize prototype.
20107
20108         getcwd: port to mingw
20109         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20110         different from the POSIX assumptions made throughout the getcwd
20111         module; fortunately, the mingw getcwd does not need replacement.
20112         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20113         * modules/getcwd-tests: New test.
20114         * tests/test-getcwd.c: Likewise.
20115
20116         link: fix platform bugs
20117         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20118         * lib/link.c (link): Work around them.  Fix related mingw bug.
20119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20120         * modules/unistd (Makefile.am): Substitute it.
20121         * lib/unistd.in.h (link): Declare replacement.
20122         * doc/posix-functions/link.texi (link): Document this.
20123         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20124
20125         test-link: consolidate into single C program, test more cases
20126         * tests/test-link.sh: Delete.
20127         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20128         at least Cygwin and Solaris.
20129         * modules/link-tests (Files): Remove unused file.
20130         (Depends-on): Add errno, sys_stat.
20131         (Makefile.am): Simplify.
20132
20133 2009-09-08  Bruno Haible  <bruno@clisp.org>
20134
20135         Work around towlower, towupper bug on mingw.
20136         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20137         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20138         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20139         * doc/posix-functions/towupper.texi: Likewise.
20140         Reported by Eric Blake.
20141
20142 2009-09-08  Jim Meyering  <meyering@redhat.com>
20143
20144         build: don't try to run autoheader if we don't use it
20145         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20146         is not used in configure.ac.
20147
20148 2009-09-08  Eric Blake  <ebb9@byu.net>
20149
20150         euidaccess: fix compilation error
20151         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20152
20153         rawmemchr: relax license
20154         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20155         okay.
20156         Reported by Jim Meyering.
20157
20158         mkfifoat: new module
20159         * modules/mkfifoat: New file.
20160         * lib/mkfifoat.c: Likewise.
20161         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20163         * modules/sys_stat (Makefile.am): Use them.
20164         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20165         * MODULES.html.sh (File system functions): Mention module.
20166         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20167         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20168         * modules/mkfifoat-tests: New test.
20169         * tests/test-mkfifoat.c: Likewise.
20170
20171         strchrnul: relax license
20172         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20173         okay.
20174         Reported by Jim Meyering.
20175
20176 2009-09-08  Eric Blake  <ebb9@byu.net>
20177
20178         fstatat: fix compilation on Solaris
20179         * lib/fstatat.c (includes): Add fcntl.h.
20180         Reported by Pádraig Brady.
20181
20182 2009-09-07  Eric Blake  <ebb9@byu.net>
20183
20184         rename: modernize replacement
20185         * modules/rename (Depends-on): Add stdio.
20186         (configure.ac): Declare witness.
20187         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20188         stdio take care of replacement.
20189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20190         * modules/stdio (Makefile.am): Substitute them.
20191         * lib/stdio.in.h (rename): Declare replacement.
20192         * lib/rename.c (includes): Allow cross-compilation to non-windows
20193         machines.
20194         * doc/posix-functions/rename.texi (rename): Improve
20195         documentation.
20196
20197         stdio: sort witness names
20198         * modules/stdio (Makefile.am): Sort replacements.
20199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20200         * lib/stdio.in.h: Likewise.
20201
20202         getcwd: minor cleanups
20203         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20204         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20205
20206         openat: provide more convenience names
20207         * modules/faccessat (configure.ac): Add C witness.
20208         * lib/unistd.in.h (readlinkat): Fix typo.
20209         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20210         convenience wrappers.
20211         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20212         wrappers in syntax checks.
20213
20214 2009-09-06  Eric Blake  <ebb9@byu.net>
20215
20216         doc: fix comments in recent patches
20217         * lib/faccessat.c: Mention correct function.
20218         * lib/fchmodat.c: Likewise.
20219         * lib/fchownat.c: Likewise.
20220         * lib/symlinkat.c: Likewise.
20221         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20222         constants.
20223
20224         faccessat, symlinkat: continue cleanup of previous patch
20225         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20226         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20227         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20229         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20230         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20231         set.
20232
20233 2009-09-06  Bruno Haible  <bruno@clisp.org>
20234
20235         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20236         (fstatat): Declare if GNULIB_FSTATAT is set.
20237         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20238         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20239         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20240         * modules/fcntl-h (Files): Remove m4/openat.m4.
20241         * modules/sys_stat (Files): Remove m4/openat.m4.
20242         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20243         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20244         * modules/unistd (Files): Remove m4/openat.m4.
20245         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20246         GNULIB_OPENAT.
20247         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20248         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20250         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20251         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20252         gl_OPENAT_DEFAULTS.
20253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20254         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20255         Don't require gl_OPENAT_DEFAULTS.
20256         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20257         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20258         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20259         (gl_OPENAT_DEFAULTS): Remove macro.
20260
20261 2009-09-06  Bruno Haible  <bruno@clisp.org>
20262
20263         * modules/openat (configure.ac): Remove unneeded witness.
20264
20265 2009-09-06  Bruno Haible  <bruno@clisp.org>
20266
20267         Set errno to ENOSYS when a function is entirely unsupported.
20268         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20269         EOPNOTSUPP.
20270         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20271         * modules/chown (Depends-on): Remove errno.
20272
20273 2009-09-06  Bruno Haible  <bruno@clisp.org>
20274
20275         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20276
20277 2009-09-06  Bruno Haible  <bruno@clisp.org>
20278
20279         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20280
20281 2009-09-06  Ben Pfaff  <blp@gnu.org>
20282             Bruno Haible  <bruno@clisp.org>
20283
20284         Work around a glibc bug in strtok_r.
20285         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20286         Undefine if UNDEFINE_STRTOK_R is set.
20287         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20289         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20290         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20291         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20292         UNDEFINE_STRTOK_R.
20293         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20294
20295 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20296
20297         exclude: minor fix
20298         * lib/exclude.c: Include wctype.h
20299
20300 2009-09-06  Akim Demaille  <demaille@gostai.com>
20301
20302         bootstrap: improve error message
20303         * build-aux/bootstrap (find_tool): Upon failure, report the list
20304         of candidates.
20305         Honor the initial value of the envvar.
20306
20307 2009-09-05  Eric Blake  <ebb9@byu.net>
20308
20309         symlinkat: new module
20310         * modules/symlinkat: New file.
20311         * lib/symlinkat.c: Likewise.
20312         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20314         * modules/unistd (Makefile.am): Use them.
20315         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20316         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20317         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20318         * MODULES.html.sh (File system functions): Mention module.
20319         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20320         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20321         * modules/symlinkat-tests: New test.
20322         * tests/test-symlinkat.c: Likewise.
20323
20324         test-openat-safer: add more checks
20325         * tests/test-openat-safer.c (main): Check more code paths.
20326
20327 2009-09-05  Jim Meyering  <meyering@redhat.com>
20328
20329         syntax-check: detect unnecessary inclusion of openat.h
20330         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20331
20332 2009-09-05  Bruno Haible  <bruno@clisp.org>
20333
20334         Support towlower, towupper.
20335         * doc/posix-functions/towlower.texi: Mention module wctype.
20336         * doc/posix-functions/towupper.texi: Likewise.
20337         * lib/wctype.in.h (towlower, towupper): New functions.
20338         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20339         (ASSERT): New macro.
20340         (e): New variable.
20341         (main): Test also towlower, towupper. Test WEOF argument.
20342         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20343
20344 2009-09-05  Bruno Haible  <bruno@clisp.org>
20345
20346         Fix conversion behaviour when the input is invalid.
20347         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20348         mark occurring in first pass of indirect conversion.
20349         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20350         input.
20351         Found by clang's static analyzer.
20352
20353 2009-09-05  Bruno Haible  <bruno@clisp.org>
20354
20355         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20356         where direct conversion is possible.
20357
20358 2009-09-04  Eric Blake  <ebb9@byu.net>
20359
20360         openat: fail with ENOENT on empty name
20361         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20362         buffer.
20363
20364         link-follow: fix logic bug in prior patch
20365         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20366         reversed sense of yes and no in prior patch.  Avoid confusing
20367         compilation failure with desired semantics.
20368
20369         link-follow: accomodate mingw and cross-compilation
20370         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20371         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20372         cross-compilation results to -1, to make linkat easier to
20373         implement when cross-compiling.  Trivially support mingw.
20374         * modules/link-follow (configure.ac): Call new name.
20375         * NEWS: Mention this.
20376
20377 2009-09-03  Eric Blake  <ebb9@byu.net>
20378
20379         faccessat: compile replacement
20380         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20381         needed.
20382
20383         fts: fix compilation error
20384         * lib/fts.c (includes): Re-add "openat.h", for
20385         openat_needs_fchdir.
20386
20387         faccessat: new module
20388         * modules/faccessat: New file.
20389         * lib/faccessat.c: Likewise.
20390         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20392         * modules/unistd (Makefile.am): Use it.
20393         * lib/unistd.in.h (faccessat): Declare it.
20394         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20395         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20396         * MODULES.html.sh (File system functions): Mention it.
20397         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20398         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20399
20400         euidaccess: prefer POSIX over non-standard implementation
20401         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20402         * lib/euidaccess.c (euidaccess): Use it if available.
20403
20404         openat: make template easier to use
20405         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20406         AT_FUNC_F2 to be undefined.
20407         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20408         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20409         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20410         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20411         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20412         Likewise.
20413         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20414         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20415         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20416         Likewise.
20417
20418         openat: declare in POSIX headers
20419         * NEWS: Mention this.
20420         * modules/openat (configure.ac): Declare witnesses.
20421         (Depends-on): Add fcntl-h, sys_stat, unistd.
20422         (Include): Mention correct headers.
20423         * modules/fcntl-h (Depends-on): Add link-warning.
20424         (Files): Add openat.m4.
20425         (Makefile.am): Substitute witnesses.
20426         * modules/sys_stat (Files, Makefile.am): Likewise.
20427         * modules/unistd (Files, Makefile.am): Likewise.
20428         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20429         (gl_OPENAT_DEFAULTS): New macro.
20430         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20433         (SYS_STAT_H): Remove unused variable.
20434         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20435         * lib/fcntl--.h (includes): Remove unneeded header.
20436         * lib/openat-safer.c (includes): Likewise.
20437         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20438         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20439         appropriate headers.
20440         (__OPENAT_PREFIX): Delete.
20441         * lib/fcntl.in.h (openat): Provide declaration.
20442         (AT_FDCWD): Fix Solaris bug.
20443         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20444         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20445         * lib/fchmodat.c (includes):  Adjust to find declaration.
20446         * lib/fchownat.c (includes): Likewise.
20447         * lib/mkdirat.c (includes): Likewise.
20448         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20449         still visible.
20450
20451 2009-09-02  Eric Blake  <ebb9@byu.net>
20452
20453         errno: use consistently
20454         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20455         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20456         * lib/canonicalize.c (ELOOP): Likewise.
20457         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20458         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20459         * lib/lchown.c (EOPNOTSUPP): Likewise.
20460         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20461         * lib/savewd.c (ESTALE): Likewise.
20462         * lib/settime.c (ENOSYS): Likewise.
20463         * lib/utimens.c (ENOSYS): Likewise.
20464         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20465         * lib/chdir-safer.c (ELOOP): Likewise.
20466         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20467         * modules/c-stack (Depends-on): Add errno.
20468         * modules/canonicalize (Depends-on): Likewise.
20469         * modules/chdir-safer (Depends-on): Likewise.
20470         * modules/fdopendir (Depends-on): Likewise.
20471         * modules/inet_ntop (Depends-on): Likewise.
20472         * modules/inet_pton (Depends-on): Likewise.
20473         * modules/lchown (Depends-on): Likewise.
20474         * modules/openat (Depends-on): Likewise.
20475         * modules/savewd (Depends-on): Likewise.
20476         * modules/settime (Depends-on): Likewise.
20477         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20478
20479         fts: avoid leaking fds
20480         * modules/fts (Depends-on): Add cloexec.
20481         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20482         flag.
20483
20484         fts: make directory fds more robust
20485         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20486         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20487
20488         backupfile, chdir-long, fts, savedir: make safer
20489         * lib/backupfile.c (includes): Use "dirent--.h", since
20490         numbered_backup can write to stderr during readdir.
20491         * lib/savedir.c (includes): Likewise.
20492         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20493         emulation can write to stderr on failure.
20494         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20495         * lib/getcwd.c: Document why opendir_safer is unused.
20496         * lib/glob.c: Likewise.
20497         * lib/scandir.c: Likewise.
20498         * lib/openat-proc.c: Likewise, for open_safer.
20499         * modules/backupfile (Depends-on): Add dirent-safer.
20500         * modules/savedir (Depends-on): Likewise.
20501         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20502         * modules/chdir-long (Depends-on): Add openat-safer.
20503
20504         openat-safer: new module
20505         * modules/openat-safer: New file.
20506         * lib/openat-safer.c: Likewise.
20507         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20508         * lib/fcntl-safer.h (openat_safer): Declare.
20509         * lib/fcntl--.h (openat): Override.
20510         * MODULES.html.sh (File descriptor based I/O): Mention it.
20511         * lib/openat.h: Add double-inclusion guards.
20512         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20513         "fcntl--.h", so we can implement openat.
20514         * modules/openat-safer-tests: New test.
20515         * tests/test-openat-safer.c: New file.
20516
20517         dirent-safer: new module
20518         * modules/dirent-safer: New file.
20519         * lib/dirent--.h: Likewise.
20520         * lib/dirent-safer.h: Likewise.
20521         * lib/opendir-safer.c: Likewise.
20522         * m4/dirent-safer.m4: Likewise.
20523         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20524         * modules/dirent-safer-tests: New test.
20525         * tests/test-dirent-safer.c: New file.
20526         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20527
20528         fdopendir: optimize on mingw
20529         * lib/unistd.in.h (_gl_directory_name): New prototype.
20530         * lib/fchdir.c (_gl_directory_name): Implement it.
20531         (fchdir): Use it to simplify implementation.
20532         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20533         fchdir, when available, to avoid calling [f]chdir().
20534
20535         fdopendir: split into its own module
20536         * lib/openat.c (fdopendir): Move...
20537         * lib/fdopendir.c: ...into new file.
20538         * modules/fdopendir: New module.
20539         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20540         * modules/openat (Depends-on): Add fdopendir.
20541         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20542         fdopendir here.
20543         * modules/savedir (Depends-on): Only need fdopendir, not full
20544         openat.
20545         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20546         * lib/openat.h (fdopendir): Drop prototype.
20547         * lib/dirent.in.h (fdopendir): Provide prototype.
20548         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20549         * modules/dirent (Makefile.am): Substitute them.
20550         * MODULES.html.sh (File system functions): Mention it.
20551         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20552         * modules/fdopendir-tests: New file.
20553         * tests/test-fdopendir.c: Likewise.
20554
20555         fchdir: use more consistent macro convention
20556         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20557         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20558         REPLACE_FCHDIR, rather than relying on config.h macros.
20559         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20560         inside a single make-time REPLACE_FCHDIR block, rather than using
20561         the config.h FCHDIR_REPLACEMENT.
20562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20563         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20564         Manage fstat replacement.
20565         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20566         REPLACE_FCHDIR.
20567         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20568         (Makefile.am): Substitute REPLACE_FCHDIR.
20569         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20570         FCHDIR_REPLACEMENT.
20571         * lib/dup-safer.c (dup_safer): Likewise.
20572         * lib/dup2.c (rpl_dup2): Likewise.
20573         * lib/dup3.c (rpl_dup3): Likewise.
20574         * lib/open.c (rpl_open): Likewise.
20575
20576         fchdir: simplify error handling, and support dup3
20577         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20578         stdbool, malloc-posix, realloc-posix.
20579         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20580         (ensure_dirs_slot): Return false on allocation failure.
20581         (rpl_dup2): Delete.
20582         (_gl_register_dup): New function.
20583         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20584         (_gl_register_fd): Close fd on allocation failure.
20585         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20586         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20587         prototype.
20588         (rpl_dup2_fchdir): Delete prototype.
20589         * lib/open.c (open): Update caller.
20590         * lib/dup2.c (dup2): Track fchdir metadata.
20591         * lib/dup3.c (dup3): Likewise.
20592         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20594
20595 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20596
20597         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20598         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20599         don't pass arguments to AC_OUTPUT.
20600
20601 2009-09-02  Bruno Haible  <bruno@clisp.org>
20602
20603         * modules/mkdtemp (License): Relicense under LGPLv2+.
20604         Reported by Paolo Bonzini.
20605
20606 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20607
20608         Replace uses of obsolete autoconf macros in Jim's modules.
20609         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20610         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20611         can evoke a warning from autoconf when run with -Wobsolete
20612         enabled.  They were declared obsolete for good reasons (see
20613         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20614         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20615         should not continue using the deprecated macros.
20616         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20617         obsolete Autoconf macros with modern counterparts.
20618         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20619         * m4/dos.m4 (gl_AC_DOS): Likewise.
20620         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20622         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20623         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20624         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20626         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20627         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20628         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20629         Likewise.
20630         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20631         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20632         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20633         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20634         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20635         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20636
20637 2009-09-01  Eric Blake  <ebb9@byu.net>
20638
20639         fchdir: fix off-by-one bug in previous patch
20640         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20641         (_gl_unregister_fd): Delete useless if.
20642
20643 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20644
20645         maint.mk: sort the list of syntax-check rules
20646         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20647         easier to get a sense of progress when the rules are run sequentially
20648         and take a long time.
20649
20650 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20651
20652         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20653         * modules/netinet_in: Likewise.
20654         * modules/sys_file: Likewise.
20655         * modules/sys_ioctl: Likewise.
20656         * modules/sys_select: Likewise.
20657         * modules/sys_socket: Likewise.
20658         * modules/sys_stat: Likewise.
20659         * modules/sys_time: Likewise.
20660         * modules/sys_times: Likewise.
20661         * modules/sys_utsname: Likewise.
20662         * modules/sys_wait: Likewise.
20663
20664 2009-09-01  Jim Meyering  <meyering@redhat.com>
20665
20666         fts: help ensure that return values are not ignored
20667         * lib/fts_.h (__GNUC_PREREQ): Define.
20668         (__attribute_warn_unused_result__): Define.
20669         (fts_children, fts_close, fts_open, fts_read): Declare with
20670         __attribute_warn_unused_result__.
20671
20672         fts: fts_close now fails also when closing a dir file descriptor fails
20673         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20674         and propagate to caller, along with errno.
20675
20676         announce-gen: correct formatting in --help output
20677         * build-aux/announce-gen (usage): Move the one-line description in
20678         --help output "up", to where it belongs, just after Usage:.
20679
20680 2009-08-31  Eric Blake  <ebb9@byu.net>
20681
20682         fchdir: port to mingw
20683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20684         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20685         opened, then use a substitute.
20686         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20687         replacement.
20688         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20689         (_gl_register_fd): No need to check stat if open already filters
20690         all directories.
20691         (fchdir): Fix error condition to match POSIX.
20692         * modules/fchdir (Depends-on): Add sys_stat.
20693         * doc/posix-functions/open.texi (open): Document the limitation.
20694         * modules/fchdir-tests: New file.
20695         * tests/test-fchdir.c: Likewise.
20696
20697         canonicalize: allow cross-testing from cygwin to mingw
20698         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20699         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20700         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20701         Likewise.
20702         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20703         target does not support symlinks.
20704         * tests/test-canonicalize-lgpl.sh: Likewise.
20705
20706         chown: avoid compilation warning on mingw
20707         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20708         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20709         mingw.
20710         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20711         * modules/chown (Depends-on): Add errno.
20712
20713 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20714
20715         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20716         command.
20717
20718 2009-08-31  Jim Meyering  <meyering@redhat.com>
20719
20720         canonicalize: remove useless initialization
20721         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20722         initialization of local, "end".
20723
20724 2009-08-30  Bruno Haible  <bruno@clisp.org>
20725
20726         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20727         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20728         ENOSYS.
20729
20730 2009-08-30  Bruno Haible  <bruno@clisp.org>
20731
20732         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20733         /usr/xpg4/bin/tr when it exists.
20734         * tests/test-pipe-filter-gi1.sh: Likewise.
20735
20736 2009-08-30  Bruno Haible  <bruno@clisp.org>
20737
20738         Work around deficient /usr/bin/id program on Solaris.
20739         * tests/test-file-has-acl.sh (ID): New variable.
20740         * tests/test-set-mode-acl.sh (ID): Likewise.
20741         * tests/test-copy-acl.sh (ID): Likewise.
20742         * tests/test-copy-file.sh (ID): Likewise.
20743
20744 2009-08-30  Bruno Haible  <bruno@clisp.org>
20745
20746         New module 'xstriconveh'.
20747         * lib/xstriconveh.h: New file.
20748         * lib/xstriconveh.c: New file.
20749         * modules/xstriconveh: New file.
20750
20751 2009-08-30  Bruno Haible  <bruno@clisp.org>
20752
20753         Make it easier to use mem_cd_iconveh.
20754         * lib/striconveh.h (iconveh_t): New type.
20755         (iconveh_open, iconveh_close): New declarations.
20756         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20757         with a single 'const iconveh_t *' argument.
20758         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20759         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20760         with a single 'const iconveh_t *' argument.
20761         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20762         * tests/test-striconveh.c (main): Update.
20763         * NEWS: Mention the change.
20764
20765 2009-08-30  Bruno Haible  <bruno@clisp.org>
20766
20767         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20768         problem.
20769
20770 2009-08-30  Bruno Haible  <bruno@clisp.org>
20771
20772         Work around iconv_open problem on Solaris.
20773         * lib/iconv_open-solaris.gperf: New file.
20774         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20776         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20777         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20778         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20779         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20780
20781 2009-08-29  Jim Meyering  <meyering@redhat.com>
20782
20783         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20784         * top/maint.mk (cvs-check): Remove target; it was just an alias
20785         to the better-named vc-diff-check.
20786         (maintainer-distcheck): Remove rule.  It was used only from
20787         the (alpha/beta/major) target, and all of its commands but one
20788         were coreutils-specific.
20789         (vc-dist): Remove rule.
20790         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20791         Run vc-diff-check, not vc-dist.
20792         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20793
20794 2009-08-27  Bruno Haible  <bruno@clisp.org>
20795
20796         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20797         of 0.
20798
20799 2009-08-27  Bruno Haible  <bruno@clisp.org>
20800
20801         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20802         compilers.
20803         * doc/func.texi: Document the SunPRO C bug.
20804
20805 2009-08-27  Bruno Haible  <bruno@clisp.org>
20806
20807         Fix link error on Solaris.
20808         * tests/test-parse-duration.c (xstrdup): Remove function.
20809
20810 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20811
20812         ignore-value: handle pointer types, too
20813         * lib/ignore-value.h (__attribute__): Remove definition.
20814         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20815         of a more concise and more-often effective "(void) i" statement.
20816         (ignore_ptr): New function to suppress warnings from functions that
20817         return pointers, and to make it explicit that one function doesn't
20818         handle all cases.
20819
20820 2009-08-25  Bruno Haible  <bruno@clisp.org>
20821
20822         dup2: work around a Linux bug.
20823         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20824         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20825         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20826         Reported by Simon Josefsson.
20827
20828 2009-08-25  Jim Meyering  <meyering@redhat.com>
20829
20830         libguestfs uses gnulib
20831         * users.txt: Add libguestfs.
20832
20833 2009-08-24  Eric Blake  <ebb9@byu.net>
20834
20835         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20836         * lib/pipe2.c (includes): Add binary-io.h.
20837         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20838
20839 2009-08-24  Bruno Haible  <bruno@clisp.org>
20840
20841         Tolerate declared but missing accept4 syscall.
20842         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20843         available.
20844         * lib/sys_socket.in.h (accept4): If the function is already present,
20845         override it.
20846         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20847         * modules/accept4 (Makefile.am): Compile accept4.c always.
20848         Reported by Paolo Bonzini and Eric Blake.
20849
20850 2009-08-23  Bruno Haible  <bruno@clisp.org>
20851
20852         New module 'accept4'.
20853         * lib/sys_socket.in.h (accept4): New declaration.
20854         * lib/accept4.c: New file.
20855         * m4/accept4.m4: New file.
20856         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20857         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20858         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20859         HAVE_ACCEPT4.
20860         * modules/accept4: New file.
20861         * doc/glibc-functions/accept4.texi: Mention the new module.
20862
20863 2009-08-24  Jim Meyering  <meyering@redhat.com>
20864
20865         progname: also set global program_invocation_name, when possible
20866         Before this change, a libtool-enabled program that calls glibc's
20867         error function would report the program name as
20868         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20869         * modules/progname (configure.ac): Check for a declaration of
20870         program_invocation_name.
20871         * lib/progname.c:  Include <errno.h>.
20872         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20873         Set program_invocation_name.
20874
20875 2009-08-23  Bruno Haible  <bruno@clisp.org>
20876
20877         * lib/dup3.c: Include <string.h>.
20878
20879 2009-08-23  Bruno Haible  <bruno@clisp.org>
20880
20881         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20882         * lib/pipe2.c (pipe2): Likewise.
20883         Suggested by Eric Blake.
20884
20885 2009-08-23  Bruno Haible  <bruno@clisp.org>
20886
20887         Tolerate declared but missing dup3 syscall.
20888         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20889         * lib/unistd.in.h (dup3): If the function is already present,
20890         override it.
20891         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20892         * modules/dup3 (Makefile.am): Compile dup3.c always.
20893         Reported by Paolo Bonzini.
20894
20895 2009-08-23  Bruno Haible  <bruno@clisp.org>
20896
20897         Tolerate declared but missing pipe2 syscall.
20898         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20899         available.
20900         * lib/unistd.in.h (pipe2): If the function is already present,
20901         override it.
20902         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20903         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20904         Reported by Paolo Bonzini.
20905
20906 2009-08-23  Bruno Haible  <bruno@clisp.org>
20907
20908         * lib/pipe2.c (pipe2): Move #ifs inside function.
20909
20910 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20911
20912         quotearg: document limitations of quote_these_too
20913         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20914         those limitations are created.
20915         * lib/quotearg.h (set_char_quoting): Document that digits and
20916         letters that are special after backslash are not permitted.
20917         (quotearg_char): Cross-reference set_char_quoting documentation.
20918
20919 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20920
20921         quotearg: implement custom_quoting_style
20922         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20923         right_quote fields.
20924         (set_custom_quoting): New public function.
20925         (quotearg_buffer_restyled): Add left_quote and right_quote
20926         arguments, handle them very much like locale quoting, and update
20927         all uses.
20928         (quotearg_n_custom): New public function.
20929         (quotearg_n_custom_mem): New public function.
20930         (quotearg_custom): New public function.
20931         (quotearg_custom_mem): New public function.
20932         * lib/quotearg.h: Prototype and document new public functions.
20933         (enum quoting_style): For escape_quoting_style and
20934         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20935         ignored even though they're otherwise like c_quoting_style.
20936         Add custom_quoting_style member and document with comparison to
20937         clocale_quoting_style.
20938         * tests/test-quotearg.c (custom_quotes): New array.
20939         (custom_results): New array.
20940         (main): Extend to test custom quoting.
20941
20942 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20943
20944         quotearg: fix right quote escaping when it's in quote_these_too
20945         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20946         quote, be sure to prepend only one backslash.
20947         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20948         (main): Test it.
20949
20950 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20951
20952         quotearg-tests: test escaping of embedded locale quotes
20953         * tests/test-quotearg.c (struct result_strings): Add member for
20954         new input.
20955         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20956         (inputs): Add new input.
20957         (results_g): Add expected results.
20958         (flag_results): Likewise.
20959         (locale_results): Likewise.
20960         (compare_strings): Check those.
20961
20962 2009-08-23  Bruno Haible  <bruno@clisp.org>
20963
20964         Tests for module 'dup3'.
20965         * modules/dup3-tests: New file.
20966         * tests/test-dup3.c: New file.
20967
20968         New module 'dup3'.
20969         * lib/unistd.in.h (dup3): New declaration.
20970         * lib/dup3.c: New file.
20971         * m4/dup3.m4: New file.
20972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20973         HAVE_DUP3.
20974         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20975         * modules/dup3: New file.
20976         * doc/glibc-functions/dup3.texi: Mention the new module.
20977
20978 2009-08-23  Bruno Haible  <bruno@clisp.org>
20979
20980         Tweak the dup2 test.
20981         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20982         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20983         the test file is still empty. Fix argument order of lseek.
20984
20985 2009-08-23  Bruno Haible  <bruno@clisp.org>
20986
20987         Avoid test link errors when the modules getopt-gnu, gettext are used.
20988         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20990
20991 2009-08-23  Bruno Haible  <bruno@clisp.org>
20992
20993         Fix getdtablesize() on mingw.
20994         * lib/getdtablesize.c (getdtablesize): Implement differently.
20995         * lib/unistd.in.h (getdtablesize): Improve comment.
20996
20997 2009-08-23  Bruno Haible  <bruno@clisp.org>
20998
20999         New module 'mkostemp'.
21000         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21001         * lib/stdlib.in.h (mksotemp): New declaration.
21002         * lib/mkostemp.c: New file, from glibc with modifications.
21003         * lib/tempname.h (GT_FILE): Remove outdated comment.
21004         (gen_tempname): Add flags argument.
21005         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21006         (__GT_FILE): Map to 1.
21007         (small_open, large_open): Remove macros.
21008         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21009         * lib/mkstemp.c (mkstemp): Update.
21010         * lib/mkdtemp.c (mkdtemp): Likewise.
21011         * m4/mkostemp.m4: New file.
21012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21013         HAVE_MKOSTEMP.
21014         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21015         HAVE_MKOSTEMP.
21016         * modules/mkostemp: New file, based on modules/mkstemp.
21017         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21018         * NEWS: Mention the change.
21019
21020 2009-08-23  Bruno Haible  <bruno@clisp.org>
21021
21022         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21023         Reported by Eric Blake.
21024
21025 2009-08-23  Bruno Haible  <bruno@clisp.org>
21026
21027         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21028         Reported by Eric Blake.
21029
21030 2009-08-23  Bruno Haible  <bruno@clisp.org>
21031
21032         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21033         * modules/pipe2 (Depends-on): Likewise.
21034
21035 2009-08-23  Eric Blake  <ebb9@byu.net>
21036
21037         fcntl-h: add O_TTY_INIT support
21038         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21039         * tests/test-fcntl-h.c (o): Test it.
21040         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21041
21042         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21043         * modules/fcntl: Move <fcntl.h> header replacement...
21044         * modules/fcntl-h: ...to new name, so as not to collide with
21045         like-named function.
21046         * tests/test-fcntl.c: Rename...
21047         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21048         * modules/fcntl-tests: Rename...
21049         * modules/fcntl-h-tests: ...to this.  Update test file name.
21050         * modules/chdir-long (Depends-on): Update clients.
21051         * modules/chdir-safer (Depends-on): Likewise.
21052         * modules/fcntl-safer (Depends-on): Likewise.
21053         * modules/fts (Depends-on): Likewise.
21054         * modules/mkancesdirs (Depends-on): Likewise.
21055         * modules/mkdir-p (Depends-on): Likewise.
21056         * modules/open (Depends-on): Likewise.
21057         * modules/savewd (Depends-on): Likewise.
21058         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21059         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21060
21061 2009-08-22  Bruno Haible  <bruno@clisp.org>
21062
21063         * modules/binary-io (License): Relicense under LGPL.
21064         * modules/pipe2 (License): Likewise.
21065
21066 2009-08-22  Bruno Haible  <bruno@clisp.org>
21067
21068         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21069         return value.
21070         * lib/pipe-filter-gi.c (filter_init): Likewise.
21071         Reported by Eric Blake.
21072
21073 2009-08-22  Bruno Haible  <bruno@clisp.org>
21074
21075         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21076         * modules/pipe (Depends-on): Add pipe2.
21077
21078 2009-08-22  Bruno Haible  <bruno@clisp.org>
21079
21080         Tests for module 'pipe2'.
21081         * modules/pipe2-tests: New file.
21082         * tests/test-pipe2.c: New file.
21083
21084         New module 'pipe2'.
21085         * lib/unistd.in.h (pipe2): New declaration.
21086         * lib/pipe2.c: New file.
21087         * m4/pipe2.m4: New file.
21088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21089         HAVE_PIPE2.
21090         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21091         * modules/pipe2: New file.
21092         * doc/glibc-functions/pipe2.texi: Mention the new module.
21093
21094 2009-08-22  Bruno Haible  <bruno@clisp.org>
21095
21096         Reference some new glibc functions.
21097         * doc/glibc-functions/accept4.texi: New file.
21098         * doc/glibc-functions/dup3.texi: New file.
21099         * doc/glibc-functions/mkostemp.texi: New file.
21100         * doc/glibc-functions/pipe2.texi: New file.
21101         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21102         (Glibc sys/socket.h): Refer to accept4.
21103         (Glibc unistd.h): Refer to dup3, pipe2.
21104         Reported by Eric Blake.
21105
21106 2009-08-22  Jim Meyering  <meyering@redhat.com>
21107             Bruno Haible  <bruno@clisp.org>
21108
21109         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21110         This makes it so packages using automake-1.11's silent-rules option
21111         can print e.g., a single "GEN    configmake.h" line, rather than
21112         the 30+ statements that perform the job.  If you want to see the
21113         actual commands, you can still run "make V=1".
21114         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21115         so that make output is abbreviated when those variables are defined
21116         appropriately.
21117         * modules/argz: Likewise.
21118         * modules/arpa_inet: Likewise.
21119         * modules/byteswap: Likewise.
21120         * modules/configmake: Likewise.
21121         * modules/dirent: Likewise.
21122         * modules/errno: Likewise.
21123         * modules/fcntl: Likewise.
21124         * modules/float: Likewise.
21125         * modules/fnmatch: Likewise.
21126         * modules/getopt-posix: Likewise.
21127         * modules/glob: Likewise.
21128         * modules/iconv_open: Likewise.
21129         * modules/inttypes: Likewise.
21130         * modules/localcharset: Likewise.
21131         * modules/locale: Likewise.
21132         * modules/math: Likewise.
21133         * modules/netdb: Likewise.
21134         * modules/netinet_in: Likewise.
21135         * modules/poll: Likewise.
21136         * modules/posix_spawnp-tests: Likewise.
21137         * modules/sched: Likewise.
21138         * modules/search: Likewise.
21139         * modules/selinux-h: Likewise.
21140         * modules/signal: Likewise.
21141         * modules/spawn: Likewise.
21142         * modules/stdarg: Likewise.
21143         * modules/stdbool: Likewise.
21144         * modules/stddef: Likewise.
21145         * modules/stdint: Likewise.
21146         * modules/stdio: Likewise.
21147         * modules/stdlib: Likewise.
21148         * modules/string: Likewise.
21149         * modules/strings: Likewise.
21150         * modules/sys_file: Likewise.
21151         * modules/sys_ioctl: Likewise.
21152         * modules/sys_select: Likewise.
21153         * modules/sys_socket: Likewise.
21154         * modules/sys_stat: Likewise.
21155         * modules/sys_time: Likewise.
21156         * modules/sys_times: Likewise.
21157         * modules/sys_utsname: Likewise.
21158         * modules/sys_wait: Likewise.
21159         * modules/sysexits: Likewise.
21160         * modules/time: Likewise.
21161         * modules/unistd: Likewise.
21162         * modules/wchar: Likewise.
21163         * modules/wctype: Likewise.
21164
21165 2009-08-22  Jim Meyering  <meyering@redhat.com>
21166
21167         announce-gen: detect write failure
21168         * build-aux/announce-gen: Add Coda at end.
21169         Remove equivalent-but-more-verbose block at top.
21170
21171 2009-08-19  Akim Demaille  <demaille@gostai.com>
21172
21173         bootstrap: --help to stdout.
21174         * bootstrap (usage): Don't send --help to stderr.
21175         Use a here doc instead of a long string.
21176
21177 2009-08-21  Eric Blake  <ebb9@byu.net>
21178
21179         test-popen-safer: split from test-popen
21180         * tests/test-popen.c (main): Move...
21181         * tests/test-popen.h: ...into new file.
21182         * tests/test-popen-safer2.c: New file.
21183         * modules/popen-tests (Files): Add test-popen.h.
21184         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21185         Suggested by Bruno Haible.
21186
21187         test-fcntl-safer: split from test-open
21188         * tests/test-open.c (main): Move...
21189         * tests/test-open.h: ...into new file.
21190         * tests/test-fcntl-safer.c: New file.
21191         * modules/open-tests (Files): Add test-open.h.
21192         * modules/fcntl-safer-tests: New file.
21193         Suggested by Bruno Haible.
21194
21195         test-fopen-safer: split from test-fopen
21196         * tests/test-fopen.c (main): Move...
21197         * tests/test-fopen.h: ...into new file.
21198         * tests/test-fopen-safer.c: New file.
21199         * modules/fopen-tests (Files): Add test-fopen.h.
21200         * modules/fopen-safer-tests: New file.
21201         Suggested by Bruno Haible.
21202
21203 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21204
21205         popen-safer: test O_CLOEXEC at run-time.
21206         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21207
21208 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21209
21210         fcntl: move more flags to the header
21211         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21212         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21213         * lib/fcntl.in.h: Do both things here.
21214
21215 2009-08-21  Jim Meyering  <meyering@redhat.com>
21216
21217         consistently remove $@-t before redirecting to it
21218         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21219         * modules/alloca-opt: Likewise.
21220         * modules/byteswap: Likewise.
21221         * modules/fnmatch: Likewise.
21222         * modules/getopt-posix: Likewise.
21223         * modules/glob: Likewise.
21224         * modules/poll: Likewise.
21225         * modules/posix_spawnp-tests: Likewise.
21226         * modules/sys_socket: Likewise.
21227         * modules/sysexits: Likewise.
21228
21229 2009-08-21  Eric Blake  <ebb9@byu.net>
21230
21231         popen: simplify access to original popen
21232         * lib/popen.c (rpl_popen): No need to worry about popen being a
21233         macro.
21234         Reported by Bruno Haible.
21235
21236 2009-08-20  Eric Blake  <ebb9@byu.net>
21237
21238         build: avoid some compiler warnings
21239         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21240         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21241         type.
21242         (new_exclude_segment, excluded_file_pattern_p)
21243         (excluded_file_name_p): Reduce scope.
21244         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21245         old-style declaration.
21246
21247 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21248
21249         * tests/test-exclude1.sh: Handle Windows EOL.
21250         * tests/test-exclude2.sh: Likewise.
21251         * tests/test-exclude3.sh: Likewise.
21252         * tests/test-exclude4.sh: Likewise.
21253         * tests/test-exclude5.sh: Likewise.
21254         * tests/test-exclude6.sh: Likewise.
21255         * tests/test-exclude7.sh: Likewise.
21256
21257 2009-08-19  Akim Demaille  <demaille@gostai.com>
21258
21259         bootstrap: find sha1sum when named gsha1sum.
21260         * bootstrap (find_tool): New.
21261         ($SHA1SUM): New.
21262         Use it.
21263
21264 2009-08-20  Jim Meyering  <meyering@redhat.com>
21265
21266         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21267         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21268         expression that converts "." in a file name to "\." in the resulting
21269         regexp.  Start with a dummy statement, so that prior shell variable
21270         definitions are expanded portably.  Reported by Simon Josefsson.
21271
21272 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21273
21274         Fix polling for writeability of a screen buffer.
21275         * lib/poll.c: Distinguish input and screen buffers for the
21276         Win32 implementation.
21277         * lib/select.c: Likewise.
21278
21279 2009-08-19  Eric Blake  <ebb9@byu.net>
21280
21281         popen-safer: prevent popen from clobbering std descriptors
21282         * modules/popen-safer: New file.
21283         * lib/popen-safer.c: Likewise.
21284         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21285         * lib/stdio--.h (popen): Provide override.
21286         * lib/stdio-safer.h (popen_safer): Provide declaration.
21287         * tests/test-popen.c (includes): Partially test this.
21288         * modules/popen-safer-tests: New file, for more tests.
21289         * tests/test-popen-safer.c: Likewise.
21290         * MODULES.html.sh (file stream based Input/Output): Mention it.
21291
21292         tests: test some of the *-safer modules
21293         * modules/fopen-safer (Depends-on): Add fopen.
21294         * modules/fcntl-safer (Depends-on): Add fcntl.
21295         * modules/stdlib-safer (Depends-on): Add stdlib.
21296         (configure.ac): Set indicator.
21297         * modules/unistd-safer (configure.ac): Likewise.
21298         * modules/tmpfile-safer (configure.ac): Likewise.
21299         (Depends-on): Add tmpfile.
21300         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21301         active.
21302         * tests/test-fopen.c (includes): Test safer versions when they are
21303         in use.
21304         * tests/test-open.c (includes): Likewise.
21305
21306         popen: fix cygwin 1.5 bug when stdin closed
21307         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21308         * modules/popen: New file.
21309         * modules/popen-tests: Likewise.
21310         * tests/test-popen.c: Likewise.
21311         * m4/popen.m4: Likewise.
21312         * lib/popen.c: Likewise.
21313         * lib/stdio.in.h (popen): New declaration.
21314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21315         * modules/stdio (Makefile.am): Likewise.
21316         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21317
21318 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21319
21320         maint.mk: give full control over update-copyright exclusions
21321         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21322         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21323         (update-copyright): Don't force inclusion of top-level
21324         ChangeLog.  Don't force exclusion of all COPYING files, but make
21325         them the default exclusion instead.
21326
21327 2009-08-16  Bruno Haible  <bruno@clisp.org>
21328
21329         Fix test failures on Solaris 10.
21330         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21331         tests when Solaris iconv() is used.
21332         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21333         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21334         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21335         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21336         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21337
21338 2009-08-16  Bruno Haible  <bruno@clisp.org>
21339
21340         Fix test failures on Solaris 10.
21341         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21342         'tr' program and pass it as first argument.
21343         * tests/test-pipe-filter-gi1.sh: Likewise.
21344         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21345         program as first argument.
21346         * tests/test-pipe-filter-gi1.c (main): Likewise.
21347
21348 2009-08-16  Eric Blake  <ebb9@byu.net>
21349
21350         fpurge: fix previous commits
21351         * modules/fpurge (Makefile.am): Make replacement conditional,
21352         partially reverting 2007-04-29 change; missed in previous
21353         attempt.
21354         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21355         is missing.
21356
21357 2009-08-16  Bruno Haible  <bruno@clisp.org>
21358
21359         Clarify fpurge's effect on the file position.
21360         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21361         * tests/test-fpurge.c (main): Make a second pass for checking the file
21362         position.
21363
21364 2009-08-16  Bruno Haible  <bruno@clisp.org>
21365
21366         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21367         declaration of fpurge is missing.
21368         * tests/test-fpurge.c (main): Check that the file has not more contents
21369         than expected. Close the file before removing it.
21370
21371 2009-08-15  Eric Blake  <ebb9@byu.net>
21372
21373         fpurge: don't wrap working cygwin implementation
21374         * lib/fpurge.c (fpurge): Fix comment typo.
21375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21376         1.7 to avoid replacement.
21377         * tests/test-fpurge.c (main): Enhance test.
21378
21379 2009-08-15  Eric Blake  <ebb9@byu.net>
21380         and Jim Meyering  <meyering@redhat.com>
21381
21382         test-update-copyright: skip if perl is insufficient
21383         * tests/test-update-copyright.sh: Failure to run maintainer tool
21384         should not cause testsuite failure on cygwin 1.5.
21385
21386 2009-08-14  Eric Blake  <ebb9@byu.net>
21387
21388         doc: mention more functions added in cygwin 1.7.0
21389         * doc/posix-headers/limits.texi (limits.h): Update for recent
21390         cygwin additions.
21391         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21392         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21393         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21394         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21395         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21396
21397 2009-08-14  Eric Blake  <ebb9@byu.net>
21398
21399         maint.mk: simplify update-copyright rule
21400         * top/maint.mk (update-copyright-local): Delete, and document how
21401         to do it in cfg.mk instead.
21402         (update-copyright-exclude-regexp): Delete, and document how to do
21403         it in .x-update-copyright instead.
21404         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21405         exclude ChangeLog.
21406
21407 2009-08-14  Bruno Haible  <bruno@clisp.org>
21408
21409         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21410
21411 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21412
21413         maint.mk: support update-copyright-env
21414         * top/maint.mk (update-copyright-env): Define place-holder.
21415         (update-copyright): Expand $(update-copyright-env) before
21416         invoking update-copyright.
21417
21418 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21419
21420         update-copyright: implement forced reformatting
21421         * build-aux/update-copyright: Implement and document
21422         UPDATE_COPYRIGHT_FORCE.
21423         * tests/test-update-copyright.sh: Test it.
21424
21425 2009-08-14  Eric Blake  <ebb9@byu.net>
21426         and Bruno Haible  <bruno@clisp.org>
21427
21428         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21429         * tests/test-locale.c: Revert previous patch related to NULL.
21430         * tests/test-stdio.c: Likewise.
21431         * tests/test-stdlib.c: Likewise.
21432         * tests/test-string.c: Likewise.
21433         * tests/test-unistd.c: Likewise.
21434         * modules/time-tests (Depends-on): Add verify.
21435         * modules/wchar-tests (Depends-on): Likewise.
21436         * tests/test-time.c: Test for NULL compliance.
21437         * tests/test-wchar.c: Likewise.
21438         * modules/locale (Depends-on): Add stddef.
21439         * modules/stdio (Depends-on): Likewise.
21440         * modules/stdlib (Depends-on): Likewise.
21441         * modules/string (Depends-on): Likewise.
21442         * modules/time (Depends-on): Likewise.
21443         * modules/unistd (Depends-on): Likewise.
21444         * modules/wchar (Depends-on): Likewise.
21445         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21446         * lib/stdlib.in.h (includes): Likewise.
21447         * lib/string.in.h (includes): Likewise.
21448         * lib/time.in.h (includes): Likewise.
21449         * lib/unistd.in.h (includes): Likewise.
21450         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21451         replaced.
21452         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21453         * m4/stddef_h.m4: New file.
21454         * modules/stddef: Likewise.
21455         * lib/stddef.in.h: Likewise.
21456         * modules/stddef-tests: Likewise.
21457         * tests/test-stddef.c: Likewise.
21458         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21459         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21460         * doc/posix-headers/locale.texi (locale.h): Likewise.
21461         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21462         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21463         * doc/posix-headers/string.texi (string.h): Likewise.
21464         * doc/posix-headers/time.texi (time.h): Likewise.
21465         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21466         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21467
21468 2009-08-14  Eric Blake  <ebb9@byu.net>
21469
21470         doc: improve git diff of texinfo files
21471         * .gitattributes: Add rule for *.texi files, with hint on how to
21472         use it.
21473         Copied from m4, and based on a report by Bruno Haible.
21474
21475 2009-08-14  Bruno Haible  <bruno@clisp.org>
21476
21477         Disable multithread support by default on Cygwin 1.5.x for real.
21478         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21479
21480 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21481
21482         update-copyright: much ado about intervals
21483         * build-aux/update-copyright: Implement and document
21484         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21485         of copyright year intervals.
21486         Also, document UPDATE_COPYRIGHT_YEAR.
21487         * tests/test-update-copyright.sh: Test it.
21488
21489         update-copyright: convert 2-digit to 4-digit years
21490         * build-aux/update-copyright: Implement and document.
21491         * tests/test-update-copyright.sh: Update.
21492
21493 2009-08-14  Jim Meyering  <meyering@redhat.com>
21494
21495         test-exclude: avoid coreutils "make check" failure
21496         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21497         just as in test-argmatch.c.
21498
21499 2009-08-13  Eric Blake  <ebb9@byu.net>
21500
21501         test-dup2: fix bad assumption
21502         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21503         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21504
21505         test-version-etc: fix CRLF portability issue
21506         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21507         recognize \r.
21508         * tests/test-argp-version-etc-1.sh: Likewise.
21509
21510         getopt: update client modules
21511         * modules/argp (Depends-on): Use getopt-gnu.
21512         * modules/git-merge-changelog (Depends-on): Likewise.
21513         * modules/long-options (Depends-on): Likewise.
21514         * modules/xstrtol (Depends-on): Likewise.
21515
21516 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21517
21518         * tests/test-version-etc.sh: Don't fail on different
21519         project/version.  Don't fail on CRLF differences.  Rewrite to use
21520         multiple -e instead of multiple sed forks, suggested by Eric Blake
21521         <ebb9@byu.net>.
21522         * tests/test-argp-version-etc-1.sh: Likewise.
21523
21524 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21525
21526         * tests/test-version-etc.sh: Don't fail on different
21527         project/version.
21528
21529 2009-08-12  Bruno Haible  <bruno@clisp.org>
21530
21531         Tests for modules 'getopt-posix', 'getopt-gnu'.
21532         * modules/getopt-posix-tests: New file.
21533         * tests/test-getopt.c: New file.
21534         * tests/test-getopt.h: New file.
21535         * tests/test-getopt_long.h: New file.
21536
21537         New modules 'getopt-posix', 'getopt-gnu'.
21538         * modules/getopt-gnu: New file, renamed from modules/getopt.
21539         * modules/getopt-posix: New file.
21540         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21541         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21542         (gl_GETOPT): Remove macro.
21543         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21544         Disable the test against BSD systems that declare optreset. Test
21545         against mingw bug. Test against lack of support of optional arguments
21546         on many platforms.
21547         * doc/glibc-headers/getopt.texi: Update module name and list of
21548         relevant platforms.
21549         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21550         'getopt-gnu' and more portability problems.
21551         * NEWS: Mention the changes.
21552
21553 2009-08-12  Bruno Haible  <bruno@clisp.org>
21554
21555         Ensure that optarg etc. get declared by <unistd.h>.
21556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21557         AC_USE_SYSTEM_EXTENSIONS.
21558         * modules/getopt (Depends-on): Add 'extensions'.
21559
21560 2009-08-12  Bruno Haible  <bruno@clisp.org>
21561
21562         Avoid test link errors.
21563         * modules/pipe-filter-ii-tests (Makefile.am): Define
21564         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21565         * modules/pipe-filter-gi-tests (Makefile.am): Define
21566         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21568
21569 2009-08-12  Bruno Haible  <bruno@clisp.org>
21570
21571         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21572         gl_GETOPT_SUBSTITUTE before.
21573         (gl_GETOPT): Use it.
21574         * m4/argp.m4 (gl_ARGP): Update.
21575         Reported by Sergey Poznyakoff.
21576
21577         * m4/getopt.m4: Reorder macros.
21578         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21579         (gl_GETOPT_SUBSTITUTE): Remove macro.
21580
21581 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21582
21583         Minor improvement in gitlog-to-changelog
21584
21585         * build-aux/gitlog-to-changelog: New option `--format' makes
21586         output format string configurable.
21587
21588 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21589
21590         Optimize exclude: use hash tables for non-wildcard patterns.
21591
21592         * lib/exclude.c: Include hash.h and mbuiter.h
21593         (struct exclude_pattern, exclude_segment): New data types.
21594         (struct exclude): Rewrite.
21595         (fnmatch_pattern_has_wildcards): New function.
21596         (new_exclude_segment, free_exclude_segment): New functions.
21597         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21598         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21599         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21600         * modules/exclude: Depend on hash and mbuiter.
21601
21602         * modules/exclude-tests: New file.
21603         * tests/test-exclude.c: New file.
21604         * tests/test-exclude1.sh: New file.
21605         * tests/test-exclude2.sh: New file.
21606         * tests/test-exclude3.sh: New file.
21607         * tests/test-exclude4.sh: New file.
21608         * tests/test-exclude5.sh: New file.
21609         * tests/test-exclude6.sh: New file.
21610         * tests/test-exclude7.sh: New file.
21611
21612 2009-08-12  Bruno Haible  <bruno@clisp.org>
21613
21614         Ensure that getopt() gets declared by <unistd.h>.
21615         * lib/unistd.in.h: Conditionally include getopt.h.
21616         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21617         Set GNULIB_UNISTD_H_GETOPT.
21618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21619         GNULIB_UNISTD_H_GETOPT.
21620         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21621
21622 2009-08-12  Bruno Haible  <bruno@clisp.org>
21623
21624         Clarify logic.
21625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21626         gl_replace_getopt instead of GETOPT_H.
21627
21628 2009-08-12  Bruno Haible  <bruno@clisp.org>
21629
21630         * m4/getopt.m4: Add comments.
21631
21632 2009-08-12  Bruno Haible  <bruno@clisp.org>
21633
21634         Disable multithread support by default on Cygwin 1.5.x.
21635         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21636         set gl_use_threads=no if not specified otherwise.
21637
21638 2009-08-11  Bruno Haible  <bruno@clisp.org>
21639
21640         Avoid compilation error on NetBSD 5.0.
21641         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21642         * tests/test-stdio.c: Likewise.
21643         * tests/test-stdlib.c: Likewise.
21644         * tests/test-string.c: Likewise.
21645         * tests/test-unistd.c: Likewise.
21646         Reported by Greg Troxel <gdt@ir.bbn.com>
21647         at <https://savannah.gnu.org/support/?106973>.
21648
21649 2009-08-11  Bruno Haible  <bruno@clisp.org>
21650
21651         * modules/dup2-tests (Depends-on): Remove close.
21652
21653         Undo 2009-07-19 commit.
21654         * modules/acl-tests (Depends-on): Remove close.
21655         * modules/binary-io-tests (Depends-on): Likewise.
21656         * modules/closein-tests (Depends-on): Likewise.
21657         * modules/flock-tests (Depends-on): Likewise.
21658         * modules/fsync-tests (Depends-on): Likewise.
21659         * modules/lseek-tests (Depends-on): Likewise.
21660         * modules/pipe-tests (Depends-on): Likewise.
21661         * modules/posix_spawn-tests (Depends-on): Likewise.
21662         * modules/posix_spawnp-tests (Depends-on): Likewise.
21663         * modules/stat-time-tests (Depends-on): Likewise.
21664         * modules/yesno-tests (Depends-on): Likewise.
21665
21666 2009-08-10  Bruno Haible  <bruno@clisp.org>
21667
21668         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21669
21670 2009-08-10  Bruno Haible  <bruno@clisp.org>
21671
21672         Fix a gcc warning.
21673         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21674
21675 2009-08-10  Bruno Haible  <bruno@clisp.org>
21676
21677         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21678         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21679         not only the first time.
21680         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21681         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21682         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21683         is 1, not only the the first time.
21684
21685 2009-08-10  Bruno Haible  <bruno@clisp.org>
21686
21687         Make it possible to use module 'gethostname' without module 'close'.
21688         * lib/unistd.in.h (close): Evoke a link error only if
21689         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21691         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21692         * modules/unistd (Makefile.am): Substitute
21693         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21694         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21695         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21697         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21698         * modules/sys_ioctl (Makefile.am): Substitute
21699         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21700         * modules/socket (configure.ac): On native Windows, set
21701         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21702         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21703         Reported by Sam Steingold <sds@gnu.org>.
21704
21705 2009-08-10  Bruno Haible  <bruno@clisp.org>
21706
21707         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21708         * modules/ioctl (configure.ac): Likewise.
21709
21710 2009-08-10  Bruno Haible  <bruno@clisp.org>
21711
21712         Avoid collision between gnulib wrapper and libintl wrapper.
21713         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21714         already defined in intl/printf.c.
21715         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21716         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21717
21718 2009-08-09  Bruno Haible  <bruno@clisp.org>
21719
21720         Make <sys/select.h> really self-contained, also on Solaris 10.
21721         * lib/sys_select.in.h: Include <string.h>.
21722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21723         Solaris 10 problem.
21724         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21725         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21726         Reported by Jim Meyering.
21727
21728 2009-08-09  Bruno Haible  <bruno@clisp.org>
21729
21730         Avoid warnings from 'aclocal' that are due to a use of macro name
21731         AM_XGETTEXT_OPTION that is not defined in automake.
21732         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21733         automake.
21734         * modules/error (configure.ac): Likewise.
21735         * modules/propername (configure.ac): Likewise.
21736         * modules/vasprintf (configure.ac): Likewise.
21737         * modules/verror (configure.ac): Likewise.
21738         * modules/xprintf (configure.ac): Likewise.
21739         * modules/xvasprintf (configure.ac): Likewise.
21740
21741 2009-08-08  Bruno Haible  <bruno@clisp.org>
21742
21743         Avoid compilation error in C++ mode.
21744         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21745         Reported by Sam Steingold <sds@gnu.org>.
21746
21747 2009-08-08  Bruno Haible  <bruno@clisp.org>
21748
21749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21750         for the various Unix platforms.
21751         * doc/posix-headers/limits.texi: Update platforms list regarding
21752         HOST_NAME_MAX.
21753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21754
21755 2009-08-07  Jim Meyering  <meyering@redhat.com>
21756
21757         selinux-at: fix typo in a comment
21758         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21759         Spotted by Paolo Bonzini.
21760
21761         selinux-at: remove redundant m4 code, add documentation
21762         * modules/selinux-at (configure.ac): Remove redundant code.
21763         LIB_SELINUX is already set via the dependent module, selinux-h.
21764         (Include): Add quotes around selinux-at.h.
21765         * lib/selinux-at.h: Add documentation.
21766         Reported by Bruno Haible in
21767         http://marc.info/?l=gnulib-bug&m=124958988300749
21768
21769 2009-08-07  Bruno Haible  <bruno@clisp.org>
21770
21771         Avoid link error on MacOS X 10.3 and 10.4.
21772         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21773         on non-ELF systems.
21774         * lib/argp-pv.c (argp_program_version): Likewise.
21775         Reported by Simon Josefsson.
21776
21777 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21778
21779         * tests/test-version-etc.sh: Use $EXEEXT.
21780
21781 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21782
21783         update-copyright: update documentation to point to maint.mk
21784         * build-aux/update-copyright: Here.
21785
21786 2009-08-06  Jim Meyering  <meyering@redhat.com>
21787
21788         maint.mk: support update-copyright-local
21789         * top/maint.mk (update-copyright-local): Define place-holder.
21790         (update-copyright): Depend on $(update-copyright-local).
21791
21792 2009-08-06  Jim Meyering  <meyering@redhat.com>
21793
21794         selinux-at: new module
21795         Initially written for coreutils, this module will soon be
21796         used by findutils, too.
21797         * MODULES.html.sh [Misc]: Add selinux-at.
21798         * lib/selinux-at.h: New file, from coreutils.
21799         * lib/selinux-at.c: Likewise.
21800         * modules/selinux-at: Likewise.
21801         (License): Change from LGPL to GPL, since it depends
21802         on the GPL'd openat module.
21803
21804         doc: update README
21805         * README: Remove references to cogito.
21806         Remove cvs-repo-updating instructions from 2007.
21807         Don't imply that CVS is better if you have limited disk space.
21808
21809 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21810
21811         update-copyright: support C-style comments
21812         * build-aux/update-copyright: Implement and document.
21813         * tests/test-update-copyright.sh: Test.
21814
21815 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21816
21817         update-copyright: support omitted "(C)"
21818         * build-aux/update-copyright: Implement and document.  Also,
21819         allow variable whitespace before "(C)".
21820         * tests/test-update-copyright.sh: Test.
21821
21822 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21823
21824         update-copyright: don't trip on non-FSF copyright statements
21825         * build-aux/update-copyright: Fix so that the first correctly
21826         formatted FSF copyright statement is recognized no matter what
21827         appears before it.  Update documentation.
21828         * tests/test-update-copyright.sh: Test that.
21829
21830 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21831
21832         update-copyright: clean up code a little
21833         * build-aux/update-copyright: Append "_re" to the name of any
21834         variable holding a regular expression.
21835         Replace "old" and "new" with "stmt" in variable names.
21836         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21837         handled correctly.
21838         Format code more consistently.
21839
21840 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21841
21842         update-copyright-tests: improve portability
21843         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21844         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21845
21846 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21847
21848         update-copyright: support @copyright{} and &copy;
21849         * build-aux/update-copyright: Implement and document.
21850         * tests/test-update-copyright.sh: Test.
21851
21852 2009-08-04  Jim Meyering  <meyering@redhat.com>
21853
21854         update-copyright-tests: correctly test EOL=\r\n handling
21855         * tests/test-update-copyright.sh: Put \r at the end of some lines
21856         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21857
21858         maint.mk: make update-copyright exclusion list more configurable
21859         * top/maint.mk (update-copyright): Default to excluding COPYING,
21860         but allow an override, in case someone does want to update that file.
21861
21862         maint.mk: don't update copyright date in COPYING
21863         * top/maint.mk (update-copyright): Exclude COPYING.
21864
21865         maint.mk: add a copyright-updating rule
21866         * top/maint.mk (update-copyright): New rule.
21867         Derived from coreutils/Makefile.am.
21868
21869         update-copyright: rename some variables
21870         * build-aux/update-copyright: Rename a few variables for clarity.
21871         Tweak syntax.  List Joel E. Denny as coauthor.
21872
21873 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21874
21875         update-copyright: fix bug for 2-digit last year and add tests
21876         * build-aux/update-copyright: Fix bug.
21877         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21878         specified.
21879         * modules/update-copyright-tests: New
21880         * tests/test-update-copyright.sh: New.
21881
21882 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21883
21884         update-copyright: handle leading tabs in line prefix
21885         * build-aux/update-copyright: Count leading tabs as 8 spaces
21886         when computing margin.  This helps with the formatting of
21887         ChangeLogs, for example.
21888         Fix documentation a little.
21889
21890 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21891
21892         update-copyright: support EOL=\r\n
21893         * build-aux/update-copyright: Implement that.
21894
21895 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21896
21897         update-copyright: automatically format copyright statements
21898         * build-aux/update-copyright: Implement that.
21899         Also, be a little more predictable and safer by always failing
21900         when the full copyright format is not perfectly recognized as an
21901         unbroken whole.  Discussed at
21902         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21903         Rewrite documentation.
21904
21905 2009-08-03  Bruno Haible  <bruno@clisp.org>
21906
21907         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21908
21909 2009-08-02  Bruno Haible  <bruno@clisp.org>
21910
21911         Tests for module 'uname'.
21912         * modules/uname-tests: New file.
21913         * tests/test-uname.c: New file.
21914
21915         New module 'uname'.
21916         * lib/uname.c: New file.
21917         * m4/uname.m4: New file.
21918         * modules/uname: New file.
21919         * doc/posix-functions/uname.texi: Mention the new module.
21920
21921 2009-08-02  Bruno Haible  <bruno@clisp.org>
21922
21923         Tests for module 'sys_utsname'.
21924         * modules/sys_utsname-tests: New file.
21925         * tests/test-sys_utsname.c: New file.
21926
21927         New module 'sys_utsname'.
21928         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21929         * m4/sys_utsname_h.m4: New file.
21930         * modules/sys_utsname: New file.
21931         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21932
21933 2009-08-02  Bruno Haible  <bruno@clisp.org>
21934
21935         Implicitly initialize the sockets library.
21936         * lib/gethostname.c: Include sockets.h.
21937         (rpl_gethostname): Invoke gl_sockets_startup.
21938         * lib/socket.c: Include sockets.h.
21939         (rpl_socket): Invoke gl_sockets_startup.
21940         * modules/gethostname (Depends-on): Add sockets.
21941         * modules/socket (Depends-on): Likewise.
21942         * tests/test-poll.c: Don't include sockets.h.
21943         (main): Don't invoke gl_sockets_startup.
21944         * tests/test-select.c: Don't include sockets.h.
21945         (main): Don't invoke gl_sockets_startup.
21946
21947 2009-08-02  Bruno Haible  <bruno@clisp.org>
21948
21949         Allow multiple calls to gl_sockets_startup.
21950         * lib/sockets.c (initialized_sockets_version): New variable.
21951         (gl_sockets_startup): Do nothing if already called for this or a higher
21952         version.
21953         (gl_sockets_cleanup): Reset initialized_sockets_version.
21954
21955 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21956
21957         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21958         different project/version.
21959
21960 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21961             Bruno Haible  <bruno@clisp.org>
21962
21963         Tests for module 'pipe-filter-gi'.
21964         * modules/pipe-filter-gi-tests: New file.
21965         * tests/test-pipe-filter-gi1.sh: New file.
21966         * tests/test-pipe-filter-gi1.c: New file.
21967         * tests/test-pipe-filter-gi2.sh: New file.
21968         * tests/test-pipe-filter-gi2-main.c: New file.
21969         * tests/test-pipe-filter-gi2-child.c: New file.
21970
21971         New module 'pipe-filter-gi'.
21972         * lib/pipe-filter-gi.c: New file.
21973         * modules/pipe-filter-gi: New file.
21974
21975 2009-08-02  Bruno Haible  <bruno@clisp.org>
21976             Paolo Bonzini  <bonzini@gnu.org>
21977
21978         Tests for module 'pipe-filter-ii'.
21979         * modules/pipe-filter-ii-tests: New file.
21980         * tests/test-pipe-filter-ii1.sh: New file.
21981         * tests/test-pipe-filter-ii1.c: New file.
21982         * tests/test-pipe-filter-ii2.sh: New file.
21983         * tests/test-pipe-filter-ii2-main.c: New file.
21984         * tests/test-pipe-filter-ii2-child.c: New file.
21985
21986         New module 'pipe-filter-ii'.
21987         * lib/pipe-filter.h: New file.
21988         * lib/pipe-filter-ii.c: New file.
21989         * lib/pipe-filter-aux.h: New file.
21990         * modules/pipe-filter-ii: New file.
21991
21992 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21993
21994         * lib/gc-libgcrypt.c: Change copyright to FSF.
21995         * lib/gc-gnulib.c: Likewise.
21996
21997 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21998
21999         * lib/gethostname.c: Include limits.h.
22000
22001 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22002             Bruno Haible  <bruno@clisp.org>
22003
22004         Ensure HOST_NAME_MAX as part of the gethostname module.
22005         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22006         define also HOST_NAME_MAX.
22007         * tests/test-gethostname.c: Include <limits.h>.
22008         (main): Check also HOST_NAME_MAX.
22009         * doc/posix-headers/limits.texi: Document the mingw problem.
22010
22011 2009-08-02  Bruno Haible  <bruno@clisp.org>
22012
22013         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22014         Add comments.
22015
22016 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22017
22018         * lib/gethostname.c: Add Windows wrapper.
22019         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22020         * modules/gethostname: Depend on sys_socket & errno, for also
22021         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22022         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22023
22024 2009-07-31  Jim Meyering  <meyering@redhat.com>
22025
22026         getloadavg: fix symbol name in comment
22027         * lib/getloadavg.c: Correct a typo I introduced when adding
22028         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22029         Matt Kraai spotted the problem.
22030
22031 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22032
22033         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22034         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22035         code also if ! defined N_NAME_POINTER.
22036         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22037         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22038         but the n_name member is a 12-byte array.
22039
22040 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22041
22042         update-copyright: generalize comment handling
22043         * build-aux/update-copyright: Handle copyright statements
22044         within more comment styles.
22045         Document usage.
22046         Report any file with an external copyright holder or parse failure.
22047
22048 2009-07-29  Jim Meyering  <meyering@redhat.com>
22049
22050         mktime: correct setting of REPLACE_MKTIME
22051         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22052
22053         update-copyright: new module
22054         * modules/update-copyright: New file.
22055         * build-aux/update-copyright: New file.
22056         * MODULES.html.sh (maint+release support): Add update-copyright.
22057
22058 2009-07-27  Bruno Haible  <bruno@clisp.org>
22059
22060         Fix compilation error when <ctime> is used and mktime is replaced.
22061         * lib/time.in.h (mktime): New declaration.
22062         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22063         REPLACE_MKTIME instead of defining mktime in config.h.
22064         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22065         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22066         Reported by Ross McFarland <rwmcfa1@neces.com>.
22067
22068 2009-07-27  Bruno Haible  <bruno@clisp.org>
22069
22070         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22071         Reported by Matt Kraai <mkraai@beckman.com>.
22072
22073 2009-07-25  Jim Meyering  <meyering@redhat.com>
22074
22075         maint.mk: avoid warnings about missing files
22076         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22077         diagnostic when .prev-version does not exist.
22078         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22079         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22080         nonexistent cfg.mk.
22081         Suggestions from Simon Josefsson.
22082
22083 2009-07-25  Bruno Haible  <bruno@clisp.org>
22084
22085         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22086         defined as macros. Needed on QNX 6.4.1.
22087         Reported by Matt Kraai <mkraai@beckman.com>.
22088
22089 2009-07-23  Jim Meyering  <meyering@redhat.com>
22090
22091         maint.mk: invoke "make dist" with a working value of XZ_OPT
22092         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22093
22094 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22095
22096         Make fseeko.c compile on QNX.
22097         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22098
22099 2009-07-22  Peter Simons  <simons@cryp.to>
22100
22101         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22102         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22103         * lib/md4.h: Likewise.
22104         * lib/md5.h: Likewise.
22105         * lib/sha1.h: Likewise.
22106         * lib/sha256.h: Likewise.
22107         * lib/sha512.h: Likewise.
22108
22109         tests-sha1: don't assign literal string to 'char *' variable
22110         * tests/test-sha1.c (main): Declare locals with "const" to match
22111         attributes of the right hand side.
22112
22113 2009-07-21  Eric Blake  <ebb9@byu.net>
22114
22115         dup2: fix more mingw problems
22116         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22117         fd to itself.
22118         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22119         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22120         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22121         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22122         care of mingw bugs.
22123
22124 2009-07-21  Jim Meyering  <meyering@redhat.com>
22125
22126         vc-list-files: avoid failure when /bin/sh is dash
22127         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22128         On some Debian based systems, /bin/sh is a symlink to dash, and running
22129         this command would omit the "/" following each 'tests' prefix:
22130           dash -x build-aux/vc-list-files -C . tests
22131         That is because bash and dash work differently:
22132           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22133           bash ok
22134           dash odd
22135
22136 2009-07-21  Eric Blake  <ebb9@byu.net>
22137
22138         dup2-tests: test previous patch
22139         * modules/dup2-tests: New file.
22140         * tests/test-dup2.c: Likewise.
22141         * tests/test-open.c (main): Avoid unspecified behavior.
22142         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22143         test.
22144
22145         dup2: work around mingw and cygwin 1.5 bug
22146         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22148         * modules/unistd (Makefile.am): Substitute it.
22149         * lib/unistd.in.h (dup2): Declare the replacement.
22150         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22151         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22152         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22153         * modules/execute (Depends-on): Add dup2.
22154         * modules/fseterr (Depends-on): Likewise.
22155         * modules/pipe (Depends-on): Likewise.
22156         * modules/posix_spawn-internal (Depends-on): Likewise.
22157
22158 2009-07-21  Bruno Haible  <bruno@clisp.org>
22159
22160         * modules/.gitattributes: New file.
22161
22162 2009-07-20  Bruno Haible  <bruno@clisp.org>
22163
22164         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22165         (main): Use it.
22166
22167 2009-07-20  Eric Blake  <ebb9@byu.net>
22168
22169         test-pipe: make a bit more robust.
22170         * tests/test-pipe.c (myerr): Allow error messages regardless of
22171         what we do to stderr.
22172         (test_pipe): Rearrange to avoid deadlock.
22173         (child_main): Try a larger read, to ensure we avoided deadlock.
22174         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22175         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22176         if misused.
22177
22178 2009-07-19  Jim Meyering  <meyering@redhat.com>
22179
22180         fts: avoid false-positive cycle-detection
22181         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22182         for each new command line argument.
22183
22184 2009-07-19  Bruno Haible  <bruno@clisp.org>
22185
22186         Fix build error on mingw with the modules sys_select and unistd.
22187         * modules/acl-tests (Depends-on): Add close.
22188         * modules/binary-io-tests (Depends-on): Likewise.
22189         * modules/closein-tests (Depends-on): Likewise.
22190         * modules/flock-tests (Depends-on): Likewise.
22191         * modules/fsync-tests (Depends-on): Likewise.
22192         * modules/lseek-tests (Depends-on): Likewise.
22193         * modules/pipe-tests (Depends-on): Likewise.
22194         * modules/posix_spawn-tests (Depends-on): Likewise.
22195         * modules/posix_spawnp-tests (Depends-on): Likewise.
22196         * modules/stat-time-tests (Depends-on): Likewise.
22197         * modules/yesno-tests (Depends-on): Likewise.
22198
22199 2009-07-19  Bruno Haible  <bruno@clisp.org>
22200
22201         Unify conditionals.
22202         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22203         macros, not at the compiler macros.
22204         * lib/pipe.c: Likewise.
22205         * lib/execute.c: Likewise.
22206         * lib/spawni.c: Likewise.
22207
22208 2009-07-19  Bruno Haible  <bruno@clisp.org>
22209
22210         Fix handling of closed stdin/stdout/stderr on mingw.
22211         * lib/w32spawn.h: Include unistd.h.
22212         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22213         file descriptor with O_NOINHERIT flag.
22214         (fd_safer_noinherit): New function, based on fd-safer.c.
22215         (dup_safer_noinherit): New function, based on dup-safer.c.
22216         (undup_safer_noinherit): New function.
22217         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22218         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22219         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22220         instead of fd_safer.
22221         * tests/test-pipe.c: Include <windows.h>.
22222         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22223
22224         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22225         from main.
22226         (test_pipe): Pass an extra argument for disambiguation.
22227         (main): Invoke parent_main or child_main.
22228
22229         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22230         consistently.
22231
22232 2009-07-18  Eric Blake  <ebb9@byu.net>
22233
22234         test-pipe: fix mingw build
22235         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22236
22237 2009-07-18  Bruno Haible  <bruno@clisp.org>
22238
22239         * modules/pipe-tests (Makefile.am): Fix typo.
22240
22241 2009-07-18  Eric Blake  <ebb9@byu.net>
22242
22243         error: fix mingw build
22244         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22245         Reported by Bruno Haible.
22246
22247         error: avoid undefined use of stdout
22248         * lib/error.c (error, error_at_line): Check that fd 1 is open
22249         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22250         is handling faults and the close_stdout module wants to report the
22251         detection of closed stdout as an error.
22252
22253 2009-07-17  Eric Blake  <ebb9@byu.net>
22254
22255         pipe: be robust in face of closed fds
22256         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22257         should cause child to misbehave.
22258         * modules/pipe-tests: New module.
22259         * tests/test-pipe.c: New file.
22260         * tests/test-pipe.sh: New file.
22261         Reported by Akim Demaille.
22262
22263 2009-07-14  Bruno Haible  <bruno@clisp.org>
22264
22265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22266         Reported by anonymous kc.
22267
22268 2009-07-07  Jim Meyering  <meyering@redhat.com>
22269
22270         maint.mk: don't look for translatable strings in *.m4 or *.mk
22271         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22272         when searching for translatable strings.
22273
22274 2009-07-05  Jim Meyering  <meyering@redhat.com>
22275
22276         remove superfluous parentheses in STREQ definition
22277         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22278         * lib/getugroups.c (STREQ): Likewise.
22279         * lib/fnmatch.c (STREQ): Likewise.
22280         Spotted by Bruno Haible.
22281
22282 2009-07-04  Jim Meyering  <meyering@redhat.com>
22283
22284         argv-iter: new module
22285         * MODULES.html.sh: Add argv-iter.
22286         * lib/argv-iter.c, lib/argv-iter.h: New files.
22287         * modules/argv-iter: New file.
22288         * modules/argv-iter-tests: New file.
22289         * tests/test-argv-iter.c: Test it.
22290
22291 2009-07-04  Bruno Haible  <bruno@clisp.org>
22292
22293         Fix assertion.
22294         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22295         contains more exact copies of a given entry than file2, leave the extra
22296         copies unpaired rather than aborting.
22297         Reported by Eric Blake.
22298
22299 2009-07-02  Bruno Haible  <bruno@clisp.org>
22300
22301         Speedup git-merge-changelog for git cherry-pick.
22302         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22303         (entries_mapping_get): New function, extracted from compute_mapping.
22304         (entries_mapping_reverse_get): New function.
22305         (compute_mapping): Add a 'full' argument. Return the result in a
22306         'struct entries_mapping'.
22307         (main): Update. Access the mappings through entries_mapping_get.
22308         Reported by Eric Blake.
22309
22310 2009-07-02  Bruno Haible  <bruno@clisp.org>
22311
22312         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22313         best_i.
22314
22315 2009-07-02  Bruno Haible  <bruno@clisp.org>
22316
22317         Speed up approximate search for matching ChangeLog entries.
22318         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22319         argument. Call fstrcmp_bounded instead of fstrcmp.
22320         (compute_mapping, try_split_merged_entry, main): Update callers.
22321
22322 2009-07-02  Bruno Haible  <bruno@clisp.org>
22323
22324         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22325
22326 2009-06-30  Bruno Haible  <bruno@clisp.org>
22327
22328         Reduce the number of uc_is_cased calls.
22329         * lib/unicase.h (casing_suffix_context_t): Add
22330         'first_char_except_ignorable' field.
22331         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22332         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22333         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22334         Update initializer.
22335         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22336         case-ignorable characters.
22337         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22338         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22339         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22340         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22341         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22342
22343 2009-06-30  Bruno Haible  <bruno@clisp.org>
22344
22345         Tests for module 'unicase/ignorable'.
22346         * modules/unicase/ignorable-tests: New file.
22347         * tests/unicase/test-ignorable.c: New file, generated by
22348         gen-uni-tables.
22349
22350         Tests for module 'unicase/cased'.
22351         * modules/unicase/cased-tests: New file.
22352         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22353         * tests/unicase/test-predicate-part1.h: New file, derived from
22354         tests/unictype/test-predicate-part1.h.
22355         * tests/unicase/test-predicate-part2.h: New file, same as
22356         tests/unictype/test-predicate-part2.h.
22357
22358         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22359         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22360         (output_casing_properties): New function.
22361         (main): Call it.
22362         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22363         * lib/unicase/cased.c: Include unictype/bitmap.h.
22364         (uc_is_cased): Define through a bitmap lookup.
22365         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22366         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22367         (uc_is_case_ignorable): Define through a bitmap lookup.
22368         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22369         lib/unictype/bitmap.h.
22370         (Depends-on): Add inline. Clean up.
22371         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22372         lib/unictype/bitmap.h.
22373         (Depends-on): Add inline. Clean up.
22374         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22375         recognition.
22376         * tests/unicase/test-u16-tolower.c (main): Likewise.
22377         * tests/unicase/test-u32-tolower.c (main): Likewise.
22378
22379 2009-06-30  Bruno Haible  <bruno@clisp.org>
22380
22381         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22382         * lib/unicase/u16-casemap.c: Likewise.
22383         * lib/unicase/u32-casemap.c: Likewise.
22384
22385 2009-06-29  Bruno Haible  <bruno@clisp.org>
22386
22387         Define u32_casefold as a wrapper around u32_ct_casefold.
22388         * lib/unicase/u32-casefold.c: Update.
22389         * modules/unicase/u32-casefold (Depends-on): Add
22390         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22391         unicase/empty-suffix-context. Clean up.
22392
22393         Define u16_casefold as a wrapper around u16_ct_casefold.
22394         * lib/unicase/u16-casefold.c: Update.
22395         * modules/unicase/u16-casefold (Depends-on): Add
22396         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22397         unicase/empty-suffix-context. Clean up.
22398
22399         Define u8_casefold as a wrapper around u8_ct_casefold.
22400         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22401         * lib/unicase/u8-casefold.c: Update.
22402         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22403         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22404
22405         Define u32_totitle as a wrapper around u32_ct_totitle.
22406         * lib/unicase/u32-totitle.c: Update.
22407         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22408         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22409
22410         Define u16_totitle as a wrapper around u16_ct_totitle.
22411         * lib/unicase/u16-totitle.c: Update.
22412         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22413         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22414
22415         Define u8_totitle as a wrapper around u8_ct_totitle.
22416         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22417         functions.
22418         (FUNC): Delegate to U_CT_TOTITLE.
22419         * lib/unicase/u8-totitle.c: Update.
22420         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22421         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22422
22423         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22424         invocation.
22425         * modules/unicase/u32-tolower (Depends-on): Add
22426         unicase/empty-prefix-context, unicase/empty-suffix-context.
22427
22428         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22429         invocation.
22430         * modules/unicase/u16-tolower (Depends-on): Add
22431         unicase/empty-prefix-context, unicase/empty-suffix-context.
22432
22433         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22434         * modules/unicase/u8-tolower (Depends-on): Add
22435         unicase/empty-prefix-context, unicase/empty-suffix-context.
22436
22437         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22438         invocation.
22439         * modules/unicase/u32-toupper (Depends-on): Add
22440         unicase/empty-prefix-context, unicase/empty-suffix-context.
22441
22442         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22443         invocation.
22444         * modules/unicase/u16-toupper (Depends-on): Add
22445         unicase/empty-prefix-context, unicase/empty-suffix-context.
22446
22447         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22448         * modules/unicase/u8-toupper (Depends-on): Add
22449         unicase/empty-prefix-context, unicase/empty-suffix-context.
22450
22451         New module 'unicase/u32-ct-casefold'.
22452         * lib/unicase/u32-ct-casefold.c: New file.
22453         * modules/unicase/u32-ct-casefold: New file.
22454
22455         New module 'unicase/u16-ct-casefold'.
22456         * lib/unicase/u16-ct-casefold.c: New file.
22457         * modules/unicase/u16-ct-casefold: New file.
22458
22459         New module 'unicase/u8-ct-casefold'.
22460         * lib/unicase/u8-ct-casefold.c: New file.
22461         * lib/unicase/u-ct-casefold.h: New file, derived from
22462         lib/unicase/u-casefold.h.
22463         * modules/unicase/u8-ct-casefold: New file.
22464
22465         New module 'unicase/u32-ct-totitle'.
22466         * lib/unicase/u32-ct-totitle.c: New file.
22467         * modules/unicase/u32-ct-totitle: New file.
22468
22469         New module 'unicase/u16-ct-totitle'.
22470         * lib/unicase/u16-ct-totitle.c: New file.
22471         * modules/unicase/u16-ct-totitle: New file.
22472
22473         New module 'unicase/u8-ct-totitle'.
22474         * lib/unicase/u8-ct-totitle.c: New file.
22475         * lib/unicase/u-ct-totitle.h: New file, derived from
22476         lib/unicase/u-totitle.h.
22477         * modules/unicase/u8-ct-totitle: New file.
22478
22479         New module 'unicase/u32-ct-tolower'.
22480         * lib/unicase/u32-ct-tolower.c: New file.
22481         * modules/unicase/u32-ct-tolower: New file.
22482
22483         New module 'unicase/u16-ct-tolower'.
22484         * lib/unicase/u16-ct-tolower.c: New file.
22485         * modules/unicase/u16-ct-tolower: New file.
22486
22487         New module 'unicase/u8-ct-tolower'.
22488         * lib/unicase/u8-ct-tolower.c: New file.
22489         * modules/unicase/u8-ct-tolower: New file.
22490
22491         New module 'unicase/u32-ct-toupper'.
22492         * lib/unicase/u32-ct-toupper.c: New file.
22493         * modules/unicase/u32-ct-toupper: New file.
22494
22495         New module 'unicase/u16-ct-toupper'.
22496         * lib/unicase/u16-ct-toupper.c: New file.
22497         * modules/unicase/u16-ct-toupper: New file.
22498
22499         New module 'unicase/u8-ct-toupper'.
22500         * lib/unicase/u8-ct-toupper.c: New file.
22501         * modules/unicase/u8-ct-toupper: New file.
22502
22503         Add context arguments to u*_casemap functions.
22504         * lib/unicase/unicasemap.h: Include unicase.h.
22505         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22506         suffix_context arguments.
22507         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22508         functions.
22509         (FUNC): Add prefix_context and suffix_context arguments. Use
22510         uc_is_cased and uc_is_case_ignorable.
22511         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22512         * lib/unicase/u16-casemap.c: Likewise.
22513         * lib/unicase/u32-casemap.c: Likewise.
22514         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22515         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22516         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22517         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22518         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22519         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22520
22521         New module 'unicase/u32-suffix-context'.
22522         * lib/unicase/u32-suffix-context.c: New file.
22523         * modules/unicase/u32-suffix-context: New file.
22524
22525         New module 'unicase/u16-suffix-context'.
22526         * lib/unicase/u16-suffix-context.c: New file.
22527         * modules/unicase/u16-suffix-context: New file.
22528
22529         New module 'unicase/u8-suffix-context'.
22530         * lib/unicase/u8-suffix-context.c: New file.
22531         * lib/unicase/u-suffix-context.h: New file.
22532         * modules/unicase/u8-suffix-context: New file.
22533
22534         New module 'unicase/empty-suffix-context'.
22535         * lib/unicase/empty-suffix-context.c: New file.
22536         * modules/unicase/empty-suffix-context: New file.
22537
22538         New module 'unicase/u32-prefix-context'.
22539         * lib/unicase/u32-prefix-context.c: New file.
22540         * modules/unicase/u32-prefix-context: New file.
22541
22542         New module 'unicase/u16-prefix-context'.
22543         * lib/unicase/u16-prefix-context.c: New file.
22544         * modules/unicase/u16-prefix-context: New file.
22545
22546         New module 'unicase/u8-prefix-context'.
22547         * lib/unicase/u8-prefix-context.c: New file.
22548         * lib/unicase/u-prefix-context.h: New file.
22549         * lib/unicase/context.h: New file.
22550         * modules/unicase/u8-prefix-context: New file.
22551
22552         New module 'unicase/empty-prefix-context'.
22553         * lib/unicase/empty-prefix-context.c: New file.
22554         * modules/unicase/empty-prefix-context: New file.
22555
22556         New module 'unicase/ignorable'.
22557         * lib/unicase/ignorable.c: New file.
22558         * modules/unicase/ignorable: New file.
22559
22560         New module 'unicase/cased'.
22561         * lib/unicase/caseprop.h: New file.
22562         * lib/unicase/cased.c: New file.
22563         * modules/unicase/cased: New file.
22564
22565         New functions for case mapping of substrings.
22566         * lib/unicase.h (casing_prefix_context_t): New type.
22567         (unicase_empty_prefix_context): New variable.
22568         (u8_casing_prefix_context, u16_casing_prefix_context,
22569         u32_casing_prefix_context, u8_casing_prefixes_context,
22570         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22571         declarations.
22572         (casing_suffix_context_t): New type.
22573         (unicase_empty_suffix_context): New variable.
22574         (u8_casing_suffix_context, u16_casing_suffix_context,
22575         u32_casing_suffix_context, u8_casing_suffixes_context,
22576         u16_casing_suffixes_context, u32_casing_suffixes_context,
22577         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22578         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22579         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22580         declarations.
22581
22582 2009-06-28  Jim Meyering  <meyering@redhat.com>
22583
22584         boostrap: indent only with spaces
22585         * build-aux/bootstrap: Indent only with spaces, never TABs.
22586
22587         bootstrap: split long lines
22588         * build-aux/bootstrap: Keep line length < 80.
22589
22590         bootstrap: sync from coreutils
22591         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22592         just as autoreconf does.  Verify a list of prerequisite
22593         package-name,version-number pairs if defined in bootstrap.conf.
22594         Refer to README-prereq, if prerequisites are not satisfied.
22595
22596 2009-06-27  Eric Blake  <ebb9@byu.net>
22597
22598         tests: add test for bogus NULL definition
22599         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22600         * tests/test-stdlib.c: Likewise.
22601         * tests/test-string.c: Likewise.
22602         * tests/test-locale.c: Likewise.
22603         * tests/test-unistd.c: Likewise.
22604         * modules/stdio-tests (Depends-on): Add verify.
22605         * modules/stdlib-tests (Depends-on): Likewise.
22606         * modules/string-tests (Depends-on): Likewise.
22607         * modules/locale-tests (Depends-on): Likewise.
22608         * modules/unistd-tests (Depends-on): Likewise.
22609
22610 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22611
22612         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22613         self-explaining comment.
22614         * m4/selinux-selinux-h: Update serial.
22615         (gl_LIBSELINUX): New macro, adding a warning for missing development
22616         packages to code extracted from...
22617         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22618         Add warning for missing development packages here, too.
22619
22620 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22621
22622         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22623
22624 2009-06-25  Eric Blake  <ebb9@byu.net>
22625
22626         version-etc: fix regression
22627         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22628         gcc.
22629         (version_etc): Use it, to catch bugs with trailing NULL.
22630         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22631         (version_etc_va): Fix logic bug.
22632         * modules/version-etc-tests: Add test.
22633         * tests/test-version-etc.c: New file.
22634         * tests/test-version-etc.sh: Likewise.
22635
22636 2009-06-25  Sam Steingold  <sds@gnu.org>
22637
22638         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22639         mbtowc declaration.
22640
22641 2009-06-25  Eric Blake  <ebb9@byu.net>
22642
22643         fpurge: migrate into <stdio.h>
22644         * lib/fpurge.h: Delete...
22645         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22646         * lib/fpurge.c (fpurge): Change declaring header.
22647         * modules/fpurge (Files): Drop deleted file.
22648         (Depends-on): Add stdio.
22649         (configure.ac): Set witness.
22650         * modules/stdio (Makefile.am): Support fpurge macros.
22651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22652         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22653         * lib/fflush.c: Update client.
22654         * tests/test-fpurge.c: Likewise.
22655         * NEWS: Mention the change.
22656
22657 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22658
22659         * lib/argp-version-etc.c (program_authors): Add const
22660         qualifier.
22661         * lib/version-etc.c: Fix typos in the comments.
22662         * modules/argp-version-etc: Depends on version-etc.
22663
22664 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22665
22666         argp-version-etc: new module.
22667
22668         * lib/argp-version-etc.c: New file.
22669         * lib/argp-version-etc.h: New file.
22670         * modules/argp-version-etc: New file.
22671         * modules/argp-version-etc-tests: New file.
22672         * tests/test-argp-version-etc.c: New test.
22673         * tests/test-argp-version-etc-1.sh: New test.
22674
22675 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22676
22677         Provide additional interfaces and documentation for version-etc
22678         module.
22679
22680         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22681         interfaces.
22682         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22683         prototypes.
22684
22685 2009-06-24  Bruno Haible  <bruno@clisp.org>
22686
22687         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22688         HAVE_LIB${NAME} macro.
22689         Reported by Sam Steingold <sds@gnu.org>.
22690
22691 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22692
22693         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22694         needed.
22695
22696 2009-06-21  Bruno Haible  <bruno@clisp.org>
22697
22698         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22699         work.
22700         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22701         together with LIB${NAME}, LTLIB${NAME}.
22702         Reported by Sam Steingold <sds@gnu.org>.
22703
22704 2009-06-20  Jim Meyering  <meyering@redhat.com>
22705
22706         tests: make sc_require_test_exit_idiom more generic
22707         * top/maint.mk (Exit_witness_file): New overridable variable.
22708         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22709         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22710
22711 2009-06-19  Jim Meyering  <meyering@redhat.com>
22712
22713         hash: reverse order of src/dst parameters in an internal interface
22714         * lib/hash.c (transfer_entries): Reverse order of parameters to
22715         put DST before SRC.  Adjust callers.
22716
22717         tests: test-hash: avoid wholesale duplication
22718         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22719         Instead, use a loop and add a single conditional.
22720
22721         tests: test-hash: allow seed selection via a command line argument
22722         * tests/test-hash.c (get_seed): New function.
22723         (main): Use it.
22724
22725 2009-06-19  Eric Blake  <ebb9@byu.net>
22726
22727         hash: avoid memory leak on allocation failure
22728         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22729         failure.  Factor repeated algorithm...
22730         (transfer_entries): ...into new helper routine.
22731         (hash_delete): React to hash_rehash return value.
22732
22733         hash: reduce memory pressure in hash_rehash no-op case
22734         * lib/hash.c (next_prime): Avoid overflow.
22735         (hash_initialize): Factor bucket size computation...
22736         (compute_bucket_size): ...into new helper function.
22737         (hash_rehash): Use new function and open coding to reduce memory
22738         pressure, and avoid a memory leak in USE_OBSTACK code.
22739         Reported by Jim Meyering.
22740
22741 2009-06-18  Eric Blake  <ebb9@byu.net>
22742
22743         hash: make rotation more obvious
22744         * modules/hash (Depends-on): Add bitrotate and stdint.
22745         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22746         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22747         (SIZE_MAX): Rely on headers for definition.
22748         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22749         (raw_hasher): Use rotr_sz.
22750         Suggested by Jim Meyering.
22751
22752         hash: fix memory leak in last patch
22753         * lib/hash.c (hash_rehash): Avoid memory leak.
22754
22755         hash: avoid no-op rehashing
22756         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22757
22758         hash: provide default callback functions
22759         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22760         (hash_initialize): Use them as defaults.
22761         * tests/test-hash.c (main): Test this.
22762
22763         hash: minor optimization
22764         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22765         when possible.
22766         (hash_initialize): Document this promise.
22767         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22768         * tests/test-hash.c (hash_compare_strings): Test this.
22769
22770 2009-06-18  Bruno Haible  <bruno@clisp.org>
22771
22772         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22773         going to be replaced anyway.
22774
22775 2009-06-18  Bruno Haible  <bruno@clisp.org>
22776
22777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22778         in one place.
22779         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22780         be replaced anyway.
22781
22782 2009-06-18  Eric Blake  <ebb9@byu.net>
22783
22784         hash: check for resize before insertion
22785         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22786         threshold before insertion, so that a pathological hash_rehash
22787         that fills every bucket can still trigger another rehash.
22788
22789 2009-06-18  Jim Meyering  <meyering@redhat.com>
22790
22791         hash-tests: add a loop around the small tests
22792         * tests/test-hash.c (main): Repeat small tests with selected
22793         small initial table sizes.
22794
22795 2009-06-17  Eric Blake  <ebb9@byu.net>
22796
22797         hash: minor cleanups
22798         * lib/hash.h (hash_entry): Make opaque, by moving...
22799         * lib/hash.c (hash_entry): ...here.
22800         (hash_insert): Clarify restrictions on what can be inserted.
22801         (hash_get_next): Clarify when it is safe to remove an element
22802         during traversal.
22803         (check_tuning): Skip verification when tuning is known safe.
22804         (hash_initialize): Clarify restrictions on tuning.
22805
22806 2009-06-17  Jim Meyering  <jim@meyering.net>
22807         and Eric Blake  <ebb9@byu.net>
22808
22809         hash-tests: new module
22810         * modules/hash-tests: New file.
22811         * tests/test-hash.c: New file.
22812
22813 2009-06-17  Eric Blake  <ebb9@byu.net>
22814
22815         strstr-simple: document new module
22816         * MODULES.html.sh: Document new module.
22817
22818         strstr, strcasestr: replace on platforms with broken memchr
22819         * modules/strstr: Split into...
22820         * modules/strstr-simple: ...new module that does not care about
22821         performance, but does care about glibc bug.
22822         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22823         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22824         if platform memchr is broken, per Debian bug 521737.
22825         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22826         memchr.
22827         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22828         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22829         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22830         * modules/mountlist (Depends-on): Add strstr-simple.
22831         * modules/gen-uni-tables (Depends-on): Likewise.
22832         * modules/argz (Depends-on): Add strstr.
22833
22834 2009-06-17  Bruno Haible  <bruno@clisp.org>
22835
22836         * modules/posix_spawn-internal (Depends-on): Add errno.
22837
22838 2009-06-17  Bruno Haible  <bruno@clisp.org>
22839
22840         Define missing ESTALE on Interix 3.5.
22841         * lib/errno.in.h (ESTALE): Assign a value if missing.
22842         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22844         missing.
22845         * doc/posix-headers/errno.texi: Mention the Interix bug.
22846         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22847
22848 2009-06-15  Eric Blake  <ebb9@byu.net>
22849
22850         memchr, memchr2: add valgrind exception
22851         * lib/memchr.valgrind: New file.
22852         * lib/memchr2.valgrind: New file.
22853         * modules/memchr (Files): Distribute valgrind file.
22854         * modules/memchr2 (Files): Likewise.
22855
22856         docs: memchr is no longer obsolete
22857         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22858         * lib/string.in.h (memchr): Simplify logic.
22859
22860 2009-06-14  Jim Meyering  <meyering@redhat.com>
22861
22862         link-follow: fix the "checking..." message to not mention trailing slash
22863         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22864         never considered trailing slashes.
22865
22866 2009-06-14  Bruno Haible  <bruno@clisp.org>
22867
22868         * m4/memchr.m4: Mention also the bug on IA-64.
22869         * doc/posix-functions/memchr.texi: Likewise.
22870
22871 2009-06-12  Eric Blake  <ebb9@byu.net>
22872
22873         memchr: detect broken x86_64 and alpha implementations
22874         * modules/memchr-tests (Depends-on): Move mmap detection...
22875         * modules/memchr (Depends-on): ...here.
22876         (configure.ac): Set indicator.
22877         * lib/string.in.h (memchr): Declare replacement.
22878         * modules/string (Makefile.am): Trigger replacement.
22879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22880         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22881         bugs.
22882         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22883         * modules/getpagesize (License): Relax license.
22884
22885 2009-06-11  Bruno Haible  <bruno@clisp.org>
22886
22887         * lib/idpriv.h: Add more references.
22888
22889 2009-06-08  Bruno Haible  <bruno@clisp.org>
22890
22891         Tests for module 'idpriv-droptemp'.
22892         * modules/idpriv-droptemp-tests: New file.
22893         * tests/test-idpriv-droptemp.sh: New file.
22894         * tests/test-idpriv-droptemp.su.sh: New file.
22895         * tests/test-idpriv-droptemp.c: New file.
22896
22897         New module 'idpriv-droptemp'.
22898         * lib/idpriv-droptemp.c: New file.
22899         * modules/idpriv-droptemp: New file.
22900
22901 2009-06-08  Bruno Haible  <bruno@clisp.org>
22902
22903         Tests for module 'idpriv-drop'.
22904         * modules/idpriv-drop-tests: New file.
22905         * tests/test-idpriv-drop.sh: New file.
22906         * tests/test-idpriv-drop.su.sh: New file.
22907         * tests/test-idpriv-drop.c: New file.
22908
22909         New module 'idpriv-drop'.
22910         * lib/idpriv.h: New file.
22911         * lib-idpriv-drop.c: New file.
22912         * m4/idpriv.m4: New file.
22913         * modules/idpriv-drop: New file.
22914
22915 2009-06-08  Bruno Haible  <bruno@clisp.org>
22916
22917         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22918         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22919         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22920         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22921         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22922         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22924
22925 2009-06-08  Eric Blake  <ebb9@byu.net>
22926
22927         test-strstr: use memory fence, when possible
22928         * tests/test-strstr.c (main): Use memory fence, in order to be
22929         more likely to trigger Debian bug 521737.
22930         * modules/strstr-tests (Files): Pull in additional files.
22931
22932         memchr: no longer obsolete, for wider field testing
22933         * modules/memchr (Status, Notice): Delete, this module is no
22934         longer obsolete.
22935         * modules/vasnprintf (Depends-on): Add memchr.
22936
22937 2009-06-07  Jim Meyering  <meyering@redhat.com>
22938
22939         hash: declare some functions with the warn_unused_result attribute
22940         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22941
22942 2009-06-07  Bruno Haible  <bruno@clisp.org>
22943
22944         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22945         Reported by Eric Blake.
22946
22947 2009-06-06  Eric Blake  <ebb9@byu.net>
22948
22949         test-alignof: fix typo with long double
22950         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22951         compiler error.
22952
22953 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22954
22955         Escape non-texinfo { and }s.
22956         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22957         markup error.
22958
22959 2009-06-04  Jim Meyering  <meyering@redhat.com>
22960
22961         gitlog-to-changelog: don't infloop on an empty commit log
22962         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22963         Reported by Boris Petersen <transacid@centerim.org>.
22964
22965 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22966
22967         version-etc: extend for packagers
22968         Add three new configure options, intended for packagers:
22969           --with-packager="packager name"
22970           --with-packager-version="packager-specific version"
22971           --with-packager-bug-reports="packager bug reporting"
22972         An example with coreutils:
22973           $ ./configure \
22974             --with-packager=Gentoo \
22975             --with-packager-bug-report=http://bugs.gentoo.org/ \
22976             --with-packager-version="patchset 1.6"
22977           $ ./src/ls --version | head -n2
22978           ls (GNU coreutils) 7.1-dirty
22979           Packaged by Gentoo (patchset 1.6)
22980         Note that the bug reporting info via --help doesn't show up because
22981         coreutils uses its own custom emit_bug_reporting_address() implementation
22982         in src/system.h.  If it didn't, it'd look like:
22983           $ ./src/ls --help | tail -n4
22984           Report bugs to <bug-coreutils@gnu.org>.
22985           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22986           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22987           General help using GNU software: <http://www.gnu.org/gethelp/>.
22988         * lib/version-etc.c: Print new information, if provided.
22989         * m4/version-etc.m4: New file.
22990         * modules/version-etc (Files): Add m4/version-etc.m4.
22991         (configure.ac): Add gl_VERSION_ETC.
22992
22993 2009-05-31  Bruno Haible  <bruno@clisp.org>
22994
22995         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22996         and 'int64_t'.
22997         * modules/alignof-tests (Dependencies): Add stdint.
22998         Reported by Eric Blake.
22999
23000 2009-05-31  Bruno Haible  <bruno@clisp.org>
23001
23002         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23003         restriction due to compiler bugs.
23004         Reported by Eric Blake.
23005
23006 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23007             Bruno Haible  <bruno@clisp.org>
23008
23009         Fix test-alignof failure.
23010         * lib/alignof.h (alignof_slot): New macro.
23011         (alignof_type): New macro, with the same semantics as the previous
23012         'alignof'.
23013         (alignof): Alias to alignof_slot.
23014         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23015         check that the results are usable as constant expressions.
23016
23017 2009-05-31  Bruno Haible  <bruno@clisp.org>
23018
23019         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23020         * tests/test-memchr.c (main): Check that memchr does not read past the
23021         first occurrence of the byte.
23022         * tests/test-strstr.c (main): Update comment.
23023         Suggested by Eric Blake.
23024
23025 2009-05-30  Bruno Haible  <bruno@clisp.org>
23026
23027         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23028         detail how to use dumpbin.
23029         Reported by David Byron <dbyron@dbyron.com>.
23030
23031 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23032
23033         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23034
23035 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23036
23037         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23038
23039 2009-05-28  Bruno Haible  <bruno@clisp.org>
23040
23041         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23042         build-aux/ files.
23043
23044 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23045
23046         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23047
23048 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23049
23050         * gnulib-tool (sed_transform_main_lib_file)
23051         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23052         regexps.
23053
23054 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23055
23056         * tests/test-strstr.c: Add another self-test.
23057         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23058         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23059
23060 2009-05-23  Bruno Haible  <bruno@clisp.org>
23061
23062         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23063         change.
23064
23065 2009-05-21  Bruno Haible  <bruno@clisp.org>
23066
23067         Simplify use of mode_t varargs.
23068         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23069         uses 'mode_t' or 'int'.
23070         * lib/openat.c (openat): Likewise.
23071         * lib/open-safer.c (open_safer): Likewise.
23072         * m4/mode_t.m4: New file.
23073         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23074         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23075         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23076         * modules/open (Files): Add m4/mode_t.m4.
23077         * modules/openat (Files): Likewise.
23078         * modules/fcntl-safer (Files): Likewise.
23079         Suggested by Eric Blake.
23080
23081 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23082
23083         * doc/glibc-functions/fallocate.texi: New file.
23084         * doc/gnulib.texi: Include it.
23085
23086 2009-05-21  Eric Blake  <ebb9@byu.net>
23087             Bruno Haible  <bruno@clisp.org>
23088
23089         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23090         invocations.
23091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23092
23093 2009-05-21  Eric Blake  <ebb9@byu.net>
23094             Bruno Haible  <bruno@clisp.org>
23095
23096         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23097         include_next. Fix of 2008-11-20 commit.
23098         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23099         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23100         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23101         NEXT_MATH_H.
23102         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23103         instead of NEXT_MATH_H.
23104
23105 2009-05-21  Bruno Haible  <bruno@clisp.org>
23106
23107         Avoid redefinition warnings for SIZE_MAX.
23108         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23109         Reported by Simon Josefsson.
23110
23111 2009-05-21  Bruno Haible  <bruno@clisp.org>
23112
23113         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23114         AC_CACHE_VAL.
23115
23116 2009-05-20  Bruno Haible  <bruno@clisp.org>
23117
23118         Make zeroptr.h work on mingw.
23119         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23120         mprotect.
23121         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23122         * modules/memchr2-tests (configure.ac): Likewise.
23123         * modules/memcmp-tests (configure.ac): Likewise.
23124         * modules/memmem-tests (configure.ac): Likewise.
23125         * modules/memrchr-tests (configure.ac): Likewise.
23126         Reported by Simon Josefsson.
23127
23128 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23129
23130         * tests/test-glob.c: Include string.h for strcmp prototype.
23131
23132 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23133
23134         * modules/getdelim (Depends-on): Add explicit stdint, although it
23135         was implicitly already pulled in via realloc-posix.
23136         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23137
23138 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23139
23140         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23141         G. Christensen" <tgc@jupiterrise.com>.
23142         * m4/sys_socket_h.m4: Check for sa_family_t.
23143         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23144         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23145         * tests/test-sys_socket.c: Check that sa_family_t works.
23146
23147 2009-05-18  Eric Blake  <ebb9@byu.net>
23148
23149         maint.mk: allow gnulib_dir in VPATH build
23150         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23151
23152 2009-05-15  Jim Meyering  <meyering@redhat.com>
23153
23154         maint.mk: Give gnulib_dir a default definition.
23155         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23156         Thus, most packages no longer need to specify this variable in cfg.mk
23157
23158 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23159
23160         rename.m4: fix typos that would make non-mingw cross-configure fail
23161         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23162
23163 2009-05-13  Eric Blake  <ebb9@byu.net>
23164
23165         mmap-anon: avoid out-of-order autoconf expansion
23166         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23167         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23168         * modules/memchr-tests (Depends-on): Add extensions.
23169         * modules/memchr2-tests (Depends-on): Add extensions.
23170         * modules/memcmp-tests (Depends-on): Add extensions.
23171         * modules/memmem-tests (Depends-on): Add extensions.
23172         * modules/memrchr-tests (Depends-on): Add extensions.
23173
23174 2009-05-13  Bruno Haible  <bruno@clisp.org>
23175
23176         Make some tests ISO C 99 compliant.
23177         * tests/zerosize-ptr.h: New file.
23178         * tests/test-memchr.c: Include zerosize-ptr.h.
23179         (main): Use a zero-size object pointer instead of NULL.
23180         * tests/test-memchr2.c: Include zerosize-ptr.h.
23181         (main): Use a zero-size object pointer instead of NULL.
23182         * tests/test-memcmp.c: Include zerosize-ptr.h.
23183         (main): Use a zero-size object pointer instead of NULL.
23184         * tests/test-memmem.c: Include zerosize-ptr.h.
23185         (main): Use a zero-size object pointer instead of NULL.
23186         * tests/test-memrchr.c: Include zerosize-ptr.h.
23187         (main): Use a zero-size object pointer instead of NULL.
23188         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23189         m4/mmap-anon.m4.
23190         (Depends-on): Add getpagesize.
23191         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23192         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23193         m4/mmap-anon.m4.
23194         (Depends-on): Add getpagesize.
23195         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23196         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23197         m4/mmap-anon.m4.
23198         (Depends-on): Add getpagesize.
23199         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23200         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23201         m4/mmap-anon.m4.
23202         (Depends-on): Add getpagesize.
23203         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23204         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23205         m4/mmap-anon.m4.
23206         (Depends-on): Add getpagesize.
23207         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23208
23209 2009-05-12  Bruno Haible  <bruno@clisp.org>
23210
23211         Tests for module 'alignof'.
23212         * modules/alignof-tests: New file.
23213         * tests/test-alignof.c: New file.
23214
23215 2009-05-12  Bruno Haible  <bruno@clisp.org>
23216
23217         Fix alignof macro.
23218         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23219         vendor compilers that are always correct.
23220
23221 2009-05-12  Bruno Haible  <bruno@clisp.org>
23222
23223         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23224         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23225         not whether its fully works.
23226
23227 2009-05-12  Bruno Haible  <bruno@clisp.org>
23228
23229         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23230
23231 2009-05-12  Jim Meyering  <meyering@redhat.com>
23232
23233         * top/maint.mk: Adjust backslash alignment.
23234
23235 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23236
23237         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23238
23239 2009-05-11  Eric Blake  <ebb9@byu.net>
23240
23241         argp: avoid undefined behavior
23242         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23243         macros.
23244
23245 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23246
23247         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23248         user.name to prevent git commit from complaining.
23249
23250 2009-05-10  Bruno Haible  <bruno@clisp.org>
23251
23252         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23253         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23254         it rewrites every file name only once.
23255         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23256
23257 2009-05-08  Bruno Haible  <bruno@clisp.org>
23258
23259         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23260         instead of 'max'.
23261
23262 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23263
23264         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23265         sockaddr_storage test.
23266
23267 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23268
23269         * modules/sys_socket (Makefile.am): Substitute
23270         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23271         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23272         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23273         * tests/test-sys_socket.c: Check sockaddr_storage.
23274
23275 2009-05-08  Bruno Haible  <bruno@clisp.org>
23276
23277         New module 'alignof'.
23278         * lib/alignof.h: New file.
23279         * modules/alignof: New file.
23280
23281 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23282             Bruno Haible  <bruno@clisp.org>
23283
23284         Fix test-file-has-acl on FreeBSD.
23285         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23286         mask is implicitly added.
23287         * tests/test-file-has-acl.c: Include <signal.h>.
23288         (main): Terminate the test after 5 seconds.
23289         * modules/acl-tests (configure.ac): Check for alarm function.
23290
23291 2009-05-04  Bruno Haible  <bruno@clisp.org>
23292
23293         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23294         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23295         * modules/errno (configure.ac): Drop AC_REQUIRE.
23296         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23297         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23298
23299 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23300
23301         * modules/glob-tests: New module.
23302         * tests/test-glob.c: Add.
23303
23304 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23305
23306         * modules/fnmatch-tests: New module.
23307         * tests/test-fnmatch.c: Add.
23308
23309 2009-05-04  Eric Blake  <ebb9@byu.net>
23310
23311         maint: make the new no-submodule-changes rule VPATH-safe
23312         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23313
23314 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23315             Bruno Haible  <bruno@clisp.org>
23316
23317         acl: Fix infinite loop on FreeBSD.
23318         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23319         of return value from acl_get_entry.
23320         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23321         Likewise.
23322
23323 2009-05-03  Bruno Haible  <bruno@clisp.org>
23324
23325         * lib/acl-internal.h (acl_entries): Clarify return value.
23326         * lib/acl_entries.c (acl_entries): Likewise.
23327
23328 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23329
23330         Bug fix in acl module.
23331         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23332
23333 2009-05-03  Bruno Haible  <bruno@clisp.org>
23334
23335         Create gperf-generated file in the source dir, not in the build dir.
23336         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23337         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23338         * modules/unicase/locale-language (unicase/locale-languages.h):
23339         Likewise.
23340         * modules/unicase/special-casing (unicase/special-casing-table.h):
23341         Likewise.
23342         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23343         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23344         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23345         Reported by Ralf Wildenhues.
23346
23347 2009-05-03  Bruno Haible  <bruno@clisp.org>
23348
23349         * modules/fnmatch (Description, configure.ac): Taken from
23350         fnmatch-posix.
23351         * modules/fnmatch-posix: Turn into a symbolic reference to the
23352         'fnmatch' module, and deprecate.
23353         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23354
23355 2009-05-03  Bruno Haible  <bruno@clisp.org>
23356
23357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23358         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23359         Reported by Ralf Wildenhues.
23360
23361 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23362
23363         * m4/fnmatch.m4: Fix fnmatch re-define.
23364
23365 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23366
23367         priv-set: new module and tests; adapt write-any-file
23368         * lib/priv-set.c: New file.
23369         * lib/priv-set.h: New file.
23370         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23371         * lib/write-any-file.c: Simplify by using priv-set module.
23372         * m4/priv-set.m4: New file.
23373         * modules/priv-set: New file.
23374         * modules/unlinkdir: Add dependency on priv-set module.
23375         * modules/write-any-file: Likewise.
23376
23377         Tests for module 'priv-set'.
23378         * modules/priv-set-tests: New file.
23379         * tests/test-priv-set.c: New file.
23380
23381 2009-05-03  Jim Meyering  <meyering@redhat.com>
23382             Bruno Haible  <bruno@clisp.org>
23383
23384         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23385         use the converted UTF-8 variant of the name instead.
23386
23387 2009-05-03  Jim Meyering  <meyering@redhat.com>
23388
23389         tests: tighten some getdate tests
23390         * tests/test-getdate.c (main): Tighten tests: require equality,
23391         not just greater than.  Set TZ envvar to UTC0.
23392
23393 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23394
23395         getdate: correctly interpret "next monday" when run on a Monday
23396         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23397         that e.g., "next tues" (when run on a tuesday) results in a date
23398         that is one week in the future, and not today's date.
23399         I.e., add a week when the wday is the same as the current one.
23400         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23401         and earlier by Martin Bernreuther and Jan Minář.
23402         * tests/test-getdate.c (main): Check that "next DAY" is always in
23403         the future and that "last DAY" is always in the past.
23404
23405 2009-05-02  Jim Meyering  <meyering@redhat.com>
23406
23407         build: ensure that a release build fails when a submodule is unclean
23408         * top/maint.mk (no-submodule-changes): New rule.
23409         (alpha beta major): Depend on it.
23410
23411 2009-05-02  Bruno Haible  <bruno@clisp.org>
23412
23413         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23414         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23415         shell variable gl_fnmatch_required to detect which variant is
23416         requested.
23417         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23418         gl_FUNC_FNMATCH_POSIX.
23419         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23420         exclude fnmatch-posix.
23421
23422 2009-05-02  Bruno Haible  <bruno@clisp.org>
23423
23424         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23425         * modules/mbsrtowcs (License): Change to LGPLv2+.
23426         * modules/strnlen1 (License): Likewise.
23427         Reported by Simon Josefsson.
23428
23429 2009-05-02  Bruno Haible  <bruno@clisp.org>
23430
23431         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23432         "cross".
23433         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23434         gnulib-tool was called with option --source-base=lib.
23435
23436 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23437
23438         Use automake *-local hooks without commands, for extensibility.
23439         * modules/localcharset (Makefile.am): Rename install-exec-local
23440         rule to install-exec-localcharset, and make it a prerequisite of
23441         install-exec-local.  Likewise, rename the uninstall-local rule to
23442         uninstall-localcharset, and make it a prerequisite of the former.
23443
23444 2009-05-01  Bruno Haible  <bruno@clisp.org>
23445
23446         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23447         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23448         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23450         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23451         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23452         m4/locale-zh.m4, m4/codeset.m4.
23453
23454         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23455         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23456         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23457         m4/locale-zh.m4.
23458
23459         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23460         REPLACE_WCRTOMB if mbstate_t must be replaced.
23461         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23462         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23463
23464 2009-05-01  Bruno Haible  <bruno@clisp.org>
23465
23466         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23467         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23468         dngettext, dcngettext, textdomain, bindtextdomain,
23469         bind_textdomain_codeset): Undefine before redefining.
23470
23471 2009-04-30  Bruno Haible  <bruno@clisp.org>
23472
23473         Fix bug introduced on 2009-04-25.
23474         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23475         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23476         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23477         is defined.
23478         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23479         is defined.
23480         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23481         is defined.
23482         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23483
23484 2009-04-28  Bruno Haible  <bruno@clisp.org>
23485
23486         Comment tweaks.
23487         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23488         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23489         * lib/unicase.h (u*_casexfrm): Likewise.
23490         Reported by Paolo Bonzini.
23491
23492 2009-04-28  Bruno Haible  <bruno@clisp.org>
23493
23494         Fix a compilation error.
23495         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23496         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23497         Reported by Jim Meyering.
23498
23499 2009-04-27  Bruno Haible  <bruno@clisp.org>
23500
23501         New module 'libunistring'.
23502         * modules/libunistring: New file.
23503         * m4/libunistring.m4: New file.
23504         * MODULES.html.sh (Unicode string functions): Add it.
23505
23506 2009-04-27  Eric Blake  <ebb9@byu.net>
23507
23508         maint.mk: allow package-specific header to provide <config.h>
23509         * top/maint.mk (sc_require_config_h): New variable.
23510         (sc_require_config_h, sc_require_config_h_first): Use it.
23511
23512 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23513
23514         * top/maint.mk (sc_avoid_if_before_free): Except
23515         useless-if-before-free script.
23516
23517 2009-04-27  Eric Blake  <ebb9@byu.net>
23518
23519         maintainer-makefile: depend on all required helper scripts
23520         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23521         useless-if-before-free.
23522         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23523         version, rather than assuming gnulib checkout is available.
23524         Reported by Simen Josefsson.
23525
23526 2009-04-26  Bruno Haible  <bruno@clisp.org>
23527
23528         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23529         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23530         "../" or "..".
23531
23532 2009-04-26  Bruno Haible  <bruno@clisp.org>
23533
23534         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23535         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23536         AC_LIB_HAVE_LINKFLAGS.
23537
23538 2009-04-26  Bruno Haible  <bruno@clisp.org>
23539
23540         Simplify calling convention of u*_conv_from_encoding.
23541         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23542         u32_conv_from_encoding): Expect a resultbuf argument and return the
23543         result directly as a pointer.
23544         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23545         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23546         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23547         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23548         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23549         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23550         Update.
23551         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23552         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23553         * lib/vasnprintf.c (VASNPRINTF): Update.
23554         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23555         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23556         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23557         * NEWS: Mention the change.
23558
23559 2009-04-26  Bruno Haible  <bruno@clisp.org>
23560
23561         Simplify calling convention of u*_conv_to_encoding.
23562         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23563         u32_conv_to_encoding): Expect a resultbuf argument and return the
23564         result directly as a pointer.
23565         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23566         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23567         freeing scaled_offsets if mem_iconveha failed.
23568         * lib/unicase/u-casexfrm.h (FUNC): Update.
23569         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23570         * lib/vasnprintf.c (VASNPRINTF): Update.
23571         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23572         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23573         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23574         * NEWS: Mention the change.
23575
23576 2009-04-26  Bruno Haible  <bruno@clisp.org>
23577
23578         Avoid test failures on AIX and OSF/1.
23579         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23580         malloc(0).
23581         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23582         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23583         Likewise.
23584         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23585         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23586         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23587         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23588         * doc/posix-functions/malloc.texi: Document the portability problem
23589         related to malloc(0).
23590
23591 2009-04-26  Bruno Haible  <bruno@clisp.org>
23592
23593         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23594         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23595         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23596
23597 2009-04-25  Bruno Haible  <bruno@clisp.org>
23598
23599         Avoid link error when creating a namespace clean library.
23600         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23601         as macro with arguments if already defined as an alias.
23602         * lib/signbitf.c (gl_signbitf): Don't undefine.
23603         * lib/signbitd.c (gl_signbitd): Don't undefine.
23604         * lib/signbitl.c (gl_signbitl): Don't undefine.
23605
23606 2009-04-25  Jim Meyering  <meyering@redhat.com>
23607
23608         vc-list-files: fix another quoting bug
23609         * build-aux/vc-list-files: Avoid sed backslash expansion
23610         of pathological directory names.
23611
23612 2009-04-25  Eric Blake  <ebb9@byu.net>
23613
23614         vc-list-files: fix shell quoting error
23615         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23616         timestamp.
23617
23618 2009-04-25  Jim Meyering  <meyering@redhat.com>
23619
23620         vc-list-files: restore lost functionality with subdir argument
23621         * build-aux/vc-list-files: When given a non-"." sub-directory
23622         argument, substitute the $dir/ prefix back onto each resulting name.
23623         Otherwise, coreutils' root_tests check would fail.
23624
23625 2009-04-24  Eric Blake  <ebb9@byu.net>
23626
23627         vc-list-files: ignore git symlinks
23628         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23629         than ls-files, to ignore git symlinks.
23630
23631         maint.mk: import improvements from m4
23632         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23633         (move_if_change): Delete unused macro.
23634         (news-date-check, vc-diff-check): Support VPATH builds.
23635         (announcement): Likewise.  Split --bootstrap-tools list...
23636         (boostrap-tools): ...into separate list, which can be overridden
23637         in cfg.mk.
23638         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23639         requiring dependency on useless-if-before-free module.
23640         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23641         Support VPATH builds.
23642
23643 2009-04-24  Jim Meyering  <meyering@redhat.com>
23644
23645         maint.mk: remove coreutils-specific rules and variables
23646         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23647         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23648         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23649
23650         maint.mk: remove obsolete rule
23651         * top/maint.mk (rel-check): Remove rule.
23652         (WGET, WGETFLAGS): Remove now-unused variables.
23653
23654 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23655
23656         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23657         consistency.
23658
23659         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23660         '$(PATH_SEPARATOR)' instead of ':'.
23661
23662 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23663
23664         * lib/getopt1.c (main): Use 'const' for static array.
23665
23666 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23667
23668         * top/maint.mk: Sync with coreutils.
23669         * NEWS: Explain incompatibilities.
23670
23671 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23672             Bruno Haible  <bruno@clisp.org>
23673
23674         Fix cross-compilation results.
23675         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23676         statement, as third argument of AC_TRY_RUN.
23677         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23678         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23679         Likewise.
23680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23681         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23682         Likewise.
23683         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23685         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23686
23687 2009-04-20  Bruno Haible  <bruno@clisp.org>
23688
23689         Avoid test failure on mingw.
23690         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23691
23692 2009-04-20  Bruno Haible  <bruno@clisp.org>
23693
23694         Avoid compilation error on mingw.
23695         * modules/localename-tests (Depends-on): Add locale.
23696
23697 2009-04-19  Bruno Haible  <bruno@clisp.org>
23698
23699         Support for building a shared library on Windows platforms.
23700         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23701         (main): Test the presence of UNINORM_NFC here.
23702         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23703         (main): Test the presence of UNINORM_NFD here.
23704         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23705         (main): Test the presence of UNINORM_NFKC here.
23706         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23707         (main): Test the presence of UNINORM_NFKD here.
23708
23709 2009-04-19  Bruno Haible  <bruno@clisp.org>
23710
23711         Avoid a compiler warning.
23712         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23713         Change type of variable 'sequence'.
23714
23715 2009-04-19  Bruno Haible  <bruno@clisp.org>
23716
23717         * modules/configmake (Makefile.am): When the contents of configmake.h
23718         does not change, arrange to preserve its modification time.
23719
23720 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23721
23722         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23723         gettext domain.
23724
23725 2009-04-16  Jim Meyering  <meyering@redhat.com>
23726
23727         useless-if-before-free: improve conversion code
23728         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23729         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23730
23731 2009-04-14  Bruno Haible  <bruno@clisp.org>
23732
23733         * modules/fcntl (Depends-on): Add extensions.
23734         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23735
23736 2009-04-12  Ben Pfaff  <blp@gnu.org>
23737
23738         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23739         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23740
23741 2009-03-20  Ben Pfaff  <blp@gnu.org>
23742
23743         Make rename replace existing destinations on Windows.
23744         * m4/rename.m4: Add test for Mingw.
23745         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23746         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23747         * doc/posix-functions/rename.texi: Document.
23748
23749 2009-04-10  Bruno Haible  <bruno@clisp.org>
23750
23751         New include file "iconveh.h".
23752         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23753         * lib/striconveh.h: Include it.
23754         (enum iconv_ilseq_handler): Remove definition.
23755         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23756         striconveh.h.
23757         * lib/striconveha.c: Include striconveh.h.
23758         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23759         * modules/striconveh (Files): Add lib/iconveh.h.
23760         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23761         lib/striconveh.h.
23762
23763 2009-04-10  Bruno Haible  <bruno@clisp.org>
23764
23765         * lib/uniconv.h: Update comment.
23766
23767 2009-04-10  Bruno Haible  <bruno@clisp.org>
23768
23769         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23770         always.
23771         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23772         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23773         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23774         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23775         "unistring-notinline.h", so that the function gets defined always.
23776         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23777         * lib/unistr/u8-uctomb.c: Likewise.
23778         * lib/unistr/u16-mbtouc.c: Likewise.
23779         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23780         * lib/unistr/u16-uctomb.c: Likewise.
23781         * lib/unistr/u32-mbtouc.c: Likewise.
23782         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23783         * lib/unistr/u32-uctomb.c: Likewise.
23784
23785 2009-04-10  Bruno Haible  <bruno@clisp.org>
23786
23787         Mark 'utime' obsolete.
23788         * modules/utime (Status, Notice): New sections.
23789         Suggested by Jim Meyering.
23790
23791         Fix cross-compile guess for utime test.
23792         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23793         autoconf.
23794         * doc/posix-functions/utime.texi: Give more precisions.
23795         Reported by Jan <ipif@ymail.com>.
23796
23797 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23798
23799         filevercmp: correct today's change
23800         * lib/filevercmp.c: Also handle coreutils' test inputs.
23801         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23802
23803         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23804         for reporting it.
23805         * lib/filevercmp.c: Special handle for "", "." and "..".
23806         * tests/test-filevercmp.c: Enlarge the set suite.
23807
23808 2009-04-07  Jim Meyering  <meyering@redhat.com>
23809
23810         useless-if-before-free: show how to remove braced useless free, too
23811         * build-aux/useless-if-before-free: still only in a comment, though.
23812
23813 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23814
23815         maint.mk: import changes to syntax-check macros from coreutils
23816         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23817         Use them in the relevant macros.
23818
23819 2009-04-06  Bruno Haible  <bruno@clisp.org>
23820
23821         Fix unportable use of bit-fields.
23822         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23823         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23824         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23825
23826 2009-04-06  Bruno Haible  <bruno@clisp.org>
23827
23828         Avoid test failures on AIX and OSF/1.
23829         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23830         that malloc(0) = NULL.
23831         * tests/unicase/test-u8-tolower.c (check): Likewise.
23832         * tests/unicase/test-u8-totitle.c (check): Likewise.
23833         * tests/unicase/test-u8-toupper.c (check): Likewise.
23834         * tests/unicase/test-u16-casefold.c (check): Likewise.
23835         * tests/unicase/test-u16-tolower.c (check): Likewise.
23836         * tests/unicase/test-u16-totitle.c (check): Likewise.
23837         * tests/unicase/test-u16-toupper.c (check): Likewise.
23838         * tests/unicase/test-u32-casefold.c (check): Likewise.
23839         * tests/unicase/test-u32-tolower.c (check): Likewise.
23840         * tests/unicase/test-u32-totitle.c (check): Likewise.
23841         * tests/unicase/test-u32-toupper.c (check): Likewise.
23842         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23843         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23844         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23845         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23846         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23847         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23848         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23849         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23850         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23851         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23852         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23853         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23854
23855 2009-04-05  Bruno Haible  <bruno@clisp.org>
23856
23857         Work around an autoconf limitation.
23858         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23859         comment line if it would be longer than 3 KB.
23860
23861 2009-04-05  Bruno Haible  <bruno@clisp.org>
23862
23863         Avoid test failure with libiconv-1.13.
23864         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23865         of the expected test results.
23866
23867 2009-04-05  Bruno Haible  <bruno@clisp.org>
23868
23869         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23870         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23871         that it should be installed.
23872
23873 2009-04-05  Bruno Haible  <bruno@clisp.org>
23874
23875         * gnulib-tool: New option --copy-file.
23876         (func_usage): Document it.
23877         (func_dest_tmpfilename): Moved out of func_import.
23878         (func_add_file, func_update_file): New functions, extracted from
23879         func_import.
23880         (func_import): Update.
23881
23882 2009-04-05  Karl Berry  <karl@gnu.org>
23883
23884         * README: prominently mention gnulib-tool.
23885         Rearrange sections so getting the code is near the top.
23886
23887 2009-04-05  Bruno Haible  <bruno@clisp.org>
23888
23889         * lib/unicase.h: Mention u*_cmp2.
23890         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23891         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23892         * lib/unicase/ulc-casecmp.c: Likewise.
23893         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23894         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23895         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23896         unistr/u8-cmp.
23897         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23898         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23899         unistr/u16-cmp.
23900         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23901         unistr/u32-cmp.
23902
23903         * lib/uninorm.h: Mention u*_cmp2.
23904         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23905         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23906         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23907         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23908         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23909         unistr/u8-cmp.
23910         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23911         unistr/u16-cmp.
23912         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23913         unistr/u32-cmp.
23914
23915         New module 'unistr/u32-cmp2'.
23916         * lib/unistr/u32-cmp2.c: New file.
23917         * modules/unistr/u32-cmp2: New file.
23918
23919         New module 'unistr/u16-cmp2'.
23920         * lib/unistr/u16-cmp2.c: New file.
23921         * modules/unistr/u16-cmp2: New file.
23922
23923         New module 'unistr/u8-cmp2'.
23924         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23925         * lib/unistr/u8-cmp2.c: New file.
23926         * lib/unistr/u-cmp2.h: New file.
23927         * modules/unistr/u8-cmp2: New file.
23928
23929 2009-04-05  Bruno Haible  <bruno@clisp.org>
23930
23931         * lib/unictype.h (uc_property_is_valid): New macro.
23932         * tests/unictype/test-pr_byname.c (main): Use it.
23933
23934         * lib/unistr.h: Doc fixes.
23935         * lib/uniconv.h: Doc fixes.
23936         * lib/unictype.h: Doc fixes.
23937
23938 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23939
23940         Port coreutils 7.2 to Solaris 8.
23941
23942         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23943         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23944         for Solaris 8.  This is a bit of a hack, as it means it's the
23945         caller's responsibility to add -lnsl if needed, but most likely it
23946         won't be needed since only getaddrinfo uses this and getaddrinfo
23947         isn't needed on Solaris 8.
23948
23949         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23950         problem to Solaris 8 encountered with coreutils 7.2, which
23951         resulted in a message "fnmatch.c:292: warning: passing argument 4
23952         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23953         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23954
23955 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23956
23957         * m4/ld-version-script.m4: Add FIXME comment.
23958
23959 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23960
23961         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23962         SOVERSION variable.
23963
23964 2009-04-02  Bruno Haible  <bruno@clisp.org>
23965
23966         * Makefile (info, html, dvi, pdf): Combine the rules.
23967         Suggested by Jim Meyering.
23968
23969 2009-04-01  Bruno Haible  <bruno@clisp.org>
23970
23971         * Makefile (info, html, dvi, pdf): New targets.
23972         Reported by Reuben Thomas <rrt@sc3d.org>.
23973
23974 2009-04-01  Bruno Haible  <bruno@clisp.org>
23975
23976         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23977         can be put into PATH.
23978         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23979
23980 2009-04-01  Bruno Haible  <bruno@clisp.org>
23981
23982         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23983
23984 2009-04-01  Bruno Haible  <bruno@clisp.org>
23985
23986         Rename module 'visibility'.
23987         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23988         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23989         * doc/gnulib.texi: Update.
23990         * MODULES.html.sh (Misc): Update.
23991         * NEWS: Mention the change.
23992
23993 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23994
23995         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23996         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23997         Eric Blake <ebb9@byu.net> for review.
23998         * MODULES.html.sh: Add lib-msvc-compat.
23999         * doc/gnulib.texi: Link to new section.
24000         * m4/ld-output-def.m4: New file.
24001         * doc/ld-output-def.texi: New file.
24002
24003 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24004
24005         Rename ld-version-script to lib-symbol-versions.  Suggested by
24006         Bruno Haible <bruno@clisp.org>.
24007         * modules/ld-version-script: Renamed to lib-symbol-versions.
24008         * doc/ld-version-script.texi: Fix module name.
24009         * MODULES.html.sh: Add lib-symbol-versions.
24010
24011 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24012
24013         * modules/u64-tests: New file.
24014         * tests/test-u64.c: New file.
24015
24016 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24017
24018         * MODULES.html.sh: Mention u64.
24019         * modules/u64: New module.
24020         * modules/crypto/sha512: Depend on u64 module instead of providing
24021         u64.h.
24022
24023 2009-03-27  Eric Blake  <ebb9@byu.net>
24024
24025         test-strerror: make debugging EAI_SYSTEM easier
24026         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24027         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24028         failure was EAI_SYSTEM.
24029
24030 2009-03-25  Bruno Haible  <bruno@clisp.org>
24031
24032         Fix a problem with --enable-relocatable on Solaris 7.
24033         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24034         since 2008-02-24.
24035
24036 2009-03-25  Eric Blake  <ebb9@byu.net>
24037
24038         test-sockets: avoid gcc warning
24039         * tests/test-sockets.c (main): Silence compiler warning.
24040
24041 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24042
24043         New modules nproc, pthread, contributed by Glen Lenker.
24044
24045         * MODULES.html.sh: Add pthread, nproc.
24046         * lib/nproc.c: New file.
24047         * lib/nproc.h: New file.
24048         * lib/pthread.in.h: New file.
24049         * m4/pthread.m4: New file.
24050         * modules/nproc: New file.
24051         * modules/pthread: New file.
24052
24053 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24054
24055         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24056         New variable.
24057
24058 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24059
24060         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24061         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24062         * tests/test-filevercmp.c: Add tests for backup suffixes.
24063
24064 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24065
24066         * modules/stdlib (Depends-on): Add stdint, needed when defining
24067         struct random_data on, for example, HP-UX 10.20.  Reported by
24068         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24069
24070 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24071
24072         * lib/readline.c (readline): Call fflush on stdout after printing
24073         prompt.
24074
24075 2009-03-20  Bruno Haible  <bruno@clisp.org>
24076
24077         Remove dependency from 'close' module to -lws2_32 on native Windows.
24078         * lib/close-hook.h: New file.
24079         * lib/close-hook.c: New file.
24080         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24081         w32sock.h.
24082         (_gl_close_fd_maybe_socket): Remove function.
24083         (rpl_close): Invoke execute_all_close_hooks instead of
24084         _gl_close_fd_maybe_socket.
24085         * lib/sockets.c: Include close-hook.h, w32sock.h.
24086         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24087         (close_sockets_hook): New variable.
24088         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24089         (gl_sockets_cleanup): Unregister it.
24090         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24091         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24092         * modules/close-hook: New file.
24093         * modules/close (Files): Remove lib/w32sock.h.
24094         (Depends-on): Add close-hook.
24095         (Link): Remove section.
24096         * modules/sockets (Files): Add lib/w32sock.h.
24097         (Depends-on): Add close-hook.
24098         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24099         invocation.
24100         * NEWS: Mention that LIB_CLOSE is gone.
24101
24102 2009-03-23  Eric Blake  <ebb9@byu.net>
24103
24104         signal-tests: test previous patch
24105         * tests/test-signal.c: New file.
24106         * modules/signal-tests: Likewise.
24107
24108         signal.h: always support 'volatile sig_atomic_t'
24109         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24110         (gl_SIGNAL_H_DEFAULTS): Add a default.
24111         * modules/signal (Makefile.am): Substitute if needed.
24112         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24113         users can blindly add volatile.
24114         * doc/posix-headers/signal.texi (signal.h): Document it.
24115         Reported by Matthew Woehlke.
24116
24117 2009-03-23  Jim Meyering  <meyering@redhat.com>
24118
24119         pathmax: PATH_MAX: use pathconf only when available
24120         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24121         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24122         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24123         This avoids a link failure in a PSP cross-compilation environment
24124         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24125
24126         * lib/vasnprintf.c (divide): Fix typo in comment.
24127
24128 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24129
24130         * gnulib-tool (func_filter_filelist): Fix comment.
24131
24132 2009-03-20  Bruno Haible  <bruno@clisp.org>
24133
24134         Make sockets.h self-contained.
24135         * lib/sockets.c: Include sockets.h first.
24136         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24137
24138 2009-03-19  Eric Blake  <ebb9@byu.net>
24139
24140         doc: mention more functions added in cygwin 1.7.0
24141         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24142         addition.
24143         * doc/posix-functions/log2f.texi: Likewise.
24144
24145 2009-03-19  Jim Meyering  <meyering@redhat.com>
24146
24147         fsusage: avoid syntax error due to statement-before-declaration
24148         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24149         after all declarations.  Reported by Matthew Woehlke in
24150         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24151
24152 2009-03-18  Eric Blake  <ebb9@byu.net>
24153
24154         build-aux/compile: sync from automake
24155         * build-aux/compile: New file, from automake.
24156         * config/srclist.txt: Mention build-aux/compile.
24157
24158 2009-03-17  Bruno Haible  <bruno@clisp.org>
24159
24160         * lib/git-merge-changelog.c: Fix typo in comment.
24161         Reported by Reuben Thomas <rrt@sc3d.org>.
24162
24163 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24164
24165         * m4/regex.m4: update and improve help for
24166         --without-included-regex.
24167
24168 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24169
24170         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24171         failure on missing include files.
24172
24173 2009-03-17  Eric Blake  <ebb9@byu.net>
24174
24175         doc: mention more functions added in cygwin 1.7.0
24176         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24177         addition.
24178         * doc/posix-functions/fwscanf.texi: Likewise.
24179         * doc/posix-functions/swprintf.texi: Likewise.
24180         * doc/posix-functions/swscanf.texi: Likewise.
24181         * doc/posix-functions/vfwprintf.texi: Likewise.
24182         * doc/posix-functions/vfwscanf.texi: Likewise.
24183         * doc/posix-functions/vswprintf.texi: Likewise.
24184         * doc/posix-functions/vswscanf.texi: Likewise.
24185         * doc/posix-functions/vwprintf.texi: Likewise.
24186         * doc/posix-functions/vwscanf.texi: Likewise.
24187         * doc/posix-functions/wcscasecmp.texi: Likewise.
24188         * doc/posix-functions/wcsdup.texi: Likewise.
24189         * doc/posix-functions/wcsftime.texi: Likewise.
24190         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24191         * doc/posix-functions/wprintf.texi: Likewise.
24192         * doc/posix-functions/wscanf.texi: Likewise.
24193         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24194
24195 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24196
24197         maint.mk: really add $(AM_MAKEFLAGS)
24198         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24199         was inadvertently omitted in the last commit.
24200         Spotted by Bruno Haible.
24201
24202         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24203         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24204         $(AM_MAKEFLAGS)' rather than plain `make'.
24205
24206         gnulib-tool: execute $MAKE not make
24207         * gnulib-tool: Default $MAKE to 'make'.
24208         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24209         than make.  Initialize $MAKE in the do-autobuild script.
24210
24211         gnulib-tool: use $MAKE not make in generated files
24212         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24213         make, in generated files.  Initialize $MAKE in the do-autobuild
24214         script.
24215
24216         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24217
24218         GNUmakefile: disable parallelism only for multiple, recursive targets
24219         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24220         additions in the Makefile.
24221         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24222         by Automake.
24223         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24224         are listed on the command line and at least one of them is
24225         listed in $(ALL_RECURSIVE_TARGETS).
24226
24227 2009-03-14  Bruno Haible  <bruno@clisp.org>
24228
24229         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24230         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24231         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24232         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24233         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24234         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24235         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24236         unistr/u8-uctomb.
24237         * modules/unistr/u8-strchr (Depends-on): Likewise.
24238         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24239         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24240         unistr/u16-uctomb.
24241         * modules/unistr/u16-strchr (Depends-on): Likewise.
24242         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24243
24244 2009-03-12  Bruno Haible  <bruno@clisp.org>
24245
24246         Work around select() bug on Interix 3.5.
24247         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24248         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24249         * m4/select.m4: New file.
24250         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24251         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24252         * modules/select (Files): Add m4/select.m4.
24253         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24254         * modules/nanosleep (Depends-on): Add select.
24255         * modules/poll (Depends-on): Likewise.
24256         * doc/posix-functions/select.texi: Mention the Interix bug.
24257         Reported by Markus Duft <mduft@gentoo.org>.
24258
24259         * lib/select.c: Renamed from lib/winsock-select.c.
24260         * modules/select (Files): Add lib/select.c, remove
24261         lib/winsock-select.c.
24262         (configure.ac): Update.
24263
24264 2009-03-12  Jim Meyering  <meyering@redhat.com>
24265
24266         avoid gcc warnings about unused macro definitions
24267         * lib/readtokens.c (STREQ): Remove unused definition.
24268         * lib/xmalloc.c (SIZE_MAX): Likewise.
24269         * lib/openat-die.c (N_): Likewise.
24270         * lib/mountlist.c (SIZE_MAX): Remove definition.
24271         Instead, include <stdint.h>.
24272         * lib/readutmp.c: Likewise.
24273         * modules/readutmp (Depends-on): Add stdint.
24274         * modules/mountlist (Depends-on): Add stdint.
24275         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24276
24277 2009-03-10  Bruno Haible  <bruno@clisp.org>
24278
24279         Tests for module 'mbmemcasecoll'.
24280         * modules/mbmemcasecoll-tests: New file.
24281         * tests/test-mbmemcasecoll1.sh: New file.
24282         * tests/test-mbmemcasecoll2.sh: New file.
24283         * tests/test-mbmemcasecoll3.sh: New file.
24284         * tests/test-mbmemcasecoll.c: New file.
24285
24286         New module 'mbmemcasecoll'.
24287         * lib/mbmemcasecoll.h: New file.
24288         * lib/mbmemcasecoll.c: New file.
24289         * modules/mbmemcasecoll: New file.
24290
24291         * tests/test-mbmemcasecmp.h: New file, extracted from
24292         tests/test-mbmemcasecmp.c.
24293         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24294         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24295         (main): Update.
24296         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24297
24298 2009-03-09  Bruno Haible  <bruno@clisp.org>
24299
24300         Tests for module 'mbmemcasecmp'.
24301         * modules/mbmemcasecmp-tests: New file.
24302         * tests/test-mbmemcasecmp1.sh: New file.
24303         * tests/test-mbmemcasecmp2.sh: New file.
24304         * tests/test-mbmemcasecmp3.sh: New file.
24305         * tests/test-mbmemcasecmp.c: New file.
24306
24307         New module 'mbmemcasecmp'.
24308         * lib/mbmemcasecmp.h: New file.
24309         * lib/mbmemcasecmp.c: New file.
24310         * modules/mbmemcasecmp: New file.
24311
24312 2009-03-09  Bruno Haible  <bruno@clisp.org>
24313
24314         Tests for module 'unicase/ulc-casecoll'.
24315         * modules/unicase/ulc-casecoll-tests: New file.
24316         * tests/unicase/test-ulc-casecoll1.sh: New file.
24317         * tests/unicase/test-ulc-casecoll2.sh: New file.
24318         * tests/unicase/test-ulc-casecoll.c: New file.
24319
24320         New module 'unicase/ulc-casecoll'.
24321         * lib/unicase.h (ulc_casecoll): New declaration.
24322         * lib/unicase/ulc-casecoll.c: New file.
24323         * modules/unicase/ulc-casecoll: New file.
24324
24325         New module 'unicase/ulc-casexfrm'.
24326         * lib/unicase.h (ulc_casexfrm): New declaration.
24327         * lib/unicase/ulc-casexfrm.c: New file.
24328         * modules/unicase/ulc-casexfrm: New file.
24329
24330 2009-03-09  Bruno Haible  <bruno@clisp.org>
24331
24332         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24333         invocations.
24334
24335         * m4/mbscasecmp.m4: Remove file.
24336         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24337         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24338
24339         * m4/mbscasestr.m4: Remove file.
24340         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24341         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24342
24343         * m4/mbschr.m4: Remove file.
24344         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24345         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24346
24347         * m4/mbscspn.m4: Remove file.
24348         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24349         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24350
24351         * m4/mbslen.m4: Remove file.
24352         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24353         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24354
24355         * m4/mbsncasecmp.m4: Remove file.
24356         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24357         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24358
24359         * m4/mbsnlen.m4: Remove file.
24360         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24361         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24362
24363         * m4/mbspbrk.m4: Remove file.
24364         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24365         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24366
24367         * m4/mbspcasecmp.m4: Remove file.
24368         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24369         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24370
24371         * m4/mbsrchr.m4: Remove file.
24372         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24373         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24374
24375         * m4/mbssep.m4: Remove file.
24376         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24377         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24378
24379         * m4/mbsspn.m4: Remove file.
24380         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24381         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24382
24383         * m4/mbsstr.m4: Remove file.
24384         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24385         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24386
24387         * m4/mbstok_r.m4: Remove file.
24388         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24389         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24390
24391         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24392
24393         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24394         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24395
24396         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24397
24398 2009-03-08  Bruno Haible  <bruno@clisp.org>
24399
24400         Tests for module 'unicase/ulc-casecmp'.
24401         * modules/unicase/ulc-casecmp-tests: New file.
24402         * tests/unicase/test-ulc-casecmp1.sh: New file.
24403         * tests/unicase/test-ulc-casecmp2.sh: New file.
24404         * tests/unicase/test-ulc-casecmp.c: New file.
24405
24406         New module 'unicase/ulc-casecmp'.
24407         * lib/unicase.h (ulc_casecmp): New declaration.
24408         * lib/unicase/ulc-casecmp.c: New file.
24409         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24410         'const SRC_UNIT *'.
24411         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24412         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24413         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24414         * modules/unicase/ulc-casecmp: New file.
24415
24416         Tests for module 'unicase/u32-is-cased'.
24417         * modules/unicase/u32-is-cased-tests: New file.
24418         * tests/unicase/test-u32-is-cased.c: New file.
24419
24420         Tests for module 'unicase/u16-is-cased'.
24421         * modules/unicase/u16-is-cased-tests: New file.
24422         * tests/unicase/test-u16-is-cased.c: New file.
24423
24424         Tests for module 'unicase/u8-is-cased'.
24425         * modules/unicase/u8-is-cased-tests: New file.
24426         * tests/unicase/test-u8-is-cased.c: New file.
24427         * tests/unicase/test-is-cased.h: New file.
24428
24429         New module 'unicase/u32-is-cased'.
24430         * lib/unicase/u32-is-cased.c: New file.
24431         * modules/unicase/u32-is-cased: New file.
24432
24433         New module 'unicase/u16-is-cased'.
24434         * lib/unicase/u16-is-cased.c: New file.
24435         * modules/unicase/u16-is-cased: New file.
24436
24437         New module 'unicase/u8-is-cased'.
24438         * lib/unicase/u8-is-cased.c: New file.
24439         * lib/unicase/u-is-cased.h: New file.
24440         * modules/unicase/u8-is-cased: New file.
24441
24442         Tests for module 'unicase/u32-is-casefolded'.
24443         * modules/unicase/u32-is-casefolded-tests: New file.
24444         * tests/unicase/test-u32-is-casefolded.c: New file.
24445
24446         Tests for module 'unicase/u16-is-casefolded'.
24447         * modules/unicase/u16-is-casefolded-tests: New file.
24448         * tests/unicase/test-u16-is-casefolded.c: New file.
24449
24450         Tests for module 'unicase/u8-is-casefolded'.
24451         * modules/unicase/u8-is-casefolded-tests: New file.
24452         * tests/unicase/test-u8-is-casefolded.c: New file.
24453         * tests/unicase/test-is-casefolded.h: New file.
24454
24455         New module 'unicase/u32-is-casefolded'.
24456         * lib/unicase/u32-is-casefolded.c: New file.
24457         * modules/unicase/u32-is-casefolded: New file.
24458
24459         New module 'unicase/u16-is-casefolded'.
24460         * lib/unicase/u16-is-casefolded.c: New file.
24461         * modules/unicase/u16-is-casefolded: New file.
24462
24463         New module 'unicase/u8-is-casefolded'.
24464         * lib/unicase/u8-is-casefolded.c: New file.
24465         * modules/unicase/u8-is-casefolded: New file.
24466
24467         Tests for module 'unicase/u32-is-titlecase'.
24468         * modules/unicase/u32-is-titlecase-tests: New file.
24469         * tests/unicase/test-u32-is-titlecase.c: New file.
24470
24471         Tests for module 'unicase/u16-is-titlecase'.
24472         * modules/unicase/u16-is-titlecase-tests: New file.
24473         * tests/unicase/test-u16-is-titlecase.c: New file.
24474
24475         Tests for module 'unicase/u8-is-titlecase'.
24476         * modules/unicase/u8-is-titlecase-tests: New file.
24477         * tests/unicase/test-u8-is-titlecase.c: New file.
24478         * tests/unicase/test-is-titlecase.h: New file.
24479
24480         New module 'unicase/u32-is-titlecase'.
24481         * lib/unicase/u32-is-titlecase.c: New file.
24482         * modules/unicase/u32-is-titlecase: New file.
24483
24484         New module 'unicase/u16-is-titlecase'.
24485         * lib/unicase/u16-is-titlecase.c: New file.
24486         * modules/unicase/u16-is-titlecase: New file.
24487
24488         New module 'unicase/u8-is-titlecase'.
24489         * lib/unicase/u8-is-titlecase.c: New file.
24490         * modules/unicase/u8-is-titlecase: New file.
24491
24492         Tests for module 'unicase/u32-is-lowercase'.
24493         * modules/unicase/u32-is-lowercase-tests: New file.
24494         * tests/unicase/test-u32-is-lowercase.c: New file.
24495
24496         Tests for module 'unicase/u16-is-lowercase'.
24497         * modules/unicase/u16-is-lowercase-tests: New file.
24498         * tests/unicase/test-u16-is-lowercase.c: New file.
24499
24500         Tests for module 'unicase/u8-is-lowercase'.
24501         * modules/unicase/u8-is-lowercase-tests: New file.
24502         * tests/unicase/test-u8-is-lowercase.c: New file.
24503         * tests/unicase/test-is-lowercase.h: New file.
24504
24505         New module 'unicase/u32-is-lowercase'.
24506         * lib/unicase/u32-is-lowercase.c: New file.
24507         * modules/unicase/u32-is-lowercase: New file.
24508
24509         New module 'unicase/u16-is-lowercase'.
24510         * lib/unicase/u16-is-lowercase.c: New file.
24511         * modules/unicase/u16-is-lowercase: New file.
24512
24513         New module 'unicase/u8-is-lowercase'.
24514         * lib/unicase/u8-is-lowercase.c: New file.
24515         * modules/unicase/u8-is-lowercase: New file.
24516
24517         Tests for module 'unicase/u32-is-uppercase'.
24518         * modules/unicase/u32-is-uppercase-tests: New file.
24519         * tests/unicase/test-u32-is-uppercase.c: New file.
24520
24521         Tests for module 'unicase/u16-is-uppercase'.
24522         * modules/unicase/u16-is-uppercase-tests: New file.
24523         * tests/unicase/test-u16-is-uppercase.c: New file.
24524
24525         Tests for module 'unicase/u8-is-uppercase'.
24526         * modules/unicase/u8-is-uppercase-tests: New file.
24527         * tests/unicase/test-u8-is-uppercase.c: New file.
24528         * tests/unicase/test-is-uppercase.h: New file.
24529
24530         New module 'unicase/u32-is-uppercase'.
24531         * lib/unicase/u32-is-uppercase.c: New file.
24532         * modules/unicase/u32-is-uppercase: New file.
24533
24534         New module 'unicase/u16-is-uppercase'.
24535         * lib/unicase/u16-is-uppercase.c: New file.
24536         * modules/unicase/u16-is-uppercase: New file.
24537
24538         New module 'unicase/u8-is-uppercase'.
24539         * lib/unicase/u8-is-uppercase.c: New file.
24540         * modules/unicase/u8-is-uppercase: New file.
24541
24542         New module 'unicase/u32-is-invariant'.
24543         * lib/unicase/u32-is-invariant.c: New file.
24544         * modules/unicase/u32-is-invariant: New file.
24545
24546         New module 'unicase/u16-is-invariant'.
24547         * lib/unicase/u16-is-invariant.c: New file.
24548         * modules/unicase/u16-is-invariant: New file.
24549
24550         New module 'unicase/u8-is-invariant'.
24551         * lib/unicase/u8-is-invariant.c: New file.
24552         * lib/unicase/invariant.h: New file.
24553         * lib/unicase/u-is-invariant.h: New file.
24554         * modules/unicase/u8-is-invariant: New file.
24555
24556         Tests for module 'unicase/u32-casecoll'.
24557         * modules/unicase/u32-casecoll-tests: New file.
24558         * tests/unicase/test-u32-casecoll.c: New file.
24559
24560         Tests for module 'unicase/u16-casecoll'.
24561         * modules/unicase/u16-casecoll-tests: New file.
24562         * tests/unicase/test-u16-casecoll.c: New file.
24563
24564         Tests for module 'unicase/u8-casecoll'.
24565         * modules/unicase/u8-casecoll-tests: New file.
24566         * tests/unicase/test-u8-casecoll.c: New file.
24567
24568         New module 'unicase/u32-casecoll'.
24569         * lib/unicase/u32-casecoll.c: New file.
24570         * modules/unicase/u32-casecoll: New file.
24571
24572         New module 'unicase/u16-casecoll'.
24573         * lib/unicase/u16-casecoll.c: New file.
24574         * modules/unicase/u16-casecoll: New file.
24575
24576         New module 'unicase/u8-casecoll'.
24577         * lib/unicase/u8-casecoll.c: New file.
24578         * lib/unicase/u-casecoll.h: New file.
24579         * modules/unicase/u8-casecoll: New file.
24580
24581         New module 'unicase/u32-casexfrm'.
24582         * lib/unicase/u32-casexfrm.c: New file.
24583         * modules/unicase/u32-casexfrm: New file.
24584
24585         New module 'unicase/u16-casexfrm'.
24586         * lib/unicase/u16-casexfrm.c: New file.
24587         * modules/unicase/u16-casexfrm: New file.
24588
24589         New module 'unicase/u8-casexfrm'.
24590         * lib/unicase/u8-casexfrm.c: New file.
24591         * lib/unicase/u-casexfrm.h: New file.
24592         * modules/unicase/u8-casexfrm: New file.
24593
24594         Tests for module 'unicase/u32-casecmp'.
24595         * modules/unicase/u32-casecmp-tests: New file.
24596         * tests/unicase/test-u32-casecmp.c: New file.
24597
24598         Tests for module 'unicase/u16-casecmp'.
24599         * modules/unicase/u16-casecmp-tests: New file.
24600         * tests/unicase/test-u16-casecmp.c: New file.
24601
24602         Tests for module 'unicase/u8-casecmp'.
24603         * modules/unicase/u8-casecmp-tests: New file.
24604         * tests/unicase/test-u8-casecmp.c: New file.
24605         * tests/unicase/test-casecmp.h: New file.
24606
24607         New module 'unicase/u32-casecmp'.
24608         * lib/unicase/u32-casecmp.c: New file.
24609         * modules/unicase/u32-casecmp: New file.
24610
24611         New module 'unicase/u16-casecmp'.
24612         * lib/unicase/u16-casecmp.c: New file.
24613         * modules/unicase/u16-casecmp: New file.
24614
24615         New module 'unicase/u8-casecmp'.
24616         * lib/unicase/u8-casecmp.c: New file.
24617         * lib/unicase/u-casecmp.h: New file.
24618         * modules/unicase/u8-casecmp: New file.
24619
24620         Tests for module 'unicase/u32-casefold'.
24621         * modules/unicase/u32-casefold-tests: New file.
24622         * tests/unicase/test-u32-casefold.c: New file.
24623
24624         Tests for module 'unicase/u16-casefold'.
24625         * modules/unicase/u16-casefold-tests: New file.
24626         * tests/unicase/test-u16-casefold.c: New file.
24627
24628         Tests for module 'unicase/u8-casefold'.
24629         * modules/unicase/u8-casefold-tests: New file.
24630         * tests/unicase/test-u8-casefold.c: New file.
24631
24632         New module 'unicase/u32-casefold'.
24633         * lib/unicase/u32-casefold.c: New file.
24634         * modules/unicase/u32-casefold: New file.
24635
24636         New module 'unicase/u16-casefold'.
24637         * lib/unicase/u16-casefold.c: New file.
24638         * modules/unicase/u16-casefold: New file.
24639
24640         New module 'unicase/u8-casefold'.
24641         * lib/unicase/u8-casefold.c: New file.
24642         * lib/unicase/u-casefold.h: New file.
24643         * modules/unicase/u8-casefold: New file.
24644
24645         New module 'unicase/tocasefold'.
24646         * lib/unicase/casefold.h: New file.
24647         * lib/unicase/tocasefold.c: New file.
24648         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24649         * modules/unicase/tocasefold: New file.
24650
24651         Tests for module 'unicase/u32-totitle'.
24652         * modules/unicase/u32-totitle-tests: New file.
24653         * tests/unicase/test-u32-totitle.c: New file.
24654
24655         Tests for module 'unicase/u16-totitle'.
24656         * modules/unicase/u16-totitle-tests: New file.
24657         * tests/unicase/test-u16-totitle.c: New file.
24658
24659         Tests for module 'unicase/u8-totitle'.
24660         * modules/unicase/u8-totitle-tests: New file.
24661         * tests/unicase/test-u8-totitle.c: New file.
24662
24663         New module 'unicase/u32-totitle'.
24664         * lib/unicase/u32-totitle.c: New file.
24665         * modules/unicase/u32-totitle: New file.
24666
24667         New module 'unicase/u16-totitle'.
24668         * lib/unicase/u16-totitle.c: New file.
24669         * modules/unicase/u16-totitle: New file.
24670
24671         New module 'unicase/u8-totitle'.
24672         * lib/unicase/u8-totitle.c: New file.
24673         * lib/unicase/u-totitle.h: New file.
24674         * modules/unicase/u8-totitle: New file.
24675
24676         Tests for module 'unicase/u32-tolower'.
24677         * modules/unicase/u32-tolower-tests: New file.
24678         * tests/unicase/test-u32-tolower.c: New file.
24679
24680         Tests for module 'unicase/u16-tolower'.
24681         * modules/unicase/u16-tolower-tests: New file.
24682         * tests/unicase/test-u16-tolower.c: New file.
24683
24684         Tests for module 'unicase/u8-tolower'.
24685         * modules/unicase/u8-tolower-tests: New file.
24686         * tests/unicase/test-u8-tolower.c: New file.
24687
24688         New module 'unicase/u32-tolower'.
24689         * lib/unicase/u32-tolower.c: New file.
24690         * modules/unicase/u32-tolower: New file.
24691
24692         New module 'unicase/u16-tolower'.
24693         * lib/unicase/u16-tolower.c: New file.
24694         * modules/unicase/u16-tolower: New file.
24695
24696         New module 'unicase/u8-tolower'.
24697         * lib/unicase/u8-tolower.c: New file.
24698         * modules/unicase/u8-tolower: New file.
24699
24700         Tests for module 'unicase/u32-toupper'.
24701         * modules/unicase/u32-toupper-tests: New file.
24702         * tests/unicase/test-u32-toupper.c: New file.
24703
24704         Tests for module 'unicase/u16-toupper'.
24705         * modules/unicase/u16-toupper-tests: New file.
24706         * tests/unicase/test-u16-toupper.c: New file.
24707
24708         Tests for module 'unicase/u8-toupper'.
24709         * modules/unicase/u8-toupper-tests: New file.
24710         * tests/unicase/test-u8-toupper.c: New file.
24711
24712         New module 'unicase/u32-toupper'.
24713         * lib/unicase/u32-toupper.c: New file.
24714         * modules/unicase/u32-toupper: New file.
24715
24716         New module 'unicase/u16-toupper'.
24717         * lib/unicase/u16-toupper.c: New file.
24718         * modules/unicase/u16-toupper: New file.
24719
24720         New module 'unicase/u8-toupper'.
24721         * lib/unicase/u8-toupper.c: New file.
24722         * modules/unicase/u8-toupper: New file.
24723
24724         New module 'unicase/u32-casemap'.
24725         * lib/unicase/u32-casemap.c: New file.
24726         * modules/unicase/u32-casemap: New file.
24727
24728         New module 'unicase/u16-casemap'.
24729         * lib/unicase/u16-casemap.c: New file.
24730         * modules/unicase/u16-casemap: New file.
24731
24732         New module 'unicase/u8-casemap'.
24733         * lib/unicase/unicasemap.h: New file.
24734         * lib/unicase/u8-casemap.c: New file.
24735         * lib/unicase/u-casemap.h: New file.
24736         * modules/unicase/u8-casemap: New file.
24737
24738         New module 'unicase/special-casing'.
24739         * lib/unicase/special-casing.h: New file.
24740         * lib/unicase/special-casing.c: New file.
24741         * lib/unicase/special-casing-table.gperf: New file, generated by
24742         gen-uni-tables.c.
24743         * modules/unicase/special-casing: New file.
24744
24745         Tests for module 'unicase/locale-language'.
24746         * modules/unicase/locale-language-tests: New file.
24747         * tests/unicase/test-locale-language.sh: New file.
24748         * tests/unicase/test-locale-language.c: New file.
24749
24750         New module 'unicase/locale-language'.
24751         * lib/unicase/locale-language.c: New file.
24752         * lib/unicase/locale-languages.gperf: New file.
24753         * modules/unicase/locale-language: New file.
24754
24755         Generate more tables for case conversion and case folding.
24756         * lib/gen-uni-tables.c (SCC_*): New enum items.
24757         (struct special_casing_rule): New type.
24758         (casing_rules, num_casing_rules, allocated_casing_rules): New
24759         variables.
24760         (add_casing_rule, fill_casing_rules): New functions.
24761         (struct casefold_rule): New type.
24762         (casefolding_rules, num_casefolding_rules,
24763         allocated_casefolding_rules): New variables.
24764         (fill_casefolding_rules): New function.
24765         (unicode_casefold): New variable.
24766         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24767         sort_casing_rules, output_casing_rules): New functions.
24768         (main): Accept to more arguments: SpecialCasing.txt and
24769         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24770         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24771         Output mapping for casefolding.
24772
24773         * lib/unicase.h: Include stdbool.h, uninorm.h.
24774         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24775         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24776         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24777         arguments.
24778         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24779         resultp arguments.
24780         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24781         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24782         resultp arguments.
24783         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24784         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24785         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24786         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24787         declarations.
24788         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24789
24790 2009-03-08  Bruno Haible  <bruno@clisp.org>
24791
24792         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24793         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24794         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24795         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24796
24797 2009-03-07  Bruno Haible  <bruno@clisp.org>
24798
24799         Adjust u*_normcmp, u*_normcoll API.
24800         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24801         u16_normcoll, u32_normcoll): Change failure conventions.
24802         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24803         errno and return -1.
24804         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24805
24806 2009-03-07  Bruno Haible  <bruno@clisp.org>
24807
24808         Tests for module 'uninorm/u32-normcoll'.
24809         * modules/uninorm/u32-normcoll-tests: New file.
24810         * tests/uninorm/test-u32-normcoll.c: New file.
24811
24812         Tests for module 'uninorm/u16-normcoll'.
24813         * modules/uninorm/u16-normcoll-tests: New file.
24814         * tests/uninorm/test-u16-normcoll.c: New file.
24815
24816         Tests for module 'uninorm/u8-normcoll'.
24817         * modules/uninorm/u8-normcoll-tests: New file.
24818         * tests/uninorm/test-u8-normcoll.c: New file.
24819
24820 2009-03-07  Bruno Haible  <bruno@clisp.org>
24821
24822         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24823         tests/uninorm/test-u32-normcmp.c.
24824         * tests/uninorm/test-u32-normcmp.c: Include it.
24825         (test_nonascii): New function, extracted from main. Add some more
24826         tests.
24827         (main): Invoke test_ascii and test_nonascii.
24828         * modules/uninorm/u32-normcmp-tests (Files): Add
24829         tests/uninorm/test-u32-normcmp.h.
24830         (Depends-on): Remove uninorm/u32-normcmp.
24831
24832         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24833         tests/uninorm/test-u16-normcmp.c.
24834         * tests/uninorm/test-u16-normcmp.c: Include it.
24835         (test_nonascii): New function, extracted from main. Add some more
24836         tests.
24837         (main): Invoke test_ascii and test_nonascii.
24838         * modules/uninorm/u16-normcmp-tests (Files): Add
24839         tests/uninorm/test-u16-normcmp.h.
24840         (Depends-on): Remove uninorm/u16-normcmp.
24841
24842         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24843         tests/uninorm/test-u8-normcmp.c.
24844         * tests/uninorm/test-u8-normcmp.c: Include it.
24845         (test_nonascii): New function, extracted from main. Add some more
24846         tests.
24847         (main): Invoke test_ascii and test_nonascii.
24848         * modules/uninorm/u8-normcmp-tests (Files): Add
24849         tests/uninorm/test-u8-normcmp.h.
24850         (Depends-on): Remove uninorm/u8-normcmp.
24851
24852 2009-03-07  Bruno Haible  <bruno@clisp.org>
24853
24854         New module 'uninorm/u32-normcoll'.
24855         * lib/uninorm/u32-normcoll.c: New file.
24856         * modules/uninorm/u32-normcoll: New file.
24857
24858         New module 'uninorm/u16-normcoll'.
24859         * lib/uninorm/u16-normcoll.c: New file.
24860         * modules/uninorm/u16-normcoll: New file.
24861
24862         New module 'uninorm/u8-normcoll'.
24863         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24864         declarations.
24865         * lib/uninorm/u8-normcoll.c: New file.
24866         * lib/uninorm/u-normcoll.h: New file.
24867         * modules/uninorm/u8-normcoll: New file.
24868
24869         New module 'uninorm/u32-normxfrm'.
24870         * lib/uninorm/u32-normxfrm.c: New file.
24871         * modules/uninorm/u32-normxfrm: New file.
24872
24873         New module 'uninorm/u16-normxfrm'.
24874         * lib/uninorm/u16-normxfrm.c: New file.
24875         * modules/uninorm/u16-normxfrm: New file.
24876
24877         New module 'uninorm/u8-normxfrm'.
24878         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24879         declarations.
24880         * lib/uninorm/u8-normxfrm.c: New file.
24881         * lib/uninorm/u-normxfrm.h: New file.
24882         * modules/uninorm/u8-normxfrm: New file.
24883
24884 2009-03-07  Bruno Haible  <bruno@clisp.org>
24885
24886         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24887         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24888         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24889
24890 2009-03-07  Bruno Haible  <bruno@clisp.org>
24891
24892         New module 'memxfrm'.
24893         * lib/memxfrm.h: New file.
24894         * lib/memxfrm.c: New file.
24895         * modules/memxfrm: New file.
24896
24897 2009-03-07  Bruno Haible  <bruno@clisp.org>
24898
24899         New module 'memcmp2'.
24900         * lib/memcmp2.h: New file.
24901         * lib/memcmp2.c: New file.
24902         * modules/memcmp2: New file.
24903
24904 2009-03-07  Bruno Haible  <bruno@clisp.org>
24905
24906         Tests for module 'uninorm/decomposing-form'.
24907         * modules/uninorm/decomposing-form-tests: New file.
24908         * tests/uninorm/test-decomposing-form.c: New file.
24909
24910         New module 'uninorm/decomposing-form'.
24911         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24912         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24913         Add 'decomposing_variant' field.
24914         * lib/uninorm/decomposing-form.c: New file.
24915         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24916         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24917         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24918         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24919         * modules/uninorm/decomposing-form: New file.
24920         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24921         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24922
24923 2009-03-07  Bruno Haible  <bruno@clisp.org>
24924
24925         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24926         strings.
24927
24928 2009-03-06  Bruno Haible  <bruno@clisp.org>
24929
24930         Tests for module 'uninorm/u32-normcmp'.
24931         * tests/uninorm/test-u32-normcmp.c: New file.
24932         * modules/uninorm/u32-normcmp-tests: New file.
24933
24934         Tests for module 'uninorm/u16-normcmp'.
24935         * tests/uninorm/test-u16-normcmp.c: New file.
24936         * modules/uninorm/u16-normcmp-tests: New file.
24937
24938         Tests for module 'uninorm/u8-normcmp'.
24939         * tests/uninorm/test-u8-normcmp.c: New file.
24940         * modules/uninorm/u8-normcmp-tests: New file.
24941
24942         New module 'uninorm/u32-normcmp'.
24943         * lib/uninorm/u32-normcmp.c: New file.
24944         * modules/uninorm/u32-normcmp: New file.
24945
24946         New module 'uninorm/u16-normcmp'.
24947         * lib/uninorm/u16-normcmp.c: New file.
24948         * modules/uninorm/u16-normcmp: New file.
24949
24950         New module 'uninorm/u8-normcmp'.
24951         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24952         declarations.
24953         * lib/uninorm/u8-normcmp.c: New file.
24954         * lib/uninorm/u-normcmp.h: New file.
24955         * modules/uninorm/u8-normcmp: New file.
24956
24957 2009-03-06  Bruno Haible  <bruno@clisp.org>
24958
24959         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24960         Reported by Eric Blake.
24961
24962 2009-03-06  Eric Blake  <ebb9@byu.net>
24963             Bruno Haible  <bruno@clisp.org>
24964
24965         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24966         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24967         condition.
24968         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24969         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24970         condition.
24971         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24972
24973 2009-03-06  Eric Blake  <ebb9@byu.net>
24974
24975         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24976         to avoid compiler warnings.
24977         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24978
24979 2009-03-05  Bruno Haible  <bruno@clisp.org>
24980
24981         * tests/test-ftell.c (main): Disable test beyond end of file on
24982         FreeMiNT.
24983         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24984
24985 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24986
24987         * lib/filevercmp.c: Move hidden files up in ordering.
24988         * tests/test-filevercmp.c: Add tests for hidden files.
24989
24990 2009-03-04  Bruno Haible  <bruno@clisp.org>
24991
24992         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24993         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24994         AM_CFLAGS.
24995         Reported by Simon Josefsson.
24996
24997 2009-03-03  Bruno Haible  <bruno@clisp.org>
24998
24999         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25000         Reported by Simon Josefsson.
25001
25002         * doc/ld-version-script.texi: Update node reference.
25003
25004 2009-03-03  Bruno Haible  <bruno@clisp.org>
25005
25006         * modules/visibility (License): Change to 'unlimited'.
25007         Suggested by Simon Josefsson.
25008
25009 2009-03-03  Jim Meyering  <meyering@redhat.com>
25010
25011         unlinkdir: cannot_unlink_dir may modify process state
25012         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25013         it's neither thread-safe nor appropriate for use in a library.
25014
25015 2009-03-03  Eric Blake  <ebb9@byu.net>
25016
25017         test-closein: silence test under Darwin
25018         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25019         care if it dies from EPIPE or EBADF.
25020
25021 2009-03-03  Bruno Haible  <bruno@clisp.org>
25022
25023         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25024         earlier.
25025         * doc/visibility.texi: Fix @node and @section.
25026
25027 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25028
25029         * doc/gnulib.texi: Link to sections for ld version script and
25030         visibility.
25031         * doc/visibility.texi: Add @node and @section.
25032         * modules/ld-version-script: New module.
25033         * m4/ld-version-script.m4: New file.
25034         * doc/ld-version-script.texi: New file.
25035
25036 2009-03-02  David Lutterkort  <lutter@redhat.com>
25037
25038         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25040
25041 2009-03-02  Bruno Haible  <bruno@clisp.org>
25042
25043         * doc/visibility.texi: Mention libtool's -export-symbols option.
25044
25045 2009-03-02  Jim Meyering  <meyering@redhat.com>
25046
25047         announce-gen: new option: --no-print-checksums
25048         * build-aux/announce-gen (usage): Describe it.
25049         (print_checksums): Print a newline here, not in the [*] footnote.
25050         (main): Honor it.
25051
25052 2009-03-01  Bruno Haible  <bruno@clisp.org>
25053
25054         Use socklen_t in the native Windows replacements prototypes.
25055         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25056         instead of 'int'.
25057         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25058         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25059         * modules/getsockopt (Depends-on): Add socklen.
25060         * modules/setsockopt (Depends-on): Add socklen.
25061
25062 2009-03-01  Bruno Haible  <bruno@clisp.org>
25063
25064         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25065         least 4.2.
25066
25067 2009-03-01  Eric Blake  <ebb9@byu.net>
25068             Bruno Haible  <bruno@clisp.org>
25069
25070         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25071         error messages.
25072         * lib/wait-process.c (wait_subprocess): Omit error message about
25073         deadly signal sent to the child of termsigp != NULL.
25074
25075 2009-03-01  Eric Blake  <ebb9@byu.net>
25076
25077         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25078
25079 2009-03-01  Bruno Haible  <bruno@clisp.org>
25080
25081         Avoid a gcc warning.
25082         * tests/test-sched.c (b): Make global.
25083         Reported by Eric Blake.
25084
25085 2009-01-19  Martin Lambers  <marlam@marlam.de>
25086
25087         Provide POSIX semantics for socket timeout options on W32.
25088         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25089         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25090         * modules/setsockopt: Depend on sys_time module for struct timeval.
25091         * modules/getsockopt: Depend on sys_time module for struct timeval.
25092
25093 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25094
25095         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25096         __USE_GNU, for consistency with netdb.in.h.
25097         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25098
25099 2009-03-01  Bruno Haible  <bruno@clisp.org>
25100
25101         More support for FreeMiNT.
25102         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25103         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25104
25105 2009-03-01  Bruno Haible  <bruno@clisp.org>
25106
25107         More support for FreeMiNT.
25108         * lib/fpurge.c (fpurge): Correct last commit.
25109         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25110
25111 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25112
25113         Fix unportable awk script in vc-list-files.
25114         * build-aux/vc-list-files: In the replacement awk script, use
25115         substr with a second argument of 1, not zero.
25116         Report by Simon Josefsson.
25117
25118 2009-02-28  Bruno Haible  <bruno@clisp.org>
25119
25120         More support for FreeMiNT.
25121         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25122         to FreeMiNT today.
25123         * lib/fwriting.c (fwriting): Likewise.
25124         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25125
25126 2009-02-28  Bruno Haible  <bruno@clisp.org>
25127
25128         * tests/test-freadseek.c (main): Disable test beyond end of file on
25129         FreeMiNT.
25130         * tests/test-ftello.c (main): Likewise.
25131         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25132
25133 2009-02-28  Bruno Haible  <bruno@clisp.org>
25134
25135         Add tentative support for FreeMiNT.
25136         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25137         * lib/fpurge.c (fpurge): Likewise.
25138         * lib/freadable.c (freadable): Likewise.
25139         * lib/freading.c (freading): Likewise.
25140         * lib/freadptr.c (freadptr): Likewise.
25141         * lib/freadseek.c (freadptrinc): Likewise.
25142         * lib/fseeko.c (rpl_fseeko): Likewise.
25143         * lib/fseterr.c (fseterr): Likewise.
25144         * lib/fwritable.c (fwritable): Likewise.
25145         * lib/fwriting.c (fwriting): Likewise.
25146         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25147         Hourihane.
25148         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25149
25150 2009-02-28  Bruno Haible  <bruno@clisp.org>
25151
25152         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25153         SIGCHLD.
25154         Reported by Jim Meyering.
25155
25156 2009-02-28  Bruno Haible  <bruno@clisp.org>
25157
25158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25159         Mention the results of these tests on various platforms.
25160         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25161         order.
25162         * doc/posix-functions/printf.texi: Likewise.
25163         * doc/posix-functions/snprintf.texi: Likewise.
25164         * doc/posix-functions/sprintf.texi: Likewise.
25165         * doc/posix-functions/vfprintf.texi: Likewise.
25166         * doc/posix-functions/vprintf.texi: Likewise.
25167         * doc/posix-functions/vsnprintf.texi: Likewise.
25168         * doc/posix-functions/vsprintf.texi: Likewise.
25169         * doc/glibc-functions/obstack_printf.texi: Likewise.
25170         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25171
25172 2009-02-28  Bruno Haible  <bruno@clisp.org>
25173
25174         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25175         Reported by Loïc Minier <lool@dooz.org>.
25176
25177 2009-02-27  Bruno Haible  <bruno@clisp.org>
25178
25179         * gnulib-tool (func_import): Make the sed expression used to create the
25180         sed script for updating the .gitignore file POSIX compliant.
25181         Reported by Eric Blake.
25182
25183 2009-02-27  Bruno Haible  <bruno@clisp.org>
25184
25185         * gnulib-tool (sed): Don't alias as "sed --posix".
25186         Reported by Eric Blake.
25187
25188 2009-02-27  Bruno Haible  <bruno@clisp.org>
25189
25190         Avoid test link errors.
25191         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25192         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25193         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25194         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25196
25197 2009-02-27  Bruno Haible  <bruno@clisp.org>
25198
25199         Avoid spurious "(cached)" in configure output.
25200         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25201         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25202         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25203         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25204         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25205         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25206         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25207         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25208         Reported by Eric Blake.
25209
25210 2009-02-27  Eric Blake  <ebb9@byu.net>
25211
25212         printf: fix regression in previous patch
25213         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25214
25215 2009-02-27  Bruno Haible  <bruno@clisp.org>
25216
25217         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25218         value.
25219         * lib/stdint.in.h: Likewise.
25220         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25221
25222 2009-02-27  Eric Blake  <ebb9@byu.net>
25223
25224         doc: mention more functions added in cygwin 1.7.0
25225         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25226         addition.
25227         * doc/posix-functions/open_wmemstream.texi: Likewise.
25228         * doc/posix-functions/wcsnlen.texi: Likewise.
25229         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25230         * doc/posix-functions/wcstod.texi: Likewise.
25231         * doc/posix-functions/wcstof.texi: Likewise.
25232         * doc/posix-functions/wcstoimax.texi: Likewise.
25233         * doc/posix-functions/wcstok.texi: Likewise.
25234         * doc/posix-functions/wcstoumax.texi: Likewise.
25235
25236         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25237         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25238         * doc/posix-functions/fprintf.texi: Update.
25239         * doc/posix-functions/printf.texi: Update.
25240         * doc/posix-functions/snprintf.texi: Update.
25241         * doc/posix-functions/sprintf.texi: Update.
25242         * doc/posix-functions/vfprintf.texi: Update.
25243         * doc/posix-functions/vprintf.texi: Update.
25244         * doc/posix-functions/vsnprintf.texi: Update.
25245         * doc/posix-functions/vsprintf.texi: Update.
25246         * doc/glibc-functions/obstack_printf.texi: Update.
25247         * doc/glibc-functions/obstack_vprintf.texi: Update.
25248
25249 2009-02-26  Eric Blake  <ebb9@byu.net>
25250
25251         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25252         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25253         compilation bug by using runtime conversion.
25254         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25255         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25256         * modules/ceill-tests (Files): Use nan.h.
25257         * modules/floorl-tests (Files): Likewise.
25258         * modules/frexpl-tests (Files): Likewise.
25259         * modules/isnanl-tests (Files): Likewise.
25260         * modules/ldexpl-tests (Files): Likewise.
25261         * modules/roundl-tests (Files): Likewise.
25262         * modules/truncl-tests (Files): Likewise.
25263         * tests/test-ceill.c (main): Use a working NaN.
25264         * tests/test-floorl.c (main): Likewise.
25265         * tests/test-frexpl.c (main): Likewise.
25266         * tests/test-isnan.c (test_long_double): Likewise.
25267         * tests/test-isnanl.h (main): Likewise.
25268         * tests/test-ldexpl.h (main): Likewise.
25269         * tests/test-roundl.h (main): Likewise.
25270         * tests/test-truncl.h (main): Likewise.
25271         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25272
25273 2009-02-26  Eric Blake  <ebb9@byu.net>
25274             Bruno Haible  <bruno@clisp.org>
25275
25276         Work around a *printf bug with %ls on Solaris.
25277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25278         precision is specified, sprintf stops converting the wide string
25279         argument when the number of bytes that have been produced by this
25280         conversion equals or exceeds the precision.
25281         * doc/posix-functions/fprintf.texi: Update.
25282         * doc/posix-functions/printf.texi: Update.
25283         * doc/posix-functions/snprintf.texi: Update.
25284         * doc/posix-functions/sprintf.texi: Update.
25285         * doc/posix-functions/vfprintf.texi: Update.
25286         * doc/posix-functions/vprintf.texi: Update.
25287         * doc/posix-functions/vsnprintf.texi: Update.
25288         * doc/posix-functions/vsprintf.texi: Update.
25289         * doc/glibc-functions/obstack_printf.texi: Update.
25290         * doc/glibc-functions/obstack_vprintf.texi: Update.
25291
25292 2009-02-26  Eric Blake  <ebb9@byu.net>
25293
25294         stdlib: favor compiler check of random.h
25295         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25296         to avoid an ObjC random.h installed by Swarm.
25297
25298 2009-02-26  Bruno Haible  <bruno@clisp.org>
25299
25300         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25301         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25302         Reported by Gary V. Vaughan <gary@gnu.org>.
25303
25304 2009-02-26  Bruno Haible  <bruno@clisp.org>
25305
25306         Fix *printf behaviour regarding the %ls directive.
25307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25308         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25309         NEED_PRINTF_DIRECTIVE_LS.
25310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25311         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25313         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25314         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25315         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25316         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25317         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25318         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25319         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25321         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25325         * doc/posix-functions/fprintf.texi: Update.
25326         * doc/posix-functions/printf.texi: Update.
25327         * doc/posix-functions/snprintf.texi: Update.
25328         * doc/posix-functions/sprintf.texi: Update.
25329         * doc/posix-functions/vfprintf.texi: Update.
25330         * doc/posix-functions/vprintf.texi: Update.
25331         * doc/posix-functions/vsnprintf.texi: Update.
25332         * doc/posix-functions/vsprintf.texi: Update.
25333         * doc/glibc-functions/obstack_printf.texi: Update.
25334         * doc/glibc-functions/obstack_vprintf.texi: Update.
25335         Reported by Eric Blake.
25336
25337 2009-02-25  Bruno Haible  <bruno@clisp.org>
25338
25339         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25340         with known value.
25341         Reported by Gary V. Vaughan <gary@gnu.org>.
25342
25343 2009-02-25  Bruno Haible  <bruno@clisp.org>
25344
25345         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25346         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25347         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25348         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25349         Reported by Gary V. Vaughan <gary@gnu.org>.
25350
25351 2009-02-25  Bruno Haible  <bruno@clisp.org>
25352
25353         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25354         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25355         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25356         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25357         Reported by Gary V. Vaughan <gary@gnu.org>.
25358
25359 2009-02-25  Eric Blake  <ebb9@byu.net>
25360
25361         tests: skip fseek/ftell tests if ungetc is broken
25362         * m4/ungetc.m4: New file.
25363         * modules/fseek-tests: Split test, so ungetc dependency is
25364         separate from rest of test.
25365         * modules/fseeko-tests: Likewise.
25366         * modules/ftell-tests: Likewise.
25367         * modules/ftello-tests: Likewise.
25368         * tests/test-fseek.c (main): Isolate ungetc dependency.
25369         * tests/test-fseeko.c (main): Likewise.
25370         * tests/test-ftell.c (main): Likewise.
25371         * tests/test-ftello.c (main): Likewise.
25372         * tests/test-fseek2.sh: New file.
25373         * tests/test-fseeko2.sh: Likewise.
25374         * tests/test-ftell2.sh: Likewise.
25375         * tests/test-ftello2.sh: Likewise.
25376
25377 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25378
25379         test-getaddrinfo: fix usage of skip return code 77
25380         * tests/test-gettaddrinfo.c: Return skip code 77 only
25381         for first occurance of skip (4x77 is not 77)
25382
25383 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25384
25385         strtod: avoid C99 decl-after-statement
25386         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25387
25388 2009-02-24  Eric Blake  <ebb9@byu.net>
25389
25390         strtod: detect HP-UX 11.31 bug
25391         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25392         Reported by Gary V. Vaughan.
25393
25394 2009-02-23  Bruno Haible  <bruno@clisp.org>
25395
25396         Fix invalid read past end of memory block.
25397         * lib/vasnprintf.c (DCHAR_SET): Define.
25398         (local_wcslen): Define only when needed.
25399         (local_strnlen, local_wcsnlen): New functions.
25400         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25401         directives that involve a conversion ourselves.
25402         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25403         wcsnlen, mbrtowc, wcrtomb.
25404         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25405         * tests/test-vasprintf-posix.c (test_function): Likewise.
25406         * tests/test-snprintf-posix.h (test_function): Likewise.
25407         * tests/test-sprintf-posix.h (test_function): Likewise.
25408         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25409
25410 2009-02-22  Bruno Haible  <bruno@clisp.org>
25411
25412         Implement new clarified decomposition of Hangul syllables.
25413         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25414         of type LTV, return only a pairwise decomposition.
25415         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25416         Likewise.
25417         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25418         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25419         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25420
25421 2009-02-22  Bruno Haible  <bruno@clisp.org>
25422
25423         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25424         zero-length results and shrink excess allocated memory.
25425         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25426         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25427         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25428         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25429         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25430         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25431         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25432         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25433         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25434         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25435         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25436         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25437
25438 2009-02-21  Bruno Haible  <bruno@clisp.org>
25439
25440         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25441         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25442         spaces after a period. Put a space between a macro name and its
25443         argument list. Trivial rewordings.
25444         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25445         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25446         (main): Return 0 explicitly.
25447
25448 2009-02-21  Bruno Haible  <bruno@clisp.org>
25449
25450         Tests for module 'uninorm/filter'.
25451         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25452         * modules/uninorm/filter-tests: New file.
25453
25454         New module 'uninorm/filter'.
25455         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25456         uninorm_filter_flush, uninorm_filter_free): New declarations.
25457         * lib/uninorm/uninorm-filter.c: New file.
25458         * modules/uninorm/filter: New file.
25459
25460 2009-02-21  Bruno Haible  <bruno@clisp.org>
25461
25462         Tests for module 'uninorm/nfkc'.
25463         * tests/uninorm/test-nfkc.c: New file.
25464         * tests/uninorm/test-u8-nfkc.c: New file.
25465         * tests/uninorm/test-u16-nfkc.c: New file.
25466         * tests/uninorm/test-u32-nfkc.c: New file.
25467         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25468         * tests/uninorm/test-u32-nfkc-big.c: New file.
25469         * modules/uninorm/nfkc-tests: New file.
25470
25471         New module 'uninorm/nfkc'.
25472         * lib/uninorm/nfkc.c: New file.
25473         * modules/uninorm/nfkc: New file.
25474
25475         Tests for module 'uninorm/nfkd'.
25476         * tests/uninorm/test-nfkd.c: New file.
25477         * tests/uninorm/test-u8-nfkd.c: New file.
25478         * tests/uninorm/test-u16-nfkd.c: New file.
25479         * tests/uninorm/test-u32-nfkd.c: New file.
25480         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25481         * tests/uninorm/test-u32-nfkd-big.c: New file.
25482         * modules/uninorm/nfkd-tests: New file.
25483
25484         New module 'uninorm/nfkd'.
25485         * lib/uninorm/nfkd.c: New file.
25486         * modules/uninorm/nfkd: New file.
25487
25488         Tests for module 'uninorm/nfc'.
25489         * tests/uninorm/test-nfc.c: New file.
25490         * tests/uninorm/test-u8-nfc.c: New file.
25491         * tests/uninorm/test-u16-nfc.c: New file.
25492         * tests/uninorm/test-u32-nfc.c: New file.
25493         * tests/uninorm/test-u32-nfc-big.sh: New file.
25494         * tests/uninorm/test-u32-nfc-big.c: New file.
25495         * modules/uninorm/nfc-tests: New file.
25496
25497         New module 'uninorm/nfc'.
25498         * lib/uninorm/nfc.c: New file.
25499         * modules/uninorm/nfc: New file.
25500
25501         Tests for module 'uninorm/nfd'.
25502         * tests/uninorm/test-nfd.c: New file.
25503         * tests/uninorm/test-u8-nfd.c: New file.
25504         * tests/uninorm/test-u16-nfd.c: New file.
25505         * tests/uninorm/test-u32-nfd.c: New file.
25506         * tests/uninorm/test-u32-nfd-big.sh: New file.
25507         * tests/uninorm/test-u32-nfd-big.c: New file.
25508         * tests/uninorm/test-u32-normalize-big.h: New file.
25509         * tests/uninorm/test-u32-normalize-big.c: New file.
25510         * tests/uninorm/NormalizationTest.txt: New file, created from
25511         Unicode 5.1.0 NormalizationTest.txt.
25512         * modules/uninorm/nfd-tests: New file.
25513
25514         New module 'uninorm/nfd'.
25515         * lib/uninorm/nfd.c: New file.
25516         * modules/uninorm/nfd: New file.
25517
25518         New module 'uninorm/u32-normalize'.
25519         * lib/uninorm/u32-normalize.c: New file.
25520         * modules/uninorm/u32-normalize: New file.
25521
25522         New module 'uninorm/u16-normalize'.
25523         * lib/uninorm/u16-normalize.c: New file.
25524         * modules/uninorm/u16-normalize: New file.
25525
25526         New module 'uninorm/u8-normalize'.
25527         * lib/uninorm/u8-normalize.c: New file.
25528         * lib/uninorm/normalize-internal.h: New file.
25529         * lib/uninorm/u-normalize-internal.h: New file.
25530         * modules/uninorm/u8-normalize: New file.
25531
25532         New module 'uninorm/decompose-internal'.
25533         * lib/uninorm/decompose-internal.c: New file.
25534         * modules/uninorm/decompose-internal: New file.
25535
25536         Tests for module 'uninorm/composition'.
25537         * tests/uninorm/test-composition.c: New file.
25538         * modules/uninorm/composition-tests: New file.
25539
25540         New module 'uninorm/composition'.
25541         * lib/uninorm/composition.c: New file.
25542         * lib/uninorm/composition-table.gperf: New file, generated by
25543         gen-uni-tables.
25544         * modules/uninorm/composition: New file.
25545
25546         Tests for module 'uninorm/compat-decomposition'.
25547         * tests/uninorm/test-compat-decomposition.c: New file.
25548         * modules/uninorm/compat-decomposition-tests: New file.
25549
25550         New module 'uninorm/compat-decomposition'.
25551         * lib/uninorm/decompose-internal.h: New file.
25552         * lib/uninorm/compat-decomposition.c: New file.
25553         * modules/uninorm/compat-decomposition: New file.
25554
25555         Tests for module 'uninorm/canonical-decomposition'.
25556         * tests/uninorm/test-canonical-decomposition.c: New file.
25557         * modules/uninorm/canonical-decomposition-tests: New file.
25558
25559         New module 'uninorm/canonical-decomposition'.
25560         * lib/uninorm/canonical-decomposition.c: New file.
25561         * modules/uninorm/canonical-decomposition: New file.
25562
25563         Tests for module 'uninorm/decomposition'.
25564         * tests/uninorm/test-decomposition.c: New file.
25565         * modules/uninorm/decomposition-tests: New file.
25566
25567         New module 'uninorm/decomposition'.
25568         * lib/uninorm/decomposition.c: New file.
25569         * modules/uninorm/decomposition: New file.
25570
25571         New module 'uninorm/decomposition-table'.
25572         * lib/uninorm/decomposition-table.h: New file.
25573         * lib/uninorm/decomposition-table.c: New file.
25574         * lib/uninorm/decomposition-table1.h: New file, generated by
25575         gen-uni-tables.
25576         * lib/uninorm/decomposition-table2.h: New file, generated by
25577         gen-uni-tables.
25578         * modules/uninorm/decomposition-table: New file.
25579
25580         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25581         (UC_DECOMP_*): New enumeration items.
25582         (get_decomposition): New function.
25583         (struct decomp_table): New type.
25584         (output_decomposition, output_decomposition_tables): New functions.
25585         (unicode_composition_exclusions): New variable.
25586         (fill_composition_exclusions, debug_output_composition_tables): New
25587         functions.
25588         (main): Accept one more argument. Invoke fill_composition_exclusions.
25589         Output decomposition and composition tables.
25590
25591         New module 'uninorm/base'.
25592         * lib/uninorm.h: New file.
25593         * lib/unictype.h: Update comment.
25594         * modules/uninorm/base: New file.
25595
25596 2009-02-21  David Lutterkort  <lutter@redhat.com>
25597
25598         Tests for module 'safe-alloc'.
25599         * tests/test-safe-alloc.c: New file.
25600         * modules/safe-alloc-tests: New file.
25601
25602         New module 'safe-alloc'.
25603         * lib/safe-alloc.h: New file.
25604         * lib/safe-alloc.c: New file.
25605         * m4/safe-alloc.m4: New file.
25606         * modules/safe-alloc: New file.
25607         * doc/safe-alloc.texi: New file.
25608         * doc/gnulib.texi: Include it.
25609         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25610         safe-alloc.
25611
25612 2009-02-18  Bruno Haible  <bruno@clisp.org>
25613
25614         Fix link error on non-glibc systems.
25615         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25616         variable.
25617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25618
25619 2009-02-18  Jim Meyering  <meyering@redhat.com>
25620
25621         fts: avoid used-uninitialized error due to recent change
25622         * lib/fts.c (fts_read): Guard uses of the new member,
25623         parent->fts_n_dirs_remaining, since it's not relevant for
25624         the parent of a directory specified on the command-line.
25625
25626 2009-02-17  James Youngman  <jay@gnu.org>
25627             Bruno Haible  <bruno@clisp.org>
25628
25629         * m4/include_next.m4: Reformulate comment.
25630
25631 2009-02-16  Jim Meyering  <meyering@redhat.com>
25632
25633         fts: add #if guards so that the fts_lgpl module still builds
25634         * lib/fts.c: Guard just-added hash-table-using parts with
25635         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25636         Reported by Simon Josefsson.
25637
25638 2009-02-15  Bruno Haible  <bruno@clisp.org>
25639
25640         * modules/array-mergesort-tests: New file.
25641         * tests/test-array-mergesort.c: New file.
25642
25643         New module 'array-mergesort'.
25644         * modules/array-mergesort: New file.
25645         * lib/array-mergesort.h: New file.
25646
25647 2009-02-15  Bruno Haible  <bruno@clisp.org>
25648
25649         Fix 2009-02-07 commit.
25650         * lib/gen-uni-tables.c (output_predicate, output_category,
25651         output_combclass, output_bidi_category, output_decimal_digit,
25652         output_digit, output_numeric, output_mirror, output_scripts,
25653         output_ident_category, output_simple_mapping): Fix format directives.
25654         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25655
25656 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25657
25658         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25659         fixes are available from IBM.
25660
25661 2009-02-13  Jim Meyering  <meyering@redhat.com>
25662
25663         fts: arrange not to stat non-directories in more cases
25664         This makes GNU find (when it doesn't need to stat each file)
25665         *much* more efficient at traversing reiserfs file systems.
25666         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25667         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25668         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25669         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25670         (leaf_optimization_applies): New function.
25671         (LCO_hash, LCO_compare): New helper functions.
25672         (link_count_optimize_ok): New function.
25673         (fts_stat): Initialize new member (if dir).
25674         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25675         we've just stat'ed a directory.  Skip the stat call when possible.
25676         ---
25677         Note this AFS-related exchange:
25678         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25679         and note find's pioctl call in find/fstype.c.
25680         But that is necessary only if you want to enable the
25681         optimization for AFS, and for now, I don't.
25682
25683         fts: move a function definition "up" (no semantic change)
25684         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25685         "up" to precede upcoming use of a related function.
25686
25687 2009-02-11  Jim Meyering  <meyering@redhat.com>
25688
25689         fts: correct internal computation of nlinks (optimization-related)
25690         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25691         whether the current entry is a directory, so don't test it.
25692
25693 2009-02-10  Bruno Haible  <bruno@clisp.org>
25694
25695         Tests for module 'uniwbrk/ulc-wordbreaks'.
25696         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25697         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25698         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25699
25700         Tests for module 'uniwbrk/u32-wordbreaks'.
25701         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25702         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25703
25704         Tests for module 'uniwbrk/u16-wordbreaks'.
25705         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25706         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25707
25708         Tests for module 'uniwbrk/u8-wordbreaks'.
25709         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25710         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25711
25712 2009-02-10  Bruno Haible  <bruno@clisp.org>
25713
25714         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25715         property.
25716         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25717         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25718         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25719
25720 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25721
25722         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25723         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25724
25725 2009-02-10  Bruno Haible  <bruno@clisp.org>
25726
25727         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25728         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25729         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25730         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25731         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25732         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25733
25734 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25735
25736         * lib/sockets.h (gl_fd_to_handle): New function.
25737
25738         * tests/test-sockets.c: Call gl_fd_to_handle.
25739
25740 2009-02-09  Bruno Haible  <bruno@clisp.org>
25741
25742         * doc/havelib.texi: Document the conventions on bi-arch systems.
25743
25744 2009-02-08  Bruno Haible  <bruno@clisp.org>
25745
25746         Document the AC_LIB_LINKFLAGS macro.
25747         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25748         * doc/gnulib.texi: Include it.
25749
25750 2009-02-08  Bruno Haible  <bruno@clisp.org>
25751
25752         Fix wrong order of sections, compared to TOC.
25753         * doc/gnulib.texi: Include relocatable-maint.texi after the
25754         "Regular expressions" node, not before.
25755
25756 2009-02-08  Bruno Haible  <bruno@clisp.org>
25757
25758         Tests for module 'unicase/totitle'.
25759         * modules/unicase/totitle-tests: New file.
25760
25761         Tests for module 'unicase/tolower'.
25762         * modules/unicase/tolower-tests: New file.
25763
25764         Tests for module 'unicase/toupper'.
25765         * modules/unicase/toupper-tests: New file.
25766         * tests/unicase/test-mapping-part1.h: New file.
25767         * tests/unicase/test-mapping-part2.h: New file.
25768
25769         New module 'unicase/totitle'.
25770         * modules/unicase/totitle: New file.
25771         * lib/unicase/totitle.c: New file.
25772
25773         New module 'unicase/tolower'.
25774         * modules/unicase/tolower: New file.
25775         * lib/unicase/tolower.c: New file.
25776
25777         New module 'unicase/toupper'.
25778         * modules/unicase/toupper: New file.
25779         * lib/unicase/toupper.c: New file.
25780         * lib/unicase/simple-mapping.h: New file.
25781
25782         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25783         (mapping_table): New structure.
25784         (output_simple_mapping): New function.
25785         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25786         * modules/gen-uni-tables (Description): Update.
25787         * lib/unicase/toupper.h: New file, automatically generated by
25788         gen-uni-tables.
25789         * lib/unicase/tolower.h: New file, automatically generated by
25790         gen-uni-tables.
25791         * lib/unicase/totitle.h: New file, automatically generated by
25792         gen-uni-tables.
25793         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25794         gen-uni-tables.
25795         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25796         gen-uni-tables.
25797         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25798         gen-uni-tables.
25799
25800         New module 'unicase/base'.
25801         * modules/unicase/base: New file.
25802         * lib/unicase.h: New file.
25803
25804 2009-02-08  Bruno Haible  <bruno@clisp.org>
25805
25806         New module 'uniwbrk/ulc-wordbreaks'.
25807         * modules/uniwbrk/ulc-wordbreaks: New file.
25808         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25809
25810         New module 'uniwbrk/u32-wordbreaks'.
25811         * modules/uniwbrk/u32-wordbreaks: New file.
25812         * lib/uniwbrk/u32-wordbreaks.c: New file.
25813
25814         New module 'uniwbrk/u16-wordbreaks'.
25815         * modules/uniwbrk/u16-wordbreaks: New file.
25816         * lib/uniwbrk/u16-wordbreaks.c: New file.
25817
25818         New module 'uniwbrk/u8-wordbreaks'.
25819         * modules/uniwbrk/u8-wordbreaks: New file.
25820         * lib/uniwbrk/u8-wordbreaks.c: New file.
25821         * lib/uniwbrk/u-wordbreaks.h: New file.
25822
25823         New module 'uniwbrk/table'.
25824         * modules/uniwbrk/table: New file.
25825         * lib/uniwbrk/wbrktable.h: New file.
25826         * lib/uniwbrk/wbrktable.c: New file.
25827
25828         New module 'uniwbrk/wordbreak-property'.
25829         * modules/uniwbrk/wordbreak-property: New file.
25830         * lib/uniwbrk/wordbreak-property.c: New file.
25831
25832         * lib/gen-uni-tables.c (WBP_*): New enum items.
25833         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25834         (unicode_org_wbp): New variable.
25835         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25836         New functions.
25837         (wbp_table): New structure.
25838         (output_wbp, output_wbrk_tables): New functions.
25839         (main): Accept additional argument. Invoke fill_org_wbp,
25840         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25841         output_wbrk_tables.
25842         * modules/gen-uni-tables (Description): Update.
25843         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25844         gen-uni-tables.
25845
25846         New module 'uniwbrk/base'.
25847         * modules/uniwbrk/base: New file.
25848         * lib/uniwbrk.h: New file.
25849
25850 2009-02-08  Bruno Haible  <bruno@clisp.org>
25851
25852         Update to Unicode 5.1.0.
25853         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25854         U+2185..U+2188.
25855         (is_property_default_ignorable_code_point): Don't include characters
25856         of category Cc or Cs and not-a-characters.
25857         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25858         U+0D79, U+109E, U+109F, U+A60C.
25859         * lib/unictype/bidi_of.h: Regenerated.
25860         * lib/unictype/blocks.h: Regenerated.
25861         * lib/unictype/categ_C.h: Regenerated.
25862         * lib/unictype/categ_Cf.h: Regenerated.
25863         * lib/unictype/categ_Cn.h: Regenerated.
25864         * lib/unictype/categ_L.h: Regenerated.
25865         * lib/unictype/categ_Ll.h: Regenerated.
25866         * lib/unictype/categ_Lm.h: Regenerated.
25867         * lib/unictype/categ_Lo.h: Regenerated.
25868         * lib/unictype/categ_Lu.h: Regenerated.
25869         * lib/unictype/categ_M.h: Regenerated.
25870         * lib/unictype/categ_Mc.h: Regenerated.
25871         * lib/unictype/categ_Me.h: Regenerated.
25872         * lib/unictype/categ_Mn.h: Regenerated.
25873         * lib/unictype/categ_N.h: Regenerated.
25874         * lib/unictype/categ_Nd.h: Regenerated.
25875         * lib/unictype/categ_Nl.h: Regenerated.
25876         * lib/unictype/categ_No.h: Regenerated.
25877         * lib/unictype/categ_P.h: Regenerated.
25878         * lib/unictype/categ_Pd.h: Regenerated.
25879         * lib/unictype/categ_Pe.h: Regenerated.
25880         * lib/unictype/categ_Pf.h: Regenerated.
25881         * lib/unictype/categ_Pi.h: Regenerated.
25882         * lib/unictype/categ_Po.h: Regenerated.
25883         * lib/unictype/categ_Ps.h: Regenerated.
25884         * lib/unictype/categ_S.h: Regenerated.
25885         * lib/unictype/categ_Sk.h: Regenerated.
25886         * lib/unictype/categ_Sm.h: Regenerated.
25887         * lib/unictype/categ_So.h: Regenerated.
25888         * lib/unictype/categ_of.h: Regenerated.
25889         * lib/unictype/combining.h: Regenerated.
25890         * lib/unictype/ctype_alnum.h: Regenerated.
25891         * lib/unictype/ctype_alpha.h: Regenerated.
25892         * lib/unictype/ctype_graph.h: Regenerated.
25893         * lib/unictype/ctype_lower.h: Regenerated.
25894         * lib/unictype/ctype_print.h: Regenerated.
25895         * lib/unictype/ctype_punct.h: Regenerated.
25896         * lib/unictype/ctype_upper.h: Regenerated.
25897         * lib/unictype/decdigit.h: Regenerated.
25898         * lib/unictype/digit.h: Regenerated.
25899         * lib/unictype/mirror.h: Regenerated.
25900         * lib/unictype/numeric.h: Regenerated.
25901         * lib/unictype/pr_alphabetic.h: Regenerated.
25902         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25903         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25904         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25905         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25906         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25907         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25908         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25909         * lib/unictype/pr_combining.h: Regenerated.
25910         * lib/unictype/pr_dash.h: Regenerated.
25911         * lib/unictype/pr_decimal_digit.h: Regenerated.
25912         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25913         * lib/unictype/pr_deprecated.h: Regenerated.
25914         * lib/unictype/pr_diacritic.h: Regenerated.
25915         * lib/unictype/pr_extender.h: Regenerated.
25916         * lib/unictype/pr_format_control.h: Regenerated.
25917         * lib/unictype/pr_grapheme_base.h: Regenerated.
25918         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25919         * lib/unictype/pr_grapheme_link.h: Regenerated.
25920         * lib/unictype/pr_id_continue.h: Regenerated.
25921         * lib/unictype/pr_id_start.h: Regenerated.
25922         * lib/unictype/pr_ideographic.h: Regenerated.
25923         * lib/unictype/pr_ignorable_control.h: Regenerated.
25924         * lib/unictype/pr_lowercase.h: Regenerated.
25925         * lib/unictype/pr_math.h: Regenerated.
25926         * lib/unictype/pr_numeric.h: Regenerated.
25927         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25928         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25929         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25930         * lib/unictype/pr_other_id_continue.h: Regenerated.
25931         * lib/unictype/pr_other_lowercase.h: Regenerated.
25932         * lib/unictype/pr_other_math.h: Regenerated.
25933         * lib/unictype/pr_punctuation.h: Regenerated.
25934         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25935         * lib/unictype/pr_soft_dotted.h: Regenerated.
25936         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25937         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25938         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25939         * lib/unictype/pr_uppercase.h: Regenerated.
25940         * lib/unictype/pr_xid_continue.h: Regenerated.
25941         * lib/unictype/pr_xid_start.h: Regenerated.
25942         * lib/unictype/pr_zero_width.h: Regenerated.
25943         * lib/unictype/scripts.h: Regenerated.
25944         * lib/unictype/scripts_byname.gperf: Regenerated.
25945         * lib/unictype/sy_java_ident.h: Regenerated.
25946         * lib/unilbrk/lbrkprop1.h: Regenerated.
25947         * lib/unilbrk/lbrkprop2.h: Regenerated.
25948         * tests/unictype/test-categ_C.c: Regenerated.
25949         * tests/unictype/test-categ_Cf.c: Regenerated.
25950         * tests/unictype/test-categ_Cn.c: Regenerated.
25951         * tests/unictype/test-categ_L.c: Regenerated.
25952         * tests/unictype/test-categ_Ll.c: Regenerated.
25953         * tests/unictype/test-categ_Lm.c: Regenerated.
25954         * tests/unictype/test-categ_Lo.c: Regenerated.
25955         * tests/unictype/test-categ_Lu.c: Regenerated.
25956         * tests/unictype/test-categ_M.c: Regenerated.
25957         * tests/unictype/test-categ_Mc.c: Regenerated.
25958         * tests/unictype/test-categ_Me.c: Regenerated.
25959         * tests/unictype/test-categ_Mn.c: Regenerated.
25960         * tests/unictype/test-categ_N.c: Regenerated.
25961         * tests/unictype/test-categ_Nd.c: Regenerated.
25962         * tests/unictype/test-categ_Nl.c: Regenerated.
25963         * tests/unictype/test-categ_No.c: Regenerated.
25964         * tests/unictype/test-categ_P.c: Regenerated.
25965         * tests/unictype/test-categ_Pd.c: Regenerated.
25966         * tests/unictype/test-categ_Pe.c: Regenerated.
25967         * tests/unictype/test-categ_Pf.c: Regenerated.
25968         * tests/unictype/test-categ_Pi.c: Regenerated.
25969         * tests/unictype/test-categ_Po.c: Regenerated.
25970         * tests/unictype/test-categ_Ps.c: Regenerated.
25971         * tests/unictype/test-categ_S.c: Regenerated.
25972         * tests/unictype/test-categ_Sk.c: Regenerated.
25973         * tests/unictype/test-categ_Sm.c: Regenerated.
25974         * tests/unictype/test-categ_So.c: Regenerated.
25975         * tests/unictype/test-ctype_alnum.c: Regenerated.
25976         * tests/unictype/test-ctype_alpha.c: Regenerated.
25977         * tests/unictype/test-ctype_graph.c: Regenerated.
25978         * tests/unictype/test-ctype_lower.c: Regenerated.
25979         * tests/unictype/test-ctype_print.c: Regenerated.
25980         * tests/unictype/test-ctype_punct.c: Regenerated.
25981         * tests/unictype/test-ctype_upper.c: Regenerated.
25982         * tests/unictype/test-decdigit.h: Regenerated.
25983         * tests/unictype/test-digit.h: Regenerated.
25984         * tests/unictype/test-numeric.h: Regenerated.
25985         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25986         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25987         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25988         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25989         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25990         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25991         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25992         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25993         * tests/unictype/test-pr_combining.c: Regenerated.
25994         * tests/unictype/test-pr_dash.c: Regenerated.
25995         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25996         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25997         * tests/unictype/test-pr_deprecated.c: Regenerated.
25998         * tests/unictype/test-pr_diacritic.c: Regenerated.
25999         * tests/unictype/test-pr_extender.c: Regenerated.
26000         * tests/unictype/test-pr_format_control.c: Regenerated.
26001         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26002         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26003         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26004         * tests/unictype/test-pr_id_continue.c: Regenerated.
26005         * tests/unictype/test-pr_id_start.c: Regenerated.
26006         * tests/unictype/test-pr_ideographic.c: Regenerated.
26007         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26008         * tests/unictype/test-pr_lowercase.c: Regenerated.
26009         * tests/unictype/test-pr_math.c: Regenerated.
26010         * tests/unictype/test-pr_numeric.c: Regenerated.
26011         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26012         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26013         Regenerated.
26014         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26015         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26016         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26017         * tests/unictype/test-pr_other_math.c: Regenerated.
26018         * tests/unictype/test-pr_punctuation.c: Regenerated.
26019         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26020         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26021         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26022         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26023         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26024         * tests/unictype/test-pr_uppercase.c: Regenerated.
26025         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26026         * tests/unictype/test-pr_xid_start.c: Regenerated.
26027         * tests/unictype/test-pr_zero_width.c: Regenerated.
26028
26029         Update to Unicode 5.1.0.
26030         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26031         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26032         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26033         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26034         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26035         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26036         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26037         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26038         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26039         (nonspacing_table_ind): Update.
26040         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26041
26042         Update to Unicode 5.1.0.
26043         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26044         code transform.
26045         * lib/uniname/uniname.c (unicode_character_name,
26046         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26047         * lib/uniname/uninames.h: Regenerated.
26048         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26049
26050 2009-02-07  Bruno Haible  <bruno@clisp.org>
26051
26052         Merge gen-ctype and gen-lbrk into a single program.
26053         * lib/gen-uni-tables.c: New file, incorporating
26054         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26055         Add directory prefixes to the names of the generated files.
26056         * lib/unictype/gen-ctype.c: Remove file.
26057         * lib/unilbrk/gen-lbrk.c: Remove file.
26058         * modules/gen-uni-tables: New file.
26059         * modules/unictype/gen-ctype: Remove file.
26060         * modules/unilbrk/gen-lbrk: Remove file.
26061
26062 2009-02-07  Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26065
26066         New module 'unistr/u32-strcoll'.
26067         * modules/unistr/u32-strcoll: New file.
26068         * lib/unistr/u32-strcoll.c: New file.
26069
26070         New module 'unistr/u16-strcoll'.
26071         * modules/unistr/u16-strcoll: New file.
26072         * lib/unistr/u16-strcoll.c: New file.
26073
26074         New module 'unistr/u8-strcoll'.
26075         * modules/unistr/u8-strcoll: New file.
26076         * lib/unistr/u8-strcoll.c: New file.
26077         * lib/unistr/u-strcoll.h: New file.
26078
26079 2009-02-07  Bruno Haible  <bruno@clisp.org>
26080
26081         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26082         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26083         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26084         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26085         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26086         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26087
26088 2009-02-07  Bruno Haible  <bruno@clisp.org>
26089
26090         Make 64-bit clean.
26091         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26092         output_combclass, output_bidi_category, output_decimal_digit,
26093         output_digit, output_numeric, output_mirror, output_scripts,
26094         output_ident_category): Use proper width specifier in format strings.
26095
26096 2009-02-07  Bruno Haible  <bruno@clisp.org>
26097
26098         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26099         failure behaviour.
26100
26101 2009-02-07  Jim Meyering  <meyering@redhat.com>
26102
26103         regex: avoid compilation failure with upcoming gcc-4.4
26104         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26105         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26106         "... error: integer overflow in preprocessor expression".
26107
26108 2009-02-05  Ben Pfaff  <blp@gnu.org>
26109
26110         Fix link errors on Windows when close module is used.
26111         * modules/close: Add $(LIB_CLOSE) to Link section.
26112         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26113         $(LIB_CLOSE) on Windows.
26114
26115 2009-02-05  Jim Meyering  <meyering@redhat.com>
26116
26117         still avoid unused-parameter warnings, but do it cleanly
26118         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26119         (get_fs_usage): Cast to void instead.
26120         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26121         (dev_from_mount_options, read_file_system_list): Cast to void.
26122         Prompted by Bruno Haible.
26123
26124 2009-02-04  Jim Meyering  <meyering@redhat.com>
26125
26126         fsusage.c: correct copyright year
26127         * lib/fsusage.c: Reflect year in which the change is pushed into
26128
26129         avoid misc. warnings
26130         * lib/fsusage.c (UNUSED_PARAM): Define.
26131         (get_fs_usage): Mark parameter "disk" as unused.
26132         * lib/getugroups.c (getgrent): Use "void" in prototype.
26133         * lib/mountlist.c: Mark unused parameters.
26134         (read_file_system_list): Declare a local with "const".
26135         * lib/nanosleep.c (getnow): Declare static.
26136         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26137
26138         dirfd: set errno upon failure
26139         * lib/dirfd.c: Include <errno.h>.
26140         Set errno to ENOTSUP when returning -1.
26141         * modules/dirfd (Depends-on): Add errno.
26142         Suggested by John Kodis <kodis@comcast.net>.
26143
26144 2009-02-01  Bruno Haible  <bruno@clisp.org>
26145
26146         Don't assume sizeof (long) >= sizeof (void *).
26147         * lib/memcmp.c: Include stdint.h.
26148         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26149         srcp2 to 'const byte *'.
26150         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26151         types to uintptr_t.
26152         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26153         * modules/memcmp (Depends-on): Add stdint.
26154         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26155
26156 2009-01-30  Eric Blake  <ebb9@byu.net>
26157
26158         fix more require-before-expand issues
26159         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26160         expand, AC_PROG_AWK.
26161         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26162
26163 2009-01-28  Eric Blake  <ebb9@byu.net>
26164
26165         version-etc: use consistent URL formatting
26166         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26167         Improve formatting.  Use fputs for string without %.
26168
26169 2009-01-28  Jim Meyering  <meyering@redhat.com>
26170
26171         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26172         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26173         "underquoted definition of NAME" from autoconf-2.59.
26174
26175 2009-01-28  Bruno Haible  <bruno@clisp.org>
26176
26177         * doc/gnulib.texi: Add "Obsolete modules" to index.
26178
26179 2009-01-28  Jim Meyering  <meyering@redhat.com>
26180
26181         useless-if-before-free: recognize more variants
26182         * build-aux/useless-if-before-free: Also recognize e.g.,
26183         if (NULL != p) free (p);
26184
26185 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26186
26187         test-getaddrinfo: skip (don't fail) this test when there's no network
26188         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26189         on the presumption that it means you lack network access.
26190
26191 2009-01-26  Jim Meyering  <meyering@redhat.com>
26192
26193         fflush: avoid warnings on modern systems
26194         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26195         pos and result, into scopes where they're used.
26196
26197 2009-01-26  Eric Blake  <ebb9@byu.net>
26198
26199         Silence warning reintroduced by recent extensions patch.
26200         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26201         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26202         autoconf.
26203
26204         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26205         * m4/00gnulib.m4: New file.
26206         * gnulib-tool (func_get_filelist): Always use it.
26207         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26208         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26209
26210 2009-01-25  Bruno Haible  <bruno@clisp.org>
26211
26212         Make test-quotearg work on MacOS X and AIX.
26213         * tests/test-quotearg.sh: New file.
26214         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26215         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26216         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26217         include <libintl.h>.
26218         (fake_locale): Remove variable.
26219         (gettext, dgettext, dcgettext): Remove functions.
26220         (main): Instead of setting a fake locale, set a real locale. Call
26221         textdomain and bindtextdomain.
26222         * modules/quotearg-tests (Files): Add the new files.
26223         (Depends-on): Add gettext, setenv, unsetenv.
26224         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26225         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26226         Augment TESTS_ENVIRONMENT.
26227
26228 2009-01-25  Bruno Haible  <bruno@clisp.org>
26229
26230         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26231         fr_FR.ISO8859-1 locale on MacOS X.
26232         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26233         ja_JP.eucJP locale on MacOS X.
26234         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26235         zh_CN.GB18030 locale on MacOS X.
26236
26237 2009-01-25  Bruno Haible  <bruno@clisp.org>
26238
26239         Avoid link errors on MacOS X 10.3.
26240         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26241         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26242
26243 2009-01-25  Bruno Haible  <bruno@clisp.org>
26244
26245         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26246         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26247         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26248         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26249         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26250         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26251         posix_spawnattr_init, posix_spawnattr_setsigmask,
26252         posix_spawnattr_setflags, posix_spawnattr_destroy.
26253
26254         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26255         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26256         * modules/execute (Files): Remove m4/posix_spawn.m4.
26257         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26258         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26259         posix_spawnattr_init, posix_spawnattr_setsigmask,
26260         posix_spawnattr_setflags, posix_spawnattr_destroy.
26261
26262 2009-01-25  Bruno Haible  <bruno@clisp.org>
26263
26264         * lib/glthread/threadlib.c: Include <stdlib.h>.
26265
26266 2009-01-25  Bruno Haible  <bruno@clisp.org>
26267
26268         * lib/glthread/threadlib.c (dummy): New declaration.
26269
26270 2009-01-25  Bruno Haible  <bruno@clisp.org>
26271
26272         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26273         multibyte characters also for the GB18030 encoding. Don't crash when
26274         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26275
26276 2009-01-25  Bruno Haible  <bruno@clisp.org>
26277
26278         Avoid redefining 'struct random_data' on OSF/1 5.1.
26279         * lib/stdlib.in.h: Include <random.h> if it exists.
26280         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26281         HAVE_RANDOM_H. Include <random.h> when testing whether
26282         'struct random_data' exists.
26283         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26284
26285 2009-01-25  Bruno Haible  <bruno@clisp.org>
26286
26287         Don't install charset.alias on MacOS X >= 10.3.
26288         * lib/localcharset.c (DARWIN7): New macro.
26289         (get_charset_aliases): Hardcode the result for Darwin7.
26290         * modules/localcharset (install-exec-local): Don't install
26291         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26292
26293 2009-01-25  Bruno Haible  <bruno@clisp.org>
26294
26295         Don't install charset.alias on mingw and Cygwin.
26296         * modules/localcharset (install-exec-local): Don't install
26297         charset.alias on mingw and Cygwin, if the file does not yet exist.
26298         The result for these platforms is hardcoded in localcharset.c.
26299
26300 2009-01-25  Bruno Haible  <bruno@clisp.org>
26301
26302         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26303         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26304         before requiring AC_USE_SYSTEM_EXTENSIONS.
26305
26306 2009-01-25  Jim Meyering  <meyering@redhat.com>
26307
26308         c-strtod: avoid warnings
26309         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26310         "assignment discards qualifiers from pointer target type" warnings.
26311
26312 2009-01-24  Bruno Haible  <bruno@clisp.org>
26313
26314         Add support for non-UTF-8 locales on MacOS X.
26315         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26316         canonical encodings. For Darwin 7 and newer, don't map traditional
26317         encodings to UTF-8.
26318         Reported by Vincent Lefevre <vincent@vinc17.org>
26319         at <http://savannah.gnu.org/bugs/?25235>.
26320
26321 2009-01-24  Bruno Haible  <bruno@clisp.org>
26322
26323         * doc/gnulib.texi (Obsolete modules): New section.
26324         Reported by Mike Frysinger <vapier@gentoo.org>.
26325
26326 2009-01-24  Bruno Haible  <bruno@clisp.org>
26327
26328         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26329         (%.dvi): New rule.
26330
26331 2009-01-24  Bruno Haible  <bruno@clisp.org>
26332
26333         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26334         Reported by Eric Blake.
26335
26336 2009-01-24  Bruno Haible  <bruno@clisp.org>
26337
26338         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26339         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26340         Reported by Gary V. Vaughan <gary@gnu.org>.
26341
26342 2009-01-24  Bruno Haible  <bruno@clisp.org>
26343
26344         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26345
26346 2009-01-23  Bruno Haible  <bruno@clisp.org>
26347
26348         Make c-strtod, c-strtold usable in libraries.
26349         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26350         (C_STRTOD): Call strdup instead of xstrdup.
26351         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26352         * modules/c-strtold (Depends-on): Likewise.
26353         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26354         * NEWS: Mention the change.
26355         Reported by Michael Gold <mgold@ncf.ca>.
26356
26357 2009-01-23  Jim Meyering  <meyering@redhat.com>
26358
26359         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26360         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26361         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26362
26363 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26364
26365         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26366         GNU CoreUtils.
26367         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26368         * modules/version-etc (Description): Update.
26369
26370 2009-01-22  Bruno Haible  <bruno@clisp.org>
26371
26372         Cache the C locale object.
26373         * lib/c-strtod.c (c_locale_cache): New variable.
26374         (c_locale): New function.
26375         (C_STRTOD): Use it, and don't call freelocale.
26376         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26377         Suggested by Paolo Bonzini.
26378
26379 2009-01-21  Bruno Haible  <bruno@clisp.org>
26380
26381         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26382         conditions other than overflow.
26383
26384 2009-01-21  Bruno Haible  <bruno@clisp.org>
26385
26386         * lib/c-strtod.c: Include errno.h.
26387         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26388         value from STRTOD_L and STRTOD.
26389
26390 2009-01-21  Bruno Haible  <bruno@clisp.org>
26391         and Jim Meyering  <meyering@redhat.com>
26392
26393         nanosleep: skip configure test (fail it) for apple universal builds
26394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26395         universal builds, assume that nanosleep does not work.
26396         * modules/nanosleep (Depends-on): Add multiarch.
26397
26398         mktime: skip configure test (fail it) for apple universal builds
26399         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26400         universal builds, assume that mktime does not work.
26401         * modules/mktime (Depends-on): Add multiarch.
26402
26403 2009-01-21  Eric Blake  <ebb9@byu.net>
26404
26405         multiarch: avoid expand-before-require warning
26406         * modules/multiarch (configure.ac): Require, rather than expand,
26407         gl_MULTIARCH.
26408         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26409         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26410         enforce that all clients require it.  Partial reversion of
26411         2008-12-29 patch.
26412
26413         error: avoid expand-before-require warning
26414         * modules/errno (configure.ac): Require, rather than expand,
26415         gl_HEADER_ERRNO_H.
26416         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26417         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26418         enforce that all clients require it.
26419
26420         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26421         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26422         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26423         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26424
26425 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26426
26427         Revert:
26428         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26429
26430         regex: do not depend on obsolete modules.
26431         * modules/regex: Remove memcmp and memmove.
26432
26433 2009-01-20  Bruno Haible  <bruno@clisp.org>
26434
26435         Make the 'link' module link on Windows NT 4.
26436         * lib/link.c (_WIN32_WINNT): Don't define.
26437         (CreateHardLinkFuncType): New type.
26438         (CreateHardLinkFunc, initialized): New variables.
26439         (initialize): New function.
26440         (link): Invoke CreateHardLink indirectly through the function pointer.
26441
26442 2009-01-20  Bruno Haible  <bruno@clisp.org>
26443
26444         Fix compilation failure on mingw.
26445         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26446
26447 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26448
26449         * doc/c-strtod.texi: Mention a couple of restrictions.
26450
26451 2009-01-20  Jim Meyering  <meyering@redhat.com>
26452
26453         gettimeofday: move more declarations out of functions
26454         * lib/gettimeofday.c: Move extern declarations of tzset and
26455         gmtime out of containing functions.  Prompted by Bruno Haible.
26456
26457 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26458
26459         regex: do not depend on obsolete modules.
26460         * modules/regex: Remove memcmp and memmove.
26461
26462 2009-01-19  Bruno Haible  <bruno@clisp.org>
26463
26464         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26465         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26466         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26467         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26468         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26469
26470 2009-01-19  Bruno Haible  <bruno@clisp.org>
26471
26472         * tests/test-link.c: Include <errno.h>.
26473         (main): Exit with code 77 when a hard link cannot be created due to
26474         the file system.
26475         * tests/test-link.sh: Skip test when a hard link cannot be created due
26476         to the file system.
26477         Suggested by Eric Blake.
26478
26479 2009-01-19  Martin Lambers  <marlam@marlam.de>
26480
26481         * modules/link-tests: New file.
26482         * tests/test-link.sh: New file.
26483         * tests/test-link.c: New file.
26484
26485 2009-01-19  Eric Blake  <ebb9@byu.net>
26486
26487         doc: mention another function added in cygwin 1.7.0
26488         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26489         Another new function in cygwin 1.7.
26490
26491 2009-01-19  Bruno Haible  <bruno@clisp.org>
26492
26493         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26494         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26495         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26496         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26497         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26498         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26499         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26500         * m4/md4.m4 (gl_MD4): Likewise.
26501         * m4/md5.m4 (gl_MD5): Likewise.
26502         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26503         * m4/sha1.m4 (gl_SHA1): Likewise.
26504         * m4/sha256.m4 (gl_SHA256): Likewise.
26505         * m4/sha512.m4 (gl_SHA512): Likewise.
26506
26507 2009-01-19  Bruno Haible  <bruno@clisp.org>
26508
26509         * modules/uniname/uniname-tests (Depends-on): Add progname.
26510         * tests/uniname/test-uninames.c: Include progname.h.
26511         (main): Call set_program_name.
26512
26513         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26514         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26515         (main): Call set_program_name.
26516
26517         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26518         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26519         (main): Call set_program_name.
26520
26521         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26522         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26523         (main): Call set_program_name.
26524
26525         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26526         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26527         (main): Call set_program_name.
26528
26529         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26530         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26531         (main): Call set_program_name.
26532
26533         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26534         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26535         (main): Call set_program_name.
26536
26537         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26538         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26539         (main): Call set_program_name.
26540
26541         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26542         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26543         (main): Call set_program_name.
26544
26545 2009-01-19  Eric Blake  <ebb9@byu.net>
26546
26547         test-unistd: test previous patch
26548         * tests/test-unistd.c: Test *_FILENO macros.
26549
26550         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26551         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26552         Guarantee a definition.
26553         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26554         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26555         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26556         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26557         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26558         Likewise.
26559         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26560         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26561         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26562         Likewise.
26563         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26564         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26565         (STDERR_FILENO): Likewise.
26566         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26567         (STDERR_FILENO): Likewise.
26568         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26569         (STDERR_FILENO): Likewise.
26570         Reported by Elbert Pol.
26571
26572 2009-01-19  Eric Blake  <ebb9@byu.net>
26573
26574         doc: mention more functions added in cygwin 1.7.0
26575         * doc/posix-functions/abort.texi (abort): Update wording related
26576         to cygwin.
26577         * doc/posix-functions/daylight.texi (daylight): Likewise.
26578         * doc/posix-functions/optarg.texi (optarg): Likewise.
26579         * doc/posix-functions/optarg.texi (opterr): Likewise.
26580         * doc/posix-functions/optarg.texi (optind): Likewise.
26581         * doc/posix-functions/optarg.texi (optopt): Likewise.
26582         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26583         worked in 1.5.x, and was withdrawn in 1.7.
26584         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26585         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26586         cygwin versions.
26587         * doc/posix-functions/perror.texi (perror): Likewise.
26588         * doc/posix-functions/printf.texi (printf): Likewise.
26589         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26590         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26591         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26592         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26593         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26594         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26595         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26596         Likewise.
26597         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26598         Likewise.
26599         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26600         this function.
26601         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26602         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26603         Likewise.
26604         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26605         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26606         * doc/posix-functions/confstr.texi (confstr): Likewise.
26607         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26608         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26609         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26610         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26611         * doc/posix-functions/fputws.texi (fputws): Likewise.
26612         * doc/posix-functions/fwide.texi (fwide): Likewise.
26613         * doc/posix-functions/getwc.texi (getwc): Likewise.
26614         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26615         * doc/posix-functions/putwc.texi (putwc): Likewise.
26616         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26617         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26618         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26619         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26620         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26621         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26622         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26623         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26624         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26625         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26626         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26627
26628 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26629
26630         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26631         * lib/ioctl.c: Include <sys/ioctl.h>.
26632
26633 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26634
26635         * modules/getdate-tests (Depends-on): Add progname.
26636         * tests/test-getdate.c: Use progname module, to avoid link errors
26637         on non-glibc systems.
26638
26639 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26640
26641         * modules/filenamecat-tests (Depends-on): Add progname.
26642         * modules/fstrcmp-tests (Depends-on): Likewise.
26643
26644         * tests/test-filenamecat.c: Use progname module, to avoid link
26645         errors on non-glibc systems.
26646         * tests/test-fstrcmp.c: Likewise.
26647
26648 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26649
26650         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26651         * lib/gettimeofday.c: Move extern declaration out of function.
26652
26653 2009-01-18  Bruno Haible  <bruno@clisp.org>
26654
26655         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26656         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26657         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26658
26659 2009-01-18  Bruno Haible  <bruno@clisp.org>
26660
26661         * lib/strftime.c (MEMPCPY): Remove unused macro.
26662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26663
26664 2009-01-18  Martin Lambers  <marlam@marlam.de>
26665
26666         New module 'link'.
26667         * lib/unistd.in.h (link): New declaration.
26668         * lib/link.c: New file.
26669         * m4/link.m4: New file.
26670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26671         HAVE_LINK.
26672         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26673         * modules/link: New file.
26674         * doc/posix-functions/link.texi: Mention the new module.
26675
26676 2009-01-18  Bruno Haible  <bruno@clisp.org>
26677
26678         * tests/test-avltree_list.c (main): Call set_program_name.
26679         * tests/test-avltree_oset.c (main): Likewise.
26680         * tests/test-obstack-printf.c: Include progname.h.
26681         (main): Call set_program_name.
26682         * tests/test-quotearg.c: Include progname.h.
26683         (main): Call set_program_name.
26684         * tests/test-xmemdup0.c: Include progname.h.
26685         (main): Call set_program_name.
26686
26687 2009-01-18  Bruno Haible  <bruno@clisp.org>
26688
26689         New module 'alphasort'.
26690         * lib/dirent.in.h (alphasort): New declaration.
26691         * lib/alphasort.c: New file, from glibc with modifications.
26692         * m4/alphasort.m4: New file.
26693         * modules/alphasort: New file.
26694         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26695         HAVE_ALPHASORT.
26696         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26697         HAVE_ALPHASORT.
26698         * doc/posix-functions/alphasort.texi: Mention the new module and the
26699         portability problems.
26700
26701 2009-01-18  Bruno Haible  <bruno@clisp.org>
26702
26703         New module 'scandir'.
26704         * lib/dirent.in.h (scandir): New declaration.
26705         * lib/scandir.c: New file, from glibc with modifications.
26706         * m4/scandir.m4: New file.
26707         * modules/scandir: New file.
26708         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26709         HAVE_SCANDIR.
26710         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26711         HAVE_SCANDIR.
26712         * doc/posix-functions/scandir.texi: Mention the new module and the
26713         portability problems.
26714
26715 2009-01-17  Bruno Haible  <bruno@clisp.org>
26716
26717         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26718         Update documentation.
26719         (func_remove_suffix): Escape all dots in the suffix. Update
26720         documentation.
26721         (func_filter_filelist): Update documentation.
26722         Reported by Ralf Wildenhues.
26723
26724 2009-01-17  Bruno Haible  <bruno@clisp.org>
26725
26726         * modules/dprintf-posix-tests: New file.
26727         * tests/test-dprintf-posix.sh: New file.
26728         * tests/test-dprintf-posix.c: New file.
26729
26730         New modules 'dprintf', 'dprintf-posix'.
26731         * lib/stdio.in.h (dprintf): New declaration.
26732         * lib/dprintf.c: New file.
26733         * m4/dprintf.m4: New file.
26734         * m4/dprintf-posix.m4: New file.
26735         * modules/dprintf: New file.
26736         * modules/dprintf-posix: New file.
26737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26738         HAVE_DPRINTF, REPLACE_DPRINTF.
26739         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26740         HAVE_DPRINTF, REPLACE_DPRINTF.
26741         * doc/posix-functions/dprintf.texi: Mention the new modules.
26742
26743 2009-01-17  Bruno Haible  <bruno@clisp.org>
26744
26745         * modules/vdprintf-posix-tests: New file.
26746         * tests/test-vdprintf-posix.sh: New file.
26747         * tests/test-vdprintf-posix.c: New file.
26748
26749         New modules 'vdprintf', 'vdprintf-posix'.
26750         * lib/stdio.in.h (vdprintf): New declaration.
26751         * lib/vdprintf.c: New file.
26752         * m4/vdprintf.m4: New file.
26753         * m4/vdprintf-posix.m4: New file.
26754         * modules/vdprintf: New file.
26755         * modules/vdprintf-posix: New file.
26756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26757         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26758         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26759         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26760         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26761
26762 2009-01-17  Bruno Haible  <bruno@clisp.org>
26763
26764         Fix replacement of fopen on mingw.
26765         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26766         mingw.
26767
26768 2009-01-17  Bruno Haible  <bruno@clisp.org>
26769
26770         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26771         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26772
26773 2009-01-17  Bruno Haible  <bruno@clisp.org>
26774
26775         Avoid test-fflush2.sh failure on mingw.
26776         * tests/test-fflush2.c: Include binary-io.h.
26777         (main): Put standard input into binary mode.
26778         * modules/fflush-tests (Depends-on): Add binary-io.
26779
26780 2009-01-17  Bruno Haible  <bruno@clisp.org>
26781
26782         * lib/wchar.in.h: In another particular situation, include only the
26783         system's <wchar.h> file.
26784         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26785         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26786         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26787
26788 2009-01-17  Bruno Haible  <bruno@clisp.org>
26789
26790         Support for stripping executables in --enable-relocatable.
26791         * build-aux/install-reloc: Expect one more argument, or an environment
26792         variable RELOC_STRIP_PROG. If set, strip the destination program and
26793         its wrapper.
26794         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26795         RELOC_STRIP_PROG.
26796         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26797         to set RELOCATABLE_STRIP.
26798         * NEWS: Mention the new Makefile requirement.
26799
26800 2009-01-17  Bruno Haible  <bruno@clisp.org>
26801
26802         * build-aux/install-reloc: Remove debugging information left over by
26803         C compiler on MacOS X.
26804
26805 2009-01-17  Bruno Haible  <bruno@clisp.org>
26806
26807         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26808         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26809         _NSGetExecutablePath.
26810
26811 2009-01-16  Jim Meyering  <meyering@redhat.com>
26812
26813         strerror: avoid warnings about discarding "const"
26814         * lib/strerror.c (rpl_strerror): Instead of returning a const
26815         string from each and every "case", use a variable, and add a single
26816         cast after the switch.
26817
26818 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26819
26820         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26821
26822 2009-01-16  Bruno Haible  <bruno@clisp.org>
26823
26824         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26825         array initializer syntax that also works in C++ mode.
26826         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26827
26828 2009-01-16  Jim Meyering  <meyering@redhat.com>
26829
26830         poll: suppress a warning
26831         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26832         to ignore "...unsigned expression < 0 is always false" warnings.
26833
26834 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26835
26836         poll: remove declarations of unused variables
26837         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26838         sockbuf and optlen.
26839
26840 2009-01-15  Bruno Haible  <bruno@clisp.org>
26841
26842         Make fflush-after-ungetc POSIX compliant on BSD systems.
26843         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26844         (clear_ungetc_buffer): Implement also for other systems.
26845         (rpl_fflush): On glibc systems, invoke
26846         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26847         clear_ungetc_buffer after fetching the stream's position, not before.
26848
26849 2009-01-15  Bruno Haible  <bruno@clisp.org>
26850
26851         Make fflush-after-ungetc POSIX compliant on glibc systems.
26852         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26853         after ungetc.
26854         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26855         (rpl_fflush): On glibc systems, simply call the system's fflush
26856         function after clearing the ungetc buffer.
26857         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26858         Instead, lseek only to the end of file, then use the system's fseeko
26859         for the rest. On glibc systems, reset the EOF indicator bit.
26860
26861 2009-01-15  Jim Meyering  <meyering@redhat.com>
26862
26863         openmp.m4: revert quote-adding change, for portability to older autoconf
26864         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26865         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26866         Simon Josefsson noticed the problem when using autoconf-2.61.
26867
26868 2009-01-15  Bruno Haible  <bruno@clisp.org>
26869
26870         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26871         * tests/test-fflush2.c (ASSERT): Always fail.
26872         (main): Add two tests for fflush() after ungetc(), taking into account
26873         the Austin Group's clarification.
26874         Suggested by Eric Blake.
26875
26876 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26877
26878         mktime.m4: remove K&R-style function prototypes
26879         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26880         for the Sun C++ compiler.
26881
26882 2009-01-14  Bruno Haible  <bruno@clisp.org>
26883
26884         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26885         while including <wchar.h>.
26886         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26887         the system's <wchar.h> file.
26888         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26889
26890 2009-01-14  Bruno Haible  <bruno@clisp.org>
26891
26892         * m4/csharp.m4: Don't mention gettext on the serial number line.
26893         * m4/csharpexec.m4: Likewise.
26894         * m4/eaccess.m4: Likewise.
26895         * m4/javaexec.m4: Likewise.
26896         * m4/sig_atomic_t.m4: Likewise.
26897         * m4/tmpdir.m4: Likewise.
26898         * m4/intldir.m4: Bump gettext version.
26899         * m4/lib-ld.m4: Likewise.
26900
26901 2009-01-14  Bruno Haible  <bruno@clisp.org>
26902
26903         * lib/progname.c (set_program_name): Add more comments.
26904         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26905
26906 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26907
26908         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26909         were sys/stat.h does not define it.
26910
26911 2009-01-14  Jim Meyering  <meyering@redhat.com>
26912
26913         many *.m4 files: improve m4 quoting
26914         99% of this change was performed by running the following commands:
26915         git ls-files | grep '\.m4$' | xargs perl -pi \
26916           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26917           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26918           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26919           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26920         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26921         The remainder were to add Copyright dates, increment serial numbers,
26922         undo some changes in comments, exclude m4/intl.m4, and add quotes
26923         around the "1" in ",1" where the unusual spacing prohibited the
26924         above regexps from doing the job.  For more details, see
26925         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26926         * m4/acl.m4: Modified.
26927         * m4/afs.m4: Likewise.
26928         * m4/alloca.m4: Likewise.
26929         * m4/argp.m4: Likewise.
26930         * m4/argz.m4: Likewise.
26931         * m4/atexit.m4: Likewise.
26932         * m4/bison-i18n.m4: Likewise.
26933         * m4/bison.m4: Likewise.
26934         * m4/byteswap.m4: Likewise.
26935         * m4/c-stack.m4: Likewise.
26936         * m4/c-strtod.m4: Likewise.
26937         * m4/calloc.m4: Likewise.
26938         * m4/canonicalize-lgpl.m4: Likewise.
26939         * m4/chown.m4: Likewise.
26940         * m4/clock_time.m4: Likewise.
26941         * m4/codeset.m4: Likewise.
26942         * m4/copy-file.m4: Likewise.
26943         * m4/csharp.m4: Likewise.
26944         * m4/csharpcomp.m4: Likewise.
26945         * m4/csharpexec.m4: Likewise.
26946         * m4/d-ino.m4: Likewise.
26947         * m4/d-type.m4: Likewise.
26948         * m4/dirfd.m4: Likewise.
26949         * m4/double-slash-root.m4: Likewise.
26950         * m4/eaccess.m4: Likewise.
26951         * m4/eealloc.m4: Likewise.
26952         * m4/environ.m4: Likewise.
26953         * m4/errno_h.m4: Likewise.
26954         * m4/euidaccess.m4: Likewise.
26955         * m4/execute.m4: Likewise.
26956         * m4/fatal-signal.m4: Likewise.
26957         * m4/fchdir.m4: Likewise.
26958         * m4/fcntl_h.m4: Likewise.
26959         * m4/fileblocks.m4: Likewise.
26960         * m4/filenamecat.m4: Likewise.
26961         * m4/findprog.m4: Likewise.
26962         * m4/flexmember.m4: Likewise.
26963         * m4/fnmatch.m4: Likewise.
26964         * m4/fopen.m4: Likewise.
26965         * m4/fpending.m4: Likewise.
26966         * m4/fprintf-posix.m4: Likewise.
26967         * m4/free.m4: Likewise.
26968         * m4/frexp.m4: Likewise.
26969         * m4/frexpl.m4: Likewise.
26970         * m4/fsusage.m4: Likewise.
26971         * m4/ftruncate.m4: Likewise.
26972         * m4/gc-camellia.m4: Likewise.
26973         * m4/gc-random.m4: Likewise.
26974         * m4/gc.m4: Likewise.
26975         * m4/getaddrinfo.m4: Likewise.
26976         * m4/getcwd-abort-bug.m4: Likewise.
26977         * m4/getcwd-path-max.m4: Likewise.
26978         * m4/getdate.m4: Likewise.
26979         * m4/getdomainname.m4: Likewise.
26980         * m4/getgroups.m4: Likewise.
26981         * m4/gethostname.m4: Likewise.
26982         * m4/gethrxtime.m4: Likewise.
26983         * m4/getline.m4: Likewise.
26984         * m4/getloadavg.m4: Likewise.
26985         * m4/getndelim2.m4: Likewise.
26986         * m4/getpass.m4: Likewise.
26987         * m4/gettext.m4: Likewise.
26988         * m4/gettime.m4: Likewise.
26989         * m4/gettimeofday.m4: Likewise.
26990         * m4/gnulib-common.m4: Likewise.
26991         * m4/group-member.m4: Likewise.
26992         * m4/host-os.m4: Likewise.
26993         * m4/iconv.m4: Likewise.
26994         * m4/iconv_open.m4: Likewise.
26995         * m4/inet_ntop.m4: Likewise.
26996         * m4/inet_pton.m4: Likewise.
26997         * m4/inline.m4: Likewise.
26998         * m4/intldir.m4: Likewise.
26999         * m4/intlmacosx.m4: Likewise.
27000         * m4/intmax.m4: Likewise.
27001         * m4/intmax_t.m4: Likewise.
27002         * m4/inttypes.m4: Likewise.
27003         * m4/inttypes_h.m4: Likewise.
27004         * m4/inttypes-pri.m4: Likewise.
27005         * m4/isapipe.m4: Likewise.
27006         * m4/isnand.m4: Likewise.
27007         * m4/isnanf.m4: Likewise.
27008         * m4/isnanl.m4: Likewise.
27009         * m4/javacomp.m4: Likewise.
27010         * m4/javaexec.m4: Likewise.
27011         * m4/jm-winsz1.m4: Likewise.
27012         * m4/jm-winsz2.m4: Likewise.
27013         * m4/lchown.m4: Likewise.
27014         * m4/lcmessage.m4: Likewise.
27015         * m4/ldexpl.m4: Likewise.
27016         * m4/lib-ld.m4: Likewise.
27017         * m4/lib-link.m4: Likewise.
27018         * m4/libsigsegv.m4: Likewise.
27019         * m4/link-follow.m4: Likewise.
27020         * m4/localcharset.m4: Likewise.
27021         * m4/locale-fr.m4: Likewise.
27022         * m4/locale-ja.m4: Likewise.
27023         * m4/locale-tr.m4: Likewise.
27024         * m4/locale-zh.m4: Likewise.
27025         * m4/lock.m4: Likewise.
27026         * m4/longlong.m4: Likewise.
27027         * m4/ls-mntd-fs.m4: Likewise.
27028         * m4/lstat.m4: Likewise.
27029         * m4/malloc.m4: Likewise.
27030         * m4/mathl.m4: Likewise.
27031         * m4/mbrtowc.m4: Likewise.
27032         * m4/mbstate_t.m4: Likewise.
27033         * m4/mbswidth.m4: Likewise.
27034         * m4/memchr.m4: Likewise.
27035         * m4/memcmp.m4: Likewise.
27036         * m4/memcpy.m4: Likewise.
27037         * m4/memmem.m4: Likewise.
27038         * m4/memmove.m4: Likewise.
27039         * m4/mempcpy.m4: Likewise.
27040         * m4/memrchr.m4: Likewise.
27041         * m4/memset.m4: Likewise.
27042         * m4/minmax.m4: Likewise.
27043         * m4/mkdir-slash.m4: Likewise.
27044         * m4/mkdtemp.m4: Likewise.
27045         * m4/mktime.m4: Likewise.
27046         * m4/mmap-anon.m4: Likewise.
27047         * m4/mountlist.m4: Likewise.
27048         * m4/nanosleep.m4: Likewise.
27049         * m4/nls.m4: Likewise.
27050         * m4/nocrash.m4: Likewise.
27051         * m4/open.m4: Likewise.
27052         * m4/openat.m4: Likewise.
27053         * m4/openmp.m4: Likewise.
27054         * m4/pathmax.m4: Likewise.
27055         * m4/perl.m4: Likewise.
27056         * m4/physmem.m4: Likewise.
27057         * m4/pipe.m4: Likewise.
27058         * m4/po.m4: Likewise.
27059         * m4/poll.m4: Likewise.
27060         * m4/posixtm.m4: Likewise.
27061         * m4/posixver.m4: Likewise.
27062         * m4/printf-frexp.m4: Likewise.
27063         * m4/printf-frexpl.m4: Likewise.
27064         * m4/printf-posix.m4: Likewise.
27065         * m4/printf-posix-rpl.m4: Likewise.
27066         * m4/printf.m4: Likewise.
27067         * m4/progtest.m4: Likewise.
27068         * m4/putenv.m4: Likewise.
27069         * m4/readline.m4: Likewise.
27070         * m4/readlink.m4: Likewise.
27071         * m4/readutmp.m4: Likewise.
27072         * m4/realloc.m4: Likewise.
27073         * m4/regex.m4: Likewise.
27074         * m4/relocatable.m4: Likewise.
27075         * m4/relocatable-lib.m4: Likewise.
27076         * m4/rename-dest-slash.m4: Likewise.
27077         * m4/rename.m4: Likewise.
27078         * m4/rmdir-errno.m4: Likewise.
27079         * m4/rmdir.m4: Likewise.
27080         * m4/roundf.m4: Likewise.
27081         * m4/roundl.m4: Likewise.
27082         * m4/rpmatch.m4: Likewise.
27083         * m4/save-cwd.m4: Likewise.
27084         * m4/selinux-selinux-h.m4: Likewise.
27085         * m4/setenv.m4: Likewise.
27086         * m4/settime.m4: Likewise.
27087         * m4/sig2str.m4: Likewise.
27088         * m4/sig_atomic_t.m4: Likewise.
27089         * m4/signalblocking.m4: Likewise.
27090         * m4/signbit.m4: Likewise.
27091         * m4/sigpipe.m4: Likewise.
27092         * m4/sockets.m4: Likewise.
27093         * m4/sockpfaf.m4: Likewise.
27094         * m4/st_dm_mode.m4: Likewise.
27095         * m4/stat-time.m4: Likewise.
27096         * m4/stdbool.m4: Likewise.
27097         * m4/stdint.m4: Likewise.
27098         * m4/stdint_h.m4: Likewise.
27099         * m4/stpcpy.m4: Likewise.
27100         * m4/stpncpy.m4: Likewise.
27101         * m4/strcase.m4: Likewise.
27102         * m4/strchrnul.m4: Likewise.
27103         * m4/strcspn.m4: Likewise.
27104         * m4/strdup.m4: Likewise.
27105         * m4/strftime.m4: Likewise.
27106         * m4/strndup.m4: Likewise.
27107         * m4/strnlen.m4: Likewise.
27108         * m4/strpbrk.m4: Likewise.
27109         * m4/strptime.m4: Likewise.
27110         * m4/strsep.m4: Likewise.
27111         * m4/strtod.m4: Likewise.
27112         * m4/strtoimax.m4: Likewise.
27113         * m4/strtok_r.m4: Likewise.
27114         * m4/strtol.m4: Likewise.
27115         * m4/strtoll.m4: Likewise.
27116         * m4/strtoul.m4: Likewise.
27117         * m4/strtoull.m4: Likewise.
27118         * m4/strtoumax.m4: Likewise.
27119         * m4/strverscmp.m4: Likewise.
27120         * m4/threadlib.m4: Likewise.
27121         * m4/timegm.m4: Likewise.
27122         * m4/tm_gmtoff.m4: Likewise.
27123         * m4/tmpdir.m4: Likewise.
27124         * m4/tmpfile.m4: Likewise.
27125         * m4/tzset.m4: Likewise.
27126         * m4/uintmax_t.m4: Likewise.
27127         * m4/unlinkdir.m4: Likewise.
27128         * m4/unlocked-io.m4: Likewise.
27129         * m4/uptime.m4: Likewise.
27130         * m4/userspec.m4: Likewise.
27131         * m4/utimbuf.m4: Likewise.
27132         * m4/utime.m4: Likewise.
27133         * m4/utimes-null.m4: Likewise.
27134         * m4/utimes.m4: Likewise.
27135         * m4/vararrays.m4: Likewise.
27136         * m4/vasnprintf.m4: Likewise.
27137         * m4/vfprintf-posix.m4: Likewise.
27138         * m4/vprintf-posix.m4: Likewise.
27139         * m4/wait-process.m4: Likewise.
27140         * m4/wchar_t.m4: Likewise.
27141         * m4/wint_t.m4: Likewise.
27142         * m4/write-any-file.m4: Likewise.
27143         * m4/yield.m4: Likewise.
27144
27145 2009-01-13  Bruno Haible  <bruno@clisp.org>
27146
27147         Avoid test-copy-file.sh failures when ACL support insufficient.
27148         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27149         TESTS_ENVIRONMENT.
27150         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27151         Reported by Jim Meyering.
27152
27153 2009-01-13  Bruno Haible  <bruno@clisp.org>
27154
27155         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27156         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27157         * modules/unistdio/u8-printf-parse (Files): Likewise.
27158         * modules/unistdio/u32-printf-parse (Files): Likewise.
27159         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27160
27161 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27162
27163         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27164         and m4/inttypes_h.m4 too.
27165
27166 2009-01-12  Eric Blake  <ebb9@byu.net>
27167
27168         tests: IRIX 6.2 cc can't compile -0.0 into .data
27169         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27170         rather than at compile-time.
27171         * tests/test-floorl.c (minus_zero): Likewise.
27172         * tests/test-frexpl.c (minus_zero): Likewise.
27173         * tests/test-isnan.c (minus_zerol): Likewise.
27174         * tests/test-isnanl.h (minus_zero): Likewise.
27175         * tests/test-ldexpl.c (minus_zero): Likewise.
27176         * tests/test-roundl.c (minus_zero): Likewise.
27177         * tests/test-signbit.c (minus_zerol): Likewise.
27178         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27179         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27180         * tests/test-truncl.c (minus_zero): Likewise.
27181         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27182         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27183         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27184
27185 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27186
27187         regex: fix glibc bug 9697
27188         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27189         handling.
27190
27191 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27192
27193         regex: fix glibc bug 697
27194         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27195         being NULL also if there are no backreferences.
27196
27197 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27198
27199         regex: merge glibc changes
27200         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27201         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27202         re_string_skip_chars, re_string_reconstruct): Likewise.
27203         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27204
27205 2009-01-07  Jim Meyering  <meyering@redhat.com>
27206
27207         poll: filter through cppi
27208         * lib/poll.c: Indent cpp directives to reflect nesting.
27209
27210 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27211
27212         poll: don't return uninitialized
27213         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27214
27215 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27216
27217         avoid compile failure on AIX 6.1
27218         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27219         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27220
27221 2009-01-04  Jim Meyering  <meyering@redhat.com>
27222
27223         remove duplicate inclusion of <stdio.h>
27224         * tests/test-fprintf-posix.c: Likewise.
27225         * tests/test-printf-posix.c: Likewise.
27226         * tests/test-snprintf-posix.c: Likewise.
27227         * tests/test-sprintf-posix.c: Likewise.
27228         * tests/test-vasprintf-posix.c: Likewise.
27229         * tests/test-vfprintf-posix.c: Likewise.
27230         * tests/test-vprintf-posix.c: Likewise.
27231         * tests/test-vsnprintf-posix.c: Likewise.
27232         * tests/test-vsprintf-posix.c: Likewise.
27233
27234 2009-01-03  Jim Meyering  <meyering@redhat.com>
27235
27236         gnulib-tool: fix sed-based filtering
27237         * gnulib-tool (func_filter_filelist): Remove extra backslash
27238         in sed_fff_filter definition.
27239
27240 2009-01-02  Jim Meyering  <meyering@redhat.com>
27241
27242         strftime: avoid compilation failure on Solaris 2.6
27243         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27244         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27245         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27246         be available.  Reported by Tom G. Christensen.  Details in
27247         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27248
27249 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27250             Bruno Haible  <bruno@clisp.org>
27251
27252         Speed up gnulib-tool by doing more string processing through shell
27253         built-ins.
27254         * gnulib-tool (fast_func_append): New variable.
27255         (func_remove_prefix, func_remove_suffix): New functions.
27256         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27257         (func_filter_filelist): New function.
27258         (func_get_dependencies): Use func_remove_suffix instead of sed.
27259         (func_get_automake_snippet): Use func_filter_filelist instead of a
27260         subshell and sed invocation.
27261
27262 2009-01-01  Bruno Haible  <bruno@clisp.org>
27263
27264         Fix a security bug.
27265         * gnulib-tool (func_import, import, update): Don't allow the characters
27266         '"', '$', '`', '\' in macro arguments that become part of commands that
27267         are evaluated.
27268
27269 2009-01-01  Bruno Haible  <bruno@clisp.org>
27270
27271         * gnulib-tool (func_reset_sigpipe): Add more comments.
27272
27273 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27274
27275         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27276         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27277         already know the answer.
27278
27279 2009-01-01  Jim Meyering  <meyering@redhat.com>
27280
27281         * lib/version-etc.c (version_etc_va): Update copyright year.
27282
27283 2008-12-30  Bruno Haible  <bruno@clisp.org>
27284
27285         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27286         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27287         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27288
27289 2008-12-29  Eric Blake  <ebb9@byu.net>
27290
27291         multiarch: avoid autoconf AC_REQUIRE bug
27292         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27293         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27294         2.63 and older.
27295         Reported by Bruno Haible, and analyzed in
27296         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27297
27298 2008-12-29  Bruno Haible  <bruno@clisp.org>
27299
27300         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27301         files in subdirectories correctly.
27302         Reported by Ralf Wildenhues.
27303
27304 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27305
27306         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27307         rather than 'join FILE -', for Solaris join.
27308
27309 2008-12-29  Bruno Haible  <bruno@clisp.org>
27310
27311         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27312         quoting.
27313         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27314         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27315         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27316         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27317         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27318         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27319         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27320         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27321         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27322         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27323         * m4/nls.m4 (AM_NLS): Likewise.
27324         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27325         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27326         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27327         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27328         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27329         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27330         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27331         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27332         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27333         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27334         * m4/xsize.m4 (gl_XSIZE): Likewise.
27335         Suggested by Jim Meyering.
27336
27337 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27338
27339         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27340         * lib/parse-duration.c: use a switch instead of cascading if's.
27341
27342 2008-12-29  Eric Blake  <ebb9@byu.net>
27343
27344         wchar.h: supply WEOF on Irix 5.3
27345         * lib/wchar.in.h (wint_t): Also supply WEOF.
27346         * lib/wctype.in.h (wint_t): Likewise.
27347         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27348         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27349         Reported by Tom G. Christensen.
27350
27351 2008-12-26  Bruno Haible  <bruno@clisp.org>
27352
27353         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27354         i486, i586, i686.
27355
27356 2008-12-26  Bruno Haible  <bruno@clisp.org>
27357
27358         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27359
27360 2008-12-26  Bruno Haible  <bruno@clisp.org>
27361
27362         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27363         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27364         not __STDC_CONSTANT_MACROS.
27365         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27366
27367 2008-12-25  Bruno Haible  <bruno@clisp.org>
27368
27369         Add support for universal builds to vasnprintf.
27370         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27371         universal builds, guess no.
27372         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27373         * modules/vasprintf-posix (Depends-on): Likewise.
27374         * modules/fprintf-posix (Depends-on): Likewise.
27375         * modules/vfprintf-posix (Depends-on): Likewise.
27376         * modules/snprintf-posix (Depends-on): Likewise.
27377         * modules/vsnprintf-posix (Depends-on): Likewise.
27378         * modules/sprintf-posix (Depends-on): Likewise.
27379         * modules/vsprintf-posix (Depends-on): Likewise.
27380         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27381         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27382         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27383         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27384         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27385         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27386         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27387
27388         Add support for universal builds to <inttypes.h>.
27389         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27390         _SCNu64_PREFIX): In Apple
27391         universal builds, define directly, using _LP64.
27392         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27393         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27394         * modules/inttypes (Depends-on): Add multiarch.
27395         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27396
27397         Add support for universal builds to <stdint.h>.
27398         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27399         universal builds, define directly, using _LP64.
27400         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27401         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27402         and size_t.
27403         * modules/stdint (Depends-on): Add multiarch.
27404         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27405
27406         New module 'multiarch'.
27407         * modules/multiarch: New file.
27408         * m4/multiarch.m4: New file.
27409
27410 2008-12-25  Bruno Haible  <bruno@clisp.org>
27411
27412         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27413
27414 2008-12-25  Bruno Haible  <bruno@clisp.org>
27415
27416         * modules/btowc (License): Relicense under LGPLv2+.
27417         * modules/mbsinit (License): Likewise.
27418         * modules/mbrtowc (License): Likewise.
27419         * modules/wcrtomb (License): Likewise.
27420         * modules/streq (License): Likewise.
27421         Reported by David Lutterkort <lutter@redhat.com>.
27422
27423 2008-12-23  Bruno Haible  <bruno@clisp.org>
27424
27425         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27426
27427 2008-12-23  Bruno Haible  <bruno@clisp.org>
27428
27429         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27431         GETADDRINFO_LIB, not in LIBS.
27432         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27433         * modules/canon-host (Link): Likewise.
27434         * NEWS: Mention the change.
27435         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27436         GETADDRINFO_LIB.
27437
27438 2008-12-22  Bruno Haible  <bruno@clisp.org>
27439
27440         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27441         * doc/posix-functions/iswalpha_l.texi: Likewise.
27442         * doc/posix-functions/iswblank_l.texi: Likewise.
27443         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27444         * doc/posix-functions/iswctype_l.texi: Likewise.
27445         * doc/posix-functions/iswdigit_l.texi: Likewise.
27446         * doc/posix-functions/iswgraph_l.texi: Likewise.
27447         * doc/posix-functions/iswlower_l.texi: Likewise.
27448         * doc/posix-functions/iswprint_l.texi: Likewise.
27449         * doc/posix-functions/iswpunct_l.texi: Likewise.
27450         * doc/posix-functions/iswspace_l.texi: Likewise.
27451         * doc/posix-functions/iswupper_l.texi: Likewise.
27452         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27453         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27454         * doc/posix-functions/open_wmemstream.texi: Likewise.
27455         * doc/posix-functions/swscanf.texi: Likewise.
27456         * doc/posix-functions/towctrans_l.texi: Likewise.
27457         * doc/posix-functions/towlower.texi: Likewise.
27458         * doc/posix-functions/towlower_l.texi: Likewise.
27459         * doc/posix-functions/towupper.texi: Likewise.
27460         * doc/posix-functions/towupper_l.texi: Likewise.
27461         * doc/posix-functions/vfwprintf.texi: Likewise.
27462         * doc/posix-functions/vfwscanf.texi: Likewise.
27463         * doc/posix-functions/vswscanf.texi: Likewise.
27464         * doc/posix-functions/vwprintf.texi: Likewise.
27465         * doc/posix-functions/vwscanf.texi: Likewise.
27466         * doc/posix-functions/wcpcpy.texi: Likewise.
27467         * doc/posix-functions/wcpncpy.texi: Likewise.
27468         * doc/posix-functions/wcscasecmp.texi: Likewise.
27469         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27470         * doc/posix-functions/wcscoll_l.texi: Likewise.
27471         * doc/posix-functions/wcsdup.texi: Likewise.
27472         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27473         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27474         * doc/posix-functions/wcsnlen.texi: Likewise.
27475         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27476         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27477         * doc/posix-functions/wctrans_l.texi: Likewise.
27478         * doc/posix-functions/wctype_l.texi: Likewise.
27479         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27480         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27481         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27482         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27483         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27484         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27485         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27486         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27487         * doc/glibc-functions/wcschrnul.texi: Likewise.
27488         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27489         * doc/glibc-functions/wcstod_l.texi: Likewise.
27490         * doc/glibc-functions/wcstof_l.texi: Likewise.
27491         * doc/glibc-functions/wcstol_l.texi: Likewise.
27492         * doc/glibc-functions/wcstold_l.texi: Likewise.
27493         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27494         * doc/glibc-functions/wcstoq.texi: Likewise.
27495         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27496         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27497         * doc/glibc-functions/wcstouq.texi: Likewise.
27498         * doc/glibc-functions/wmempcpy.texi: Likewise.
27499
27500 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27501             Eric Blake  <ebb9@byu.net>
27502             Paolo Bonzini  <bonzini@gnu.org>
27503             Bruno Haible  <bruno@clisp.org>
27504
27505         Make c-stack work on Haiku.
27506         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27507         (c_stack_action): Use SA_ONSTACK flag.
27508
27509 2008-12-22  Bruno Haible  <bruno@clisp.org>
27510
27511         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27512
27513 2008-12-22  Bruno Haible  <bruno@clisp.org>
27514
27515         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27516         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27517         being overridden.
27518         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27519         New macros.
27520         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27522         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27523         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27524
27525 2008-12-22  Bruno Haible  <bruno@clisp.org>
27526
27527         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27528         from test code.
27529
27530 2008-12-22  Eric Blake  <ebb9@byu.net>
27531
27532         Avoid gcc warnings on cygwin.
27533         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27534         Avoid unused variable.
27535         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27536         Likewise.
27537
27538 2008-12-22  Bruno Haible  <bruno@clisp.org>
27539
27540         Remove HAVE_MBRTOWC conditionals.
27541         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27542         (mbscasecmp): Assume mbrtowc function.
27543         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27544         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27545         * lib/mbschr.c: Include mbuiter.h unconditionally.
27546         (mbschr): Assume mbrtowc function.
27547         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27548         (mbscspn): Assume mbrtowc function.
27549         * lib/mbslen.c: Include mbuiter.h unconditionally.
27550         (mbslen): Assume mbrtowc function.
27551         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27552         (mbsncasecmp): Assume mbrtowc function.
27553         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27554         (mbsnlen): Assume mbrtowc function.
27555         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27556         (mbspbrk): Assume mbrtowc function.
27557         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27558         (mbspcasecmp): Assume mbrtowc function.
27559         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27560         (mbsrchr): Assume mbrtowc function.
27561         * lib/mbssep.c: Include mbuiter.h unconditionally.
27562         (mbssep): Assume mbrtowc function.
27563         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27564         (mbsspn): Assume mbrtowc function.
27565         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27566         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27567         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27568         (mbstok_r): Assume mbrtowc function.
27569         * lib/propername.c: Include mbuiter.h unconditionally.
27570         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27571         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27572         (trim2): Assume mbrtowc function.
27573         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27574         (mbsnwidth): Assume mbrtowc function.
27575         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27576         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27577         fallback definitions.
27578         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27579
27580 2008-12-22  Bruno Haible  <bruno@clisp.org>
27581
27582         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27583
27584 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27585
27586         * modules/regex: Request emulations for the mb*/wc* functions we need.
27587         * m4/regex.m4: Don't look for those functions here.
27588         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27589
27590 2008-12-22  Bruno Haible  <bruno@clisp.org>
27591
27592         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27593
27594 2008-12-21  Bruno Haible  <bruno@clisp.org>
27595
27596         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27597         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27598         (Include): Remove conditionalization.
27599         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27600         (Include): Remove conditionalization.
27601         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27602         (Include): Remove conditionalization.
27603         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27604         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27605         * NEWS: Mention the change.
27606         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27607         via Sergey Poznyakoff <gray@gnu.org.ua>.
27608
27609 2008-12-21  Bruno Haible  <bruno@clisp.org>
27610
27611         * MODULES.html.sh (Extended multibyte and wide character utilities
27612         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27613         wcrtomb, wcsrtombs.
27614         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27615         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27616         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27617         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27618
27619 2008-12-21  Bruno Haible  <bruno@clisp.org>
27620
27621         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27622
27623 2008-12-21  Bruno Haible  <bruno@clisp.org>
27624
27625         * modules/wcsnrtombs-tests: New file.
27626         * tests/test-wcsnrtombs1.sh: New file.
27627         * tests/test-wcsnrtombs2.sh: New file.
27628         * tests/test-wcsnrtombs3.sh: New file.
27629         * tests/test-wcsnrtombs4.sh: New file.
27630         * tests/test-wcsnrtombs.c: New file.
27631
27632         New module 'wcsnrtombs'.
27633         * lib/wchar.in.h (wcsnrtombs): New declaration.
27634         * lib/wcsnrtombs.c: New file.
27635         * lib/wcsrtombs-state.c: New file.
27636         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27637         (internal_state): Remove variable.
27638         * m4/wcsnrtombs.m4: New file.
27639         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27640         compilation units.
27641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27642         HAVE_WCSNRTOMBS.
27643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27644         HAVE_WCSNRTOMBS.
27645         * modules/wcsnrtombs: New file.
27646         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27647         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27648
27649 2008-12-21  Bruno Haible  <bruno@clisp.org>
27650
27651         * modules/wcsrtombs-tests: New file.
27652         * tests/test-wcsrtombs1.sh: New file.
27653         * tests/test-wcsrtombs2.sh: New file.
27654         * tests/test-wcsrtombs3.sh: New file.
27655         * tests/test-wcsrtombs4.sh: New file.
27656         * tests/test-wcsrtombs.c: New file.
27657
27658         New module 'wcsrtombs'.
27659         * lib/wchar.in.h (wcsrtombs): New declaration.
27660         * lib/wcsrtombs.c: New file.
27661         * m4/wcsrtombs.m4: New file.
27662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27663         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27665         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27666         * modules/wcsrtombs: New file.
27667         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27668         bugs.
27669
27670 2008-12-21  Bruno Haible  <bruno@clisp.org>
27671
27672         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27673         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27674         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27675         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27676         if not correct.
27677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27678         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27679         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27680         m4/locale-zh.m4, m4/codeset.m4.
27681         * doc/posix-functions/wcrtomb.texi: Document the bug.
27682
27683 2008-12-21  Bruno Haible  <bruno@clisp.org>
27684
27685         Work around a btowc() bug on IRIX 6.5.
27686         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27687         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27688         REPLACE_WTOBC if not.
27689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27690         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27691         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27692
27693 2008-12-21  Bruno Haible  <bruno@clisp.org>
27694
27695         * modules/wcrtomb-tests: New file.
27696         * tests/test-wcrtomb.sh: New file.
27697         * tests/test-wcrtomb.c: New file.
27698
27699         New module 'wcrtomb'.
27700         * lib/wchar.in.h (wcrtomb): New declaration.
27701         * lib/wcrtomb.c: New file.
27702         * m4/wcrtomb.m4: New file.
27703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27704         HAVE_WCRTOMB.
27705         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27706         HAVE_WCRTOMB.
27707         * modules/wcrtomb: New file.
27708         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27709
27710 2008-12-21  Bruno Haible  <bruno@clisp.org>
27711
27712         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27713         * modules/mbsrtowcs (Files): Likewise.
27714         * modules/wctob (Files): Likewise.
27715         * modules/c-strcase-tests (Files): Likewise.
27716         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27717         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27718         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27719         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27720         * modules/vasnprintf-posix-tests (Files): Likewise.
27721
27722 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27723
27724         gitlog-to-changelog: pass all command-line arguments to git-log
27725         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27726         it is sometimes convenient to filter the commits in various ways.
27727         gitlog-to-changelog only allows --since to specify a start date,
27728         but git-log itself supports many other filtering mechanisms.
27729         At the moment, I want to filter by branch name.  Rather than
27730         adding a --branch option to gitlog-to-changelog, it seems more
27731         flexible to simply pass all options directly to git-log and let
27732         git do the work.  Notice that this effectively makes --since a
27733         redundant option for gitlog-to-changelog, but removing it would
27734         require current usage to change since calls would then require
27735         an additional '--'.
27736
27737 2008-12-21  Bruno Haible  <bruno@clisp.org>
27738
27739         * modules/mbsnrtowcs-tests: New file.
27740         * tests/test-mbsnrtowcs1.sh: New file.
27741         * tests/test-mbsnrtowcs2.sh: New file.
27742         * tests/test-mbsnrtowcs3.sh: New file.
27743         * tests/test-mbsnrtowcs4.sh: New file.
27744         * tests/test-mbsnrtowcs.c: New file.
27745
27746         New module 'mbsnrtowcs'.
27747         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27748         * lib/mbsnrtowcs.c: New file.
27749         * lib/mbsrtowcs-state.c: New file.
27750         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27751         (internal_state): Remove variable.
27752         * m4/mbsnrtowcs.m4: New file.
27753         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27754         compilation units.
27755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27756         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27757         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27758         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27759         * modules/mbsnrtowcs: New file.
27760         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27761         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27762         portability problem.
27763
27764 2008-12-21  Bruno Haible  <bruno@clisp.org>
27765
27766         Work around mbsrtowcs bug.
27767         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27768         (gl_FUNC_MBSRTOWCS): Invoke it.
27769         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27770         m4/locale-zh.m4.
27771         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27772
27773 2008-12-21  Bruno Haible  <bruno@clisp.org>
27774
27775         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27776
27777 2008-12-21  Bruno Haible  <bruno@clisp.org>
27778
27779         Update doc for AIX.
27780         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27781         16-bit wchar_t type.
27782         * doc/posix-functions/btowc.texi: Likewise.
27783         * doc/posix-functions/fgetwc.texi: Likewise.
27784         * doc/posix-functions/fgetws.texi: Likewise.
27785         * doc/posix-functions/fputwc.texi: Likewise.
27786         * doc/posix-functions/fputws.texi: Likewise.
27787         * doc/posix-functions/fwide.texi: Likewise.
27788         * doc/posix-functions/fwprintf.texi: Likewise.
27789         * doc/posix-functions/fwscanf.texi: Likewise.
27790         * doc/posix-functions/getwchar.texi: Likewise.
27791         * doc/posix-functions/getwc.texi: Likewise.
27792         * doc/posix-functions/iswalnum.texi: Likewise.
27793         * doc/posix-functions/iswalpha.texi: Likewise.
27794         * doc/posix-functions/iswblank.texi: Likewise.
27795         * doc/posix-functions/iswcntrl.texi: Likewise.
27796         * doc/posix-functions/iswctype.texi: Likewise.
27797         * doc/posix-functions/iswdigit.texi: Likewise.
27798         * doc/posix-functions/iswgraph.texi: Likewise.
27799         * doc/posix-functions/iswlower.texi: Likewise.
27800         * doc/posix-functions/iswprint.texi: Likewise.
27801         * doc/posix-functions/iswpunct.texi: Likewise.
27802         * doc/posix-functions/iswspace.texi: Likewise.
27803         * doc/posix-functions/iswupper.texi: Likewise.
27804         * doc/posix-functions/iswxdigit.texi: Likewise.
27805         * doc/posix-functions/mbrtowc.texi: Likewise.
27806         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27807         * doc/posix-functions/mbstowcs.texi: Likewise.
27808         * doc/posix-functions/mbtowc.texi: Likewise.
27809         * doc/posix-functions/putwchar.texi: Likewise.
27810         * doc/posix-functions/putwc.texi: Likewise.
27811         * doc/posix-functions/swprintf.texi: Likewise.
27812         * doc/posix-functions/tolower.texi: Likewise.
27813         * doc/posix-functions/toupper.texi: Likewise.
27814         * doc/posix-functions/towctrans.texi: Likewise.
27815         * doc/posix-functions/ungetwc.texi: Likewise.
27816         * doc/posix-functions/vswprintf.texi: Likewise.
27817         * doc/posix-functions/wcrtomb.texi: Likewise.
27818         * doc/posix-functions/wcscat.texi: Likewise.
27819         * doc/posix-functions/wcschr.texi: Likewise.
27820         * doc/posix-functions/wcscmp.texi: Likewise.
27821         * doc/posix-functions/wcscoll.texi: Likewise.
27822         * doc/posix-functions/wcscpy.texi: Likewise.
27823         * doc/posix-functions/wcscspn.texi: Likewise.
27824         * doc/posix-functions/wcsftime.texi: Likewise.
27825         * doc/posix-functions/wcslen.texi: Likewise.
27826         * doc/posix-functions/wcsncat.texi: Likewise.
27827         * doc/posix-functions/wcsncmp.texi: Likewise.
27828         * doc/posix-functions/wcsncpy.texi: Likewise.
27829         * doc/posix-functions/wcspbrk.texi: Likewise.
27830         * doc/posix-functions/wcsrchr.texi: Likewise.
27831         * doc/posix-functions/wcsrtombs.texi: Likewise.
27832         * doc/posix-functions/wcsspn.texi: Likewise.
27833         * doc/posix-functions/wcsstr.texi: Likewise.
27834         * doc/posix-functions/wcstod.texi: Likewise.
27835         * doc/posix-functions/wcstof.texi: Likewise.
27836         * doc/posix-functions/wcstoimax.texi: Likewise.
27837         * doc/posix-functions/wcstok.texi: Likewise.
27838         * doc/posix-functions/wcstold.texi: Likewise.
27839         * doc/posix-functions/wcstoll.texi: Likewise.
27840         * doc/posix-functions/wcstol.texi: Likewise.
27841         * doc/posix-functions/wcstombs.texi: Likewise.
27842         * doc/posix-functions/wcstoull.texi: Likewise.
27843         * doc/posix-functions/wcstoul.texi: Likewise.
27844         * doc/posix-functions/wcstoumax.texi: Likewise.
27845         * doc/posix-functions/wcswidth.texi: Likewise.
27846         * doc/posix-functions/wcsxfrm.texi: Likewise.
27847         * doc/posix-functions/wctob.texi: Likewise.
27848         * doc/posix-functions/wctomb.texi: Likewise.
27849         * doc/posix-functions/wctrans.texi: Likewise.
27850         * doc/posix-functions/wctype.texi: Likewise.
27851         * doc/posix-functions/wcwidth.texi: Likewise.
27852         * doc/posix-functions/wmemchr.texi: Likewise.
27853         * doc/posix-functions/wmemcmp.texi: Likewise.
27854         * doc/posix-functions/wmemcpy.texi: Likewise.
27855         * doc/posix-functions/wmemmove.texi: Likewise.
27856         * doc/posix-functions/wmemset.texi: Likewise.
27857         * doc/posix-functions/wprintf.texi: Likewise.
27858         * doc/posix-functions/wscanf.texi: Likewise.
27859
27860 2008-12-21  Bruno Haible  <bruno@clisp.org>
27861
27862         Update doc for HP-UX 11.11.
27863         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27864         in HP-UX version 11.00, not in all versions of HP-UX 11.
27865         * doc/posix-functions/fwide.texi: Likewise.
27866         * doc/posix-functions/fwprintf.texi: Likewise.
27867         * doc/posix-functions/fwscanf.texi: Likewise.
27868         * doc/posix-functions/inet_ntop.texi: Likewise.
27869         * doc/posix-functions/inet_pton.texi: Likewise.
27870         * doc/posix-functions/mbrlen.texi: Likewise.
27871         * doc/posix-functions/mbrtowc.texi: Likewise.
27872         * doc/posix-functions/mbsinit.texi: Likewise.
27873         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27874         * doc/posix-functions/swprintf.texi: Likewise.
27875         * doc/posix-functions/swscanf.texi: Likewise.
27876         * doc/posix-functions/towctrans.texi: Likewise.
27877         * doc/posix-functions/vfwprintf.texi: Likewise.
27878         * doc/posix-functions/vswprintf.texi: Likewise.
27879         * doc/posix-functions/vwprintf.texi: Likewise.
27880         * doc/posix-functions/wcrtomb.texi: Likewise.
27881         * doc/posix-functions/wcsrtombs.texi: Likewise.
27882         * doc/posix-functions/wcsstr.texi: Likewise.
27883         * doc/posix-functions/wctob.texi: Likewise.
27884         * doc/posix-functions/wctrans.texi: Likewise.
27885         * doc/posix-functions/wmemchr.texi: Likewise.
27886         * doc/posix-functions/wmemcmp.texi: Likewise.
27887         * doc/posix-functions/wmemcpy.texi: Likewise.
27888         * doc/posix-functions/wmemmove.texi: Likewise.
27889         * doc/posix-functions/wmemset.texi: Likewise.
27890         * doc/posix-functions/wprintf.texi: Likewise.
27891         * doc/posix-functions/wscanf.texi: Likewise.
27892
27893 2008-12-21  Bruno Haible  <bruno@clisp.org>
27894
27895         Work around a portability problem.
27896         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27897         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27898
27899 2008-12-20  Bruno Haible  <bruno@clisp.org>
27900
27901         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27902         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27903         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27905         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27906
27907         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27908         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27909         set.
27910         (GNULIB_defined_mbstate_t): New macro.
27911         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27912         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27913         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27914         reuses the system's mbrtowc function but works around the bugs.
27915         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27916         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27917         macros.
27918         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27919         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27920         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27921         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27922         REPLACE_MBSINIT if mbsinit needs to be overridden.
27923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27924         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27925         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27926         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27927         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27928         m4/locale-zh.m4.
27929         (Depends): Add mbsinit.
27930         * modules/mbsinit (Depends): Add mbrtowc.
27931         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27932
27933 2008-12-20  Bruno Haible  <bruno@clisp.org>
27934
27935         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27936         so that there are no conversion errors on AIX.
27937         * tests/test-mbsrtowcs.c (main): LIkewise.
27938
27939 2008-12-20  Bruno Haible  <bruno@clisp.org>
27940
27941         Work around wctob bug on Solaris <= 9.
27942         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27943         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27945         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27946         * modules/wctob (Files): Add m4/locale-fr.m4.
27947         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27948
27949 2008-12-20  Bruno Haible  <bruno@clisp.org>
27950
27951         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27952         /dev/null.
27953         * tests/test-select-in.sh: Likewise.
27954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27955
27956 2008-12-20  Bruno Haible  <bruno@clisp.org>
27957
27958         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27959         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27960         Cygwin 1.5.x.
27961
27962 2008-12-20  Bruno Haible  <bruno@clisp.org>
27963
27964         Ensure mbstate_t is defined on HP-UX 11.11.
27965         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27966         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27967         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27968         AC_USE_SYSTEM_EXTENSIONS.
27969         * modules/fnmatch (Depends-on): Add extensions.
27970         * modules/mbrlen (Depends-on): Likewise.
27971         * modules/mbrtowc (Depends-on): Likewise.
27972         * modules/mbsinit (Depends-on): Likewise.
27973         * modules/mbsrtowcs (Depends-on): Likewise.
27974         * modules/mbswidth (Depends-on): Likewise.
27975         * modules/quotearg (Depends-on): Likewise.
27976         * modules/strftime (Depends-on): Likewise.
27977
27978 2008-12-20  Bruno Haible  <bruno@clisp.org>
27979
27980         Ensure wctob is declared on IRIX 6.5.
27981         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27982         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27983         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27985         of HAVE_WCTOB.
27986         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27987         HAVE_WCTOB.
27988         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27989
27990 2008-12-19  Bruno Haible  <bruno@clisp.org>
27991
27992         * modules/mbsrtowcs-tests: New file.
27993         * tests/test-mbsrtowcs1.sh: New file.
27994         * tests/test-mbsrtowcs2.sh: New file.
27995         * tests/test-mbsrtowcs3.sh: New file.
27996         * tests/test-mbsrtowcs4.sh: New file.
27997         * tests/test-mbsrtowcs.c: New file.
27998
27999         New module 'mbsrtowcs'.
28000         * lib/wchar.in.h (mbsrtowcs): New declaration.
28001         * lib/mbsrtowcs.c: New file.
28002         * m4/mbsrtowcs.m4: New file.
28003         * modules/mbsrtowcs: New file.
28004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28005         HAVE_MBSRTOWCS.
28006         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28007         HAVE_MBSRTOWCS.
28008         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28009
28010 2008-12-19  Bruno Haible  <bruno@clisp.org>
28011
28012         New module 'mbrlen'.
28013         * lib/wchar.in.h (mbrlen): New declaration.
28014         * lib/mbrlen.c: New file.
28015         * m4/mbrlen.m4: New file.
28016         * modules/mbrlen: New file.
28017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28018         HAVE_MBRLEN.
28019         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28020         HAVE_MBRLEN.
28021         * doc/posix-functions/mbrlen.texi: Document the new module.
28022
28023 2008-12-19  Bruno Haible  <bruno@clisp.org>
28024
28025         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28026         * modules/mbrtowc (Depends-on): Add verify.
28027         Suggested by Paul Eggert.
28028
28029 2008-12-18  Bruno Haible  <bruno@clisp.org>
28030
28031         * modules/mbsinit-tests: New file.
28032         * tests/test-mbsinit.sh: New file.
28033         * tests/test-mbsinit.c: New file.
28034
28035 2008-12-18  Bruno Haible  <bruno@clisp.org>
28036
28037         * modules/mbrtowc-tests: New file.
28038         * tests/test-mbrtowc1.sh: New file.
28039         * tests/test-mbrtowc2.sh: New file.
28040         * tests/test-mbrtowc3.sh: New file.
28041         * tests/test-mbrtowc4.sh: New file.
28042         * tests/test-mbrtowc.c: New file.
28043
28044         New module 'mbrtowc'.
28045         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28046         mbsinit and mbrtowc.
28047         (mbrtowc): New declaration.
28048         * lib/mbrtowc.c: New file.
28049         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28050         * modules/mbrtowc: New file.
28051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28052         HAVE_MBRTOWC.
28053         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28054         HAVE_MBRTOWC.
28055         * doc/posix-functions/mbrtowc.texi: Document the new module.
28056
28057 2008-12-18  Bruno Haible  <bruno@clisp.org>
28058
28059         New module 'wctob'.
28060         * lib/wchar.in.h (wctob): New declaration.
28061         * lib/wctob.c: New file.
28062         * m4/wctob.m4: New file.
28063         * modules/wctob: New file.
28064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28065         HAVE_WCTOB.
28066         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28067         * doc/posix-functions/wctob.texi: Document the new module.
28068
28069 2008-12-18  Bruno Haible  <bruno@clisp.org>
28070
28071         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28072         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28073
28074 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28075
28076         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28077         G. Christensen" <tgc@jupiterrise.com>.
28078
28079         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28080         G. Christensen" <tgc@jupiterrise.com>.
28081
28082         * lib/flock.c: Need to include string.h.  Reported by "Tom
28083         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28084         <ebb9@byu.net>.
28085
28086 2008-12-18  Bruno Haible  <bruno@clisp.org>
28087
28088         * m4/locale-ja.m4: New file, from GNU gettext.
28089
28090 2008-12-17  Bruno Haible  <bruno@clisp.org>
28091
28092         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28093         Suggested by Eric Blake.
28094
28095 2008-12-17  Bruno Haible  <bruno@clisp.org>
28096
28097         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28098
28099 2008-12-17  Bruno Haible  <bruno@clisp.org>
28100
28101         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28102         * modules/mbsinit (Depends-on): Add verify.
28103         Suggested by Paul Eggert.
28104
28105 2008-12-17  Bruno Haible  <bruno@clisp.org>
28106
28107         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28108         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28109         gl_FUNC_MBRTOWC.
28110         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28111         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28112         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28113         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28114         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28115         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28116         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28117         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28118         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28119         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28120         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28121         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28122         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28123         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28124         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28125         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28126         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28127         * modules/trim (configure.ac): Likewise.
28128
28129 2008-12-17  Bruno Haible  <bruno@clisp.org>
28130
28131         * modules/btowc-tests: New file.
28132         * tests/test-btowc1.sh: New file.
28133         * tests/test-btowc2.sh: New file.
28134         * tests/test-btowc.c: New file.
28135
28136         New module 'btowc'.
28137         * lib/wchar.in.h (btowc): New declaration.
28138         * lib/btowc.c: New file.
28139         * m4/btowc.m4: New file.
28140         * modules/btowc: New file.
28141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28142         HAVE_BTOWC.
28143         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28144         * doc/posix-functions/btowc.texi: Document the new module.
28145
28146 2008-12-17  Bruno Haible  <bruno@clisp.org>
28147
28148         New module 'mbsinit'.
28149         * lib/wchar.in.h (mbsinit): New declaration.
28150         * lib/mbsinit.c: New file.
28151         * m4/mbsinit.m4: New file.
28152         * modules/mbsinit: New file.
28153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28154         HAVE_MBSINIT.
28155         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28156         HAVE_MBSINIT.
28157         * doc/posix-functions/mbsinit.texi: Document the new module.
28158
28159 2008-12-16  Bruno Haible  <bruno@clisp.org>
28160
28161         * lib/unistd.in.h: Add comment.
28162         * tests/test-environ.c: Don't include <stdlib.h>.
28163
28164 2008-12-16  Bruno Haible  <bruno@clisp.org>
28165
28166         * lib/parse-duration.h (parse_duration): Document return value
28167         convention.
28168         * lib/parse-duration.c: Include specification header first. Add
28169         comments.
28170         (_): Remove macro.
28171         (parse_year_month_day, parse_hour_minute_second): Move side effects
28172         outside of strchr call.
28173         (parse_non_iso8601): Move side effects outside of isspace call.
28174         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28175         call.
28176
28177 2008-12-16  Bruno Haible  <bruno@clisp.org>
28178
28179         * tests/test-parse-duration.sh: Produce no output when the test
28180         succeeds.
28181
28182 2008-12-16  Bruno Haible  <bruno@clisp.org>
28183
28184         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28185         expressions.
28186
28187 2008-12-15  Bruno Haible  <bruno@clisp.org>
28188
28189         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28190         * doc/glibc-functions/flistxattr.texi: Likewise.
28191         * doc/glibc-functions/fopencookie.texi: Likewise.
28192         * doc/glibc-functions/fremovexattr.texi: Likewise.
28193         * doc/glibc-functions/fsetxattr.texi: Likewise.
28194         * doc/glibc-functions/getxattr.texi: Likewise.
28195         * doc/glibc-functions/lgetxattr.texi: Likewise.
28196         * doc/glibc-functions/listxattr.texi: Likewise.
28197         * doc/glibc-functions/llistxattr.texi: Likewise.
28198         * doc/glibc-functions/lremovexattr.texi: Likewise.
28199         * doc/glibc-functions/lsetxattr.texi: Likewise.
28200         * doc/glibc-functions/removexattr.texi: Likewise.
28201         * doc/glibc-functions/setxattr.texi: Likewise.
28202         * doc/posix-functions/open_memstream.texi: Likewise.
28203
28204 2008-12-15  Eric Blake  <ebb9@byu.net>
28205
28206         Update doc for cygwin 1.7.
28207         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28208         functions.
28209         * doc/posix-functions/fchmodat.texi: Likewise.
28210         * doc/posix-functions/fchownat.texi: Likewise.
28211         * doc/posix-functions/fdopendir.texi: Likewise.
28212         * doc/posix-functions/fmemopen.texi: Likewise.
28213         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28214         * doc/posix-functions/fstatat.texi: Likewise.
28215         * doc/posix-functions/futimens.texi: Likewise.
28216         * doc/posix-functions/gai_strerror.texi: Likewise.
28217         * doc/posix-functions/getaddrinfo.texi: Likewise.
28218         * doc/posix-functions/getnameinfo.texi: Likewise.
28219         * doc/posix-functions/if_freenameindex.texi: Likewise.
28220         * doc/posix-functions/if_indextoname.texi: Likewise.
28221         * doc/posix-functions/if_nameindex.texi: Likewise.
28222         * doc/posix-functions/if_nametoindex.texi: Likewise.
28223         * doc/posix-functions/insque.texi: Likewise.
28224         * doc/posix-functions/linkat.texi: Likewise.
28225         * doc/posix-functions/llrint.texi: Likewise.
28226         * doc/posix-functions/llrintf.texi: Likewise.
28227         * doc/posix-functions/llrintl.texi: Likewise.
28228         * doc/posix-functions/lockf.texi: Likewise.
28229         * doc/posix-functions/lrintl.texi: Likewise.
28230         * doc/posix-functions/mkdirat.texi: Likewise.
28231         * doc/posix-functions/mkfifoat.texi: Likewise.
28232         * doc/posix-functions/mknodat.texi: Likewise.
28233         * doc/posix-functions/mq_close.texi: Likewise.
28234         * doc/posix-functions/mq_getattr.texi: Likewise.
28235         * doc/posix-functions/mq_notify.texi: Likewise.
28236         * doc/posix-functions/mq_open.texi: Likewise.
28237         * doc/posix-functions/mq_receive.texi: Likewise.
28238         * doc/posix-functions/mq_send.texi: Likewise.
28239         * doc/posix-functions/mq_setattr.texi: Likewise.
28240         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28241         * doc/posix-functions/mq_timedsend.texi: Likewise.
28242         * doc/posix-functions/mq_unlink.texi: Likewise.
28243         * doc/posix-functions/open_memstream.texi: Likewise.
28244         * doc/posix-functions/openat.texi: Likewise.
28245         * doc/posix-functions/posix_fadvise.texi: Likewise.
28246         * doc/posix-functions/posix_fallocate.texi: Likewise.
28247         * doc/posix-functions/posix_madvise.texi: Likewise.
28248         * doc/posix-functions/posix_memalign.texi: Likewise.
28249         * doc/posix-functions/posix_openpt.texi: Likewise.
28250         * doc/posix-functions/readlinkat.texi: Likewise.
28251         * doc/posix-functions/remque.texi: Likewise.
28252         * doc/posix-functions/renameat.texi: Likewise.
28253         * doc/posix-functions/rintl.texi: Likewise.
28254         * doc/posix-functions/sem_unlink.texi: Likewise.
28255         * doc/posix-functions/shm_open.texi: Likewise.
28256         * doc/posix-functions/shm_unlink.texi: Likewise.
28257         * doc/posix-functions/signgam.texi: Likewise.
28258         * doc/posix-functions/sigset.texi: Likewise.
28259         * doc/posix-functions/stpcpy.texi: Likewise.
28260         * doc/posix-functions/stpncpy.texi: Likewise.
28261         * doc/posix-functions/strerror.texi: Likewise.
28262         * doc/posix-functions/strtod.texi: Likewise.
28263         * doc/posix-functions/symlinkat.texi: Likewise.
28264         * doc/posix-functions/unlinkat.texi: Likewise.
28265         * doc/posix-functions/utimensat.texi: Likewise.
28266         * doc/glibc-functions/bindresvport.texi: Likewise.
28267         * doc/glibc-functions/dn_expand.texi: Likewise.
28268         * doc/glibc-functions/exp10.texi: Likewise.
28269         * doc/glibc-functions/exp10f.texi: Likewise.
28270         * doc/glibc-functions/fgetxattr.texi: Likewise.
28271         * doc/glibc-functions/flistxattr.texi: Likewise.
28272         * doc/glibc-functions/fopencookie.texi: Likewise.
28273         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28274         * doc/glibc-functions/fremovexattr.texi: Likewise.
28275         * doc/glibc-functions/fsetxattr.texi: Likewise.
28276         * doc/glibc-functions/getifaddrs.texi: Likewise.
28277         * doc/glibc-functions/getxattr.texi: Likewise.
28278         * doc/glibc-functions/lgetxattr.texi: Likewise.
28279         * doc/glibc-functions/listxattr.texi: Likewise.
28280         * doc/glibc-functions/llistxattr.texi: Likewise.
28281         * doc/glibc-functions/lremovexattr.texi: Likewise.
28282         * doc/glibc-functions/lsetxattr.texi: Likewise.
28283         * doc/glibc-functions/pow10.texi: Likewise.
28284         * doc/glibc-functions/pow10f.texi: Likewise.
28285         * doc/glibc-functions/rcmd_af.texi: Likewise.
28286         * doc/glibc-functions/removexattr.texi: Likewise.
28287         * doc/glibc-functions/res_init.texi: Likewise.
28288         * doc/glibc-functions/res_mkquery.texi: Likewise.
28289         * doc/glibc-functions/res_query.texi: Likewise.
28290         * doc/glibc-functions/res_querydomain.texi: Likewise.
28291         * doc/glibc-functions/res_send.texi: Likewise.
28292         * doc/glibc-functions/rresvport_af.texi: Likewise.
28293         * doc/glibc-functions/setxattr.texi: Likewise.
28294         * doc/glibc-functions/strcasestr.texi: Likewise.
28295
28296 2008-12-15  Bruno Haible  <bruno@clisp.org>
28297
28298         Fix compilation error on OSF/1 4.0.
28299         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28300         <sys/time.h>, simply delegate to the system header.
28301         Reported by Daniel Richard G. <oss@teragram.com>.
28302
28303 2008-12-15  Bruno Haible  <bruno@clisp.org>
28304
28305         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28306         * doc/posix-functions/fchmodat.texi: Likewise.
28307         * doc/posix-functions/fchownat.texi: Likewise.
28308         * doc/posix-functions/fdopendir.texi: Likewise.
28309         * doc/posix-functions/fstatat.texi: Likewise.
28310         * doc/posix-functions/mkdirat.texi: Likewise.
28311         * doc/posix-functions/unlinkat.texi: Likewise.
28312
28313 2008-12-14  Bruno Haible  <bruno@clisp.org>
28314
28315         Update doc for POSIX:2008.
28316         * doc/posix-functions/faccessat.texi: New file.
28317         * doc/posix-functions/fchmodat.texi: New file.
28318         * doc/posix-functions/fchownat.texi: New file.
28319         * doc/posix-functions/fdopendir.texi: New file.
28320         * doc/posix-functions/fstatat.texi: New file.
28321         * doc/posix-functions/futimens.texi: New file.
28322         * doc/posix-functions/linkat.texi: New file.
28323         * doc/posix-functions/mkdirat.texi: New file.
28324         * doc/posix-functions/mkfifoat.texi: New file.
28325         * doc/posix-functions/mknodat.texi: New file.
28326         * doc/posix-functions/open_wmemstream.texi: New file.
28327         * doc/posix-functions/openat.texi: New file.
28328         * doc/posix-functions/psiginfo.texi: New file.
28329         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28330         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28331         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28332         * doc/posix-functions/readlinkat.texi: New file.
28333         * doc/posix-functions/renameat.texi: New file.
28334         * doc/posix-functions/strerror_l.texi: New file.
28335         * doc/posix-functions/symlinkat.texi: New file.
28336         * doc/posix-functions/unlinkat.texi: New file.
28337         * doc/posix-functions/utimensat.texi: New file.
28338         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28339
28340 2008-12-14  Bruno Haible  <bruno@clisp.org>
28341
28342         Update doc for POSIX:2008.
28343         * doc/posix-functions/alphasort.texi: Renamed from
28344         doc/glibc-functions/alphasort.texi.
28345         * doc/posix-functions/dirfd.texi: Renamed from
28346         doc/glibc-functions/dirfd.texi.
28347         * doc/posix-functions/dprintf.texi: Renamed from
28348         doc/glibc-functions/dprintf.texi.
28349         * doc/posix-functions/duplocale.texi: Renamed from
28350         doc/glibc-functions/duplocale.texi.
28351         * doc/posix-functions/fexecve.texi: Renamed from
28352         doc/glibc-functions/fexecve.texi.
28353         * doc/posix-functions/fmemopen.texi: Renamed from
28354         doc/glibc-functions/fmemopen.texi.
28355         * doc/posix-functions/freelocale.texi: Renamed from
28356         doc/glibc-functions/freelocale.texi.
28357         * doc/posix-functions/getdate_err.texi: Renamed from
28358         doc/glibc-functions/getdate_err.texi.
28359         * doc/posix-functions/isalnum_l.texi: Renamed from
28360         doc/glibc-functions/isalnum_l.texi.
28361         * doc/posix-functions/isalpha_l.texi: Renamed from
28362         doc/glibc-functions/isalpha_l.texi.
28363         * doc/posix-functions/isblank_l.texi: Renamed from
28364         doc/glibc-functions/isblank_l.texi.
28365         * doc/posix-functions/iscntrl_l.texi: Renamed from
28366         doc/glibc-functions/iscntrl_l.texi.
28367         * doc/posix-functions/isdigit_l.texi: Renamed from
28368         doc/glibc-functions/isdigit_l.texi.
28369         * doc/posix-functions/isgraph_l.texi: Renamed from
28370         doc/glibc-functions/isgraph_l.texi.
28371         * doc/posix-functions/islower_l.texi: Renamed from
28372         doc/glibc-functions/islower_l.texi.
28373         * doc/posix-functions/isprint_l.texi: Renamed from
28374         doc/glibc-functions/isprint_l.texi.
28375         * doc/posix-functions/ispunct_l.texi: Renamed from
28376         doc/glibc-functions/ispunct_l.texi.
28377         * doc/posix-functions/isspace_l.texi: Renamed from
28378         doc/glibc-functions/isspace_l.texi.
28379         * doc/posix-functions/isupper_l.texi: Renamed from
28380         doc/glibc-functions/isupper_l.texi.
28381         * doc/posix-functions/iswalnum_l.texi: Renamed from
28382         doc/glibc-functions/iswalnum_l.texi.
28383         * doc/posix-functions/iswalpha_l.texi: Renamed from
28384         doc/glibc-functions/iswalpha_l.texi.
28385         * doc/posix-functions/iswblank_l.texi: Renamed from
28386         doc/glibc-functions/iswblank_l.texi.
28387         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28388         doc/glibc-functions/iswcntrl_l.texi.
28389         * doc/posix-functions/iswctype_l.texi: Renamed from
28390         doc/glibc-functions/iswctype_l.texi.
28391         * doc/posix-functions/iswdigit_l.texi: Renamed from
28392         doc/glibc-functions/iswdigit_l.texi.
28393         * doc/posix-functions/iswgraph_l.texi: Renamed from
28394         doc/glibc-functions/iswgraph_l.texi.
28395         * doc/posix-functions/iswlower_l.texi: Renamed from
28396         doc/glibc-functions/iswlower_l.texi.
28397         * doc/posix-functions/iswprint_l.texi: Renamed from
28398         doc/glibc-functions/iswprint_l.texi.
28399         * doc/posix-functions/iswpunct_l.texi: Renamed from
28400         doc/glibc-functions/iswpunct_l.texi.
28401         * doc/posix-functions/iswspace_l.texi: Renamed from
28402         doc/glibc-functions/iswspace_l.texi.
28403         * doc/posix-functions/iswupper_l.texi: Renamed from
28404         doc/glibc-functions/iswupper_l.texi.
28405         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28406         doc/glibc-functions/iswxdigit_l.texi.
28407         * doc/posix-functions/isxdigit_l.texi: Renamed from
28408         doc/glibc-functions/isxdigit_l.texi.
28409         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28410         doc/glibc-functions/mbsnrtowcs.texi.
28411         * doc/posix-functions/mkdtemp.texi: Renamed from
28412         doc/glibc-functions/mkdtemp.texi.
28413         * doc/posix-functions/newlocale.texi: Renamed from
28414         doc/glibc-functions/newlocale.texi.
28415         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28416         doc/glibc-functions/nl_langinfo_l.texi.
28417         * doc/posix-functions/open_memstream.texi: Renamed from
28418         doc/glibc-functions/open_memstream.texi.
28419         * doc/posix-functions/opterr.texi: Renamed from
28420         doc/glibc-functions/opterr.texi.
28421         * doc/posix-functions/optind.texi: Renamed from
28422         doc/glibc-functions/optind.texi.
28423         * doc/posix-functions/optopt.texi: Renamed from
28424         doc/glibc-functions/optopt.texi.
28425         * doc/posix-functions/psignal.texi: Renamed from
28426         doc/glibc-functions/psignal.texi.
28427         * doc/posix-functions/scandir.texi: Renamed from
28428         doc/glibc-functions/scandir.texi.
28429         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28430         doc/glibc-functions/sched_get_priority_min.texi.
28431         * doc/posix-functions/signgam.texi: Renamed from
28432         doc/glibc-functions/signgam.texi.
28433         * doc/posix-functions/stpcpy.texi: Renamed from
28434         doc/glibc-functions/stpcpy.texi.
28435         * doc/posix-functions/stpncpy.texi: Renamed from
28436         doc/glibc-functions/stpncpy.texi.
28437         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28438         doc/glibc-functions/strcasecmp_l.texi.
28439         * doc/posix-functions/strcoll_l.texi: Renamed from
28440         doc/glibc-functions/strcoll_l.texi.
28441         * doc/posix-functions/strfmon_l.texi: Renamed from
28442         doc/glibc-functions/strfmon_l.texi.
28443         * doc/posix-functions/strftime_l.texi: Renamed from
28444         doc/glibc-functions/strftime_l.texi.
28445         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28446         doc/glibc-functions/strncasecmp_l.texi.
28447         * doc/posix-functions/strndup.texi: Renamed from
28448         doc/glibc-functions/strndup.texi.
28449         * doc/posix-functions/strnlen.texi: Renamed from
28450         doc/glibc-functions/strnlen.texi.
28451         * doc/posix-functions/strsignal.texi: Renamed from
28452         doc/glibc-functions/strsignal.texi.
28453         * doc/posix-functions/strxfrm_l.texi: Renamed from
28454         doc/glibc-functions/strxfrm_l.texi.
28455         * doc/posix-functions/timer_gettime.texi: Renamed from
28456         doc/glibc-functions/timer_gettime.texi.
28457         * doc/posix-functions/tolower_l.texi: Renamed from
28458         doc/glibc-functions/tolower_l.texi.
28459         * doc/posix-functions/toupper_l.texi: Renamed from
28460         doc/glibc-functions/toupper_l.texi.
28461         * doc/posix-functions/towctrans_l.texi: Renamed from
28462         doc/glibc-functions/towctrans_l.texi.
28463         * doc/posix-functions/towlower_l.texi: Renamed from
28464         doc/glibc-functions/towlower_l.texi.
28465         * doc/posix-functions/towupper_l.texi: Renamed from
28466         doc/glibc-functions/towupper_l.texi.
28467         * doc/posix-functions/uselocale.texi: Renamed from
28468         doc/glibc-functions/uselocale.texi.
28469         * doc/posix-functions/vdprintf.texi: Renamed from
28470         doc/glibc-functions/vdprintf.texi.
28471         * doc/posix-functions/wcpcpy.texi:
28472         Renamed from doc/glibc-functions/wcpcpy.texi.
28473         * doc/posix-functions/wcpncpy.texi: Renamed from
28474         doc/glibc-functions/wcpncpy.texi.
28475         * doc/posix-functions/wcscasecmp.texi: Renamed from
28476         doc/glibc-functions/wcscasecmp.texi.
28477         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28478         doc/glibc-functions/wcscasecmp_l.texi.
28479         * doc/posix-functions/wcscoll_l.texi: Renamed from
28480         doc/glibc-functions/wcscoll_l.texi.
28481         * doc/posix-functions/wcsdup.texi: Renamed from
28482         doc/glibc-functions/wcsdup.texi.
28483         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28484         doc/glibc-functions/wcsncasecmp.texi.
28485         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28486         doc/glibc-functions/wcsncasecmp_l.texi.
28487         * doc/posix-functions/wcsnlen.texi: Renamed from
28488         doc/glibc-functions/wcsnlen.texi.
28489         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28490         doc/glibc-functions/wcsnrtombs.texi.
28491         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28492         doc/glibc-functions/wcsxfrm_l.texi.
28493         * doc/posix-functions/wctrans_l.texi: Renamed from
28494         doc/glibc-functions/wctrans_l.texi.
28495         * doc/posix-functions/wctype_l.texi: Renamed from
28496         doc/glibc-functions/wctype_l.texi.
28497         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28498         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28499         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28500         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28501         these subsections.
28502         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28503         Remove sections.
28504
28505 2008-12-14  Bruno Haible  <bruno@clisp.org>
28506
28507         Update doc for POSIX:2008.
28508         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28509
28510 2008-12-14  Bruno Haible  <bruno@clisp.org>
28511
28512         Update doc for POSIX:2008.
28513         * doc/pastposix-functions/bcmp.texi: Renamed from
28514         doc/posix-functions/bcmp.texi.
28515         * doc/pastposix-functions/bcopy.texi: Renamed from
28516         doc/posix-functions/bcopy.texi.
28517         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28518         doc/posix-functions/bsd_signal.texi.
28519         * doc/pastposix-functions/bzero.texi: Renamed from
28520         doc/posix-functions/bzero.texi.
28521         * doc/pastposix-functions/ecvt.texi: Renamed from
28522         doc/posix-functions/ecvt.texi.
28523         * doc/pastposix-functions/fcvt.texi: Renamed from
28524         doc/posix-functions/fcvt.texi.
28525         * doc/pastposix-functions/ftime.texi: Renamed from
28526         doc/posix-functions/ftime.texi.
28527         * doc/pastposix-functions/gcvt.texi: Renamed from
28528         doc/posix-functions/gcvt.texi.
28529         * doc/pastposix-functions/getcontext.texi: Renamed from
28530         doc/posix-functions/getcontext.texi.
28531         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28532         doc/posix-functions/gethostbyaddr.texi.
28533         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28534         doc/posix-functions/gethostbyname.texi.
28535         * doc/pastposix-functions/getwd.texi: Renamed from
28536         doc/posix-functions/getwd.texi.
28537         * doc/pastposix-functions/h_errno.texi: Renamed from
28538         doc/posix-functions/h_errno.texi.
28539         * doc/pastposix-functions/index.texi: Renamed from
28540         doc/posix-functions/index.texi.
28541         * doc/pastposix-functions/makecontext.texi: Renamed from
28542         doc/posix-functions/makecontext.texi.
28543         * doc/pastposix-functions/mktemp.texi: Renamed from
28544         doc/posix-functions/mktemp.texi.
28545         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28546         doc/posix-functions/pthread_attr_getstackaddr.texi.
28547         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28548         doc/posix-functions/pthread_attr_setstackaddr.texi.
28549         * doc/pastposix-functions/rindex.texi: Renamed from
28550         doc/posix-functions/rindex.texi.
28551         * doc/pastposix-functions/scalb.texi: Renamed from
28552         doc/posix-functions/scalb.texi.
28553         * doc/pastposix-functions/setcontext.texi: Renamed from
28554         doc/posix-functions/setcontext.texi.
28555         * doc/pastposix-functions/swapcontext.texi: Renamed from
28556         doc/posix-functions/swapcontext.texi.
28557         * doc/pastposix-functions/ualarm.texi: Renamed from
28558         doc/posix-functions/ualarm.texi.
28559         * doc/pastposix-functions/usleep.texi: Renamed from
28560         doc/posix-functions/usleep.texi.
28561         * doc/pastposix-functions/vfork.texi: Renamed from
28562         doc/posix-functions/vfork.texi.
28563         * doc/pastposix-functions/wcswcs.texi: Renamed from
28564         doc/posix-functions/wcswcs.texi.
28565         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28566         (Function Substitutes): Update.
28567
28568 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28569
28570         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28571         m4/strerror.m4.
28572
28573 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28574             Bruno Haible  <bruno@clisp.org>
28575
28576         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28577
28578 2008-12-13  Bruno Haible  <bruno@clisp.org>
28579
28580         * modules/strtoull (Depends-on): Remove unistd.
28581
28582 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28583
28584         * modules/strtoull (Depends-on): Add stdlib.
28585
28586 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28587
28588         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28589
28590 2008-12-10  Jim Meyering  <meyering@redhat.com>
28591
28592         gl_ASSERT: don't say assertions are disabled when they're not
28593         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28594         "checking whether to enable assertions... no", when they are in
28595         fact enabled.  This is solely a bug in the output of configure.
28596         In spite of saying "no", NDEBUG was not defined in that case.
28597         Also, as noted by Eric Blake, leave assertions enabled upon
28598         --enable-assert=INVALID.
28599
28600 2008-12-10  Bruno Haible  <bruno@clisp.org>
28601
28602         Change MODULES.html to refer to POSIX:2008 where possible.
28603         * MODULES.html.sh (POSIX2008_URL): New variable.
28604         (posix_headers): Remove sys/timeb, ucontext.
28605         (posix2001_headers): New variable.
28606         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28607         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28608         index, makecontext, mktemp, pthread_attr_getstackaddr,
28609         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28610         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28611         (posix2001_functions): New variable.
28612         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28613         otherwise.
28614
28615 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28616
28617         add missing include to parse-duration.c
28618         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28619         * modules/parse-duration (Depends-on): Add xalloc.
28620
28621         fix sed script reading maint.mk
28622         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28623         (syntax-check-rules): Use it.
28624
28625 2008-12-09  Bruno Haible  <bruno@clisp.org>
28626
28627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28628         MacOS X 10.4/PowerPC.
28629         Reported by Simon Josefsson.
28630
28631 2008-12-08  Jim Meyering  <meyering@redhat.com>
28632
28633         work around mingw's lack of some S_IF definitions
28634         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28635         Reported by Simon Josefsson.
28636
28637 2008-12-08  Bruno Haible  <bruno@clisp.org>
28638
28639         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28640         applied to variables. Needed on MacOS X 10.4/PowerPC.
28641         Reported by Simon Josefsson.
28642
28643 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28644         and Eric Blake  <ebb9@byu.net>
28645
28646         assert: honor --enable-assert
28647         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28648         order to honor --enable-assert, rather than treating it as a
28649         synonym for --disable-assert.
28650
28651 2008-12-08  Jim Meyering  <meyering@redhat.com>
28652
28653         * lib/posixtm.c: Remove now-useless declaration of mktime.
28654
28655         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28656
28657 2008-12-07  Bruno Haible  <bruno@clisp.org>
28658
28659         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28660         test_once): Mark functions as static.
28661         * tests/test-tls.c (test_tls): Likewise.
28662
28663 2008-12-07  Bruno Haible  <bruno@clisp.org>
28664
28665         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28666         iconv_register_autodetect.
28667
28668 2008-12-07  Jim Meyering  <meyering@redhat.com>
28669
28670         posixtm.c: avoid a warning
28671         * lib/posixtm.c (posixtime): Don't initialize tm0.
28672         It's no longer needed to placate gcc4's -Wuninitialized,
28673         and the attempt to placate would elicit a new warning.
28674
28675         unicodeio.c: mark unused parameters
28676         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28677         (fallback_failure_callback): Likewise.
28678
28679 2008-12-07  Bruno Haible  <bruno@clisp.org>
28680
28681         * gnulib-tool (func_create_testdir): When building the tests
28682         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28683         Reported by Simon Josefsson.
28684
28685 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28686
28687         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28688
28689 2008-12-06  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28692         Suggested by Eric Blake.
28693
28694 2008-12-06  Bruno Haible  <bruno@clisp.org>
28695
28696         Fix a c-stack test failure on MacOS X.
28697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28698         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28699         handler for SIGBUS as well.
28700         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28701         install a signal handler for SIGBUS as well.
28702         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28703
28704 2008-12-06  Bruno Haible  <bruno@clisp.org>
28705
28706         Advocacy documentation.
28707         * doc/gnulib-intro.texi (Benefits): New section.
28708         * doc/gnulib.texi: Update.
28709
28710 2008-12-06  Bruno Haible  <bruno@clisp.org>
28711
28712         Document the 'manywarnings' module.
28713         * doc/manywarnings.texi: New file.
28714         * doc/gnulib.texi: Include it.
28715
28716 2008-12-05  Eric Blake  <ebb9@byu.net>
28717
28718         tests: silence some gcc warnings
28719         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28720         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28721         type mismatches.
28722
28723 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28724             Bruno Haible  <bruno@clisp.org>
28725
28726         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28727
28728 2008-11-29  Jim Meyering  <meyering@redhat.com>
28729
28730         unicodeio.c: mark unused parameters
28731         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28732         (fallback_failure_callback): Likewise.
28733
28734         fts: fix a thinko
28735         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28736         (set_stat_type): Return S_IF*-valued "type" directly.
28737         Prompted by James Youngman's spotting a related bug.
28738         Confirmed by further testing through find.
28739
28740         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28741         * lib/fts.c (D_TYPE): Define.
28742         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28743         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28744         (s_ifmt_shift_bits): New function.
28745         (set_stat_type): New function.
28746         (fts_build): When not calling fts_stat, call set_stat_type
28747         to propagate dirent.d_type info to fts_read caller.
28748         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28749         fts_statp->st_mode type information may be valid.
28750
28751 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28752
28753         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28754         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28755         <sds@gnu.org>.
28756
28757 2008-11-20  Bruno Haible  <bruno@clisp.org>
28758
28759         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28760         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28761         INCLUDE_NEXT.
28762         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28763         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28764         * modules/math (Makefile.am): Substitute
28765         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28766         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28767
28768 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28769             Bruno Haible  <bruno@clisp.org>
28770
28771         * lib/stdint.in.h: Define all type macros so that their expansion is
28772         a single typedef'ed token. Fixes a compilation failure in Boost which
28773         does "using ::int8_t;".
28774
28775 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28776
28777         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28778         gl_MANYWARN_ALL_GCC.
28779         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28780         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28781         * modules/manywarnings: New file.
28782         * MODULES.html.sh: Mention manywarnings module.
28783
28784 2008-11-18  Bruno Haible  <bruno@clisp.org>
28785
28786         * doc/gnulib-tool.texi (Unit tests): New section.
28787
28788 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28789
28790         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28791         paths like 'lib/po/foo.po'.
28792
28793 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28794
28795         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28796         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28797
28798 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28799
28800         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28801         parameter works.
28802
28803 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28804
28805         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28806
28807 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28808
28809         * modules/parse-duration-tests: New file.
28810         * tests/test-parse-duration.sh: New file.
28811         * tests/test-parse-duration.c: New file.
28812
28813         New module 'parse-duration'.
28814         * lib/parse-duration.h: New file.
28815         * lib/parse-duration.c: New file.
28816         * modules/parse-duration: New file.
28817
28818 2008-11-17  Bruno Haible  <bruno@clisp.org>
28819
28820         * tests/test-select-out.sh: Comment out the first pipe test.
28821         Reported by Simon Josefsson.
28822
28823 2008-11-17  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28826         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28827         gl_HOSTENT.
28828
28829 2008-11-17  Bruno Haible  <bruno@clisp.org>
28830
28831         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28832         -lnetwork and -lnet. Needed for Haiku and BeOS.
28833
28834 2008-11-16  Bruno Haible  <bruno@clisp.org>
28835
28836         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28837
28838 2008-11-16  Bruno Haible  <bruno@clisp.org>
28839
28840         Avoid test failure on Haiku.
28841         * tests/test-fsync.c: Include <errno.h>.
28842         (main): Don't require that fsync (0) fails.
28843
28844 2008-11-15  Bruno Haible  <bruno@clisp.org>
28845
28846         New module 'hostent'.
28847         * modules/hostent: New file.
28848         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28849
28850 2008-11-15  Bruno Haible  <bruno@clisp.org>
28851
28852         New module 'servent'.
28853         * modules/servent: New file.
28854         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28855
28856 2008-11-15  Bruno Haible  <bruno@clisp.org>
28857
28858         Avoid generating same test program with two different rules.
28859         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28860         test-frexp to test-frexp-nolibm.
28861         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28862         test-frexpl to test-frexpl-nolibm.
28863
28864 2008-11-15  Bruno Haible  <bruno@clisp.org>
28865
28866         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28867         $(FREXPL_LIBM).
28868
28869 2008-11-15  Bruno Haible  <bruno@clisp.org>
28870
28871         * lib/netdb.in.h: Activate the definitions also when the system's
28872         <netdb.h> has 'struct addrinfo'.
28873         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28874         EAI_OVERFLOW or AI_NUMERICSERV.
28875         * doc/posix-headers/netdb.texi: Document the problem.
28876
28877 2008-11-15  Bruno Haible  <bruno@clisp.org>
28878
28879         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28880
28881         Make the 'sched' module work on platforms where <sched.h> exists but
28882         is incomplete (such as Haiku).
28883         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28884         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28885         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28886         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28887         HAVE_STRUCT_SCHED_PARAM.
28888         * modules/sched (Depends-on): Add include_next.
28889         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28890         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28891         * doc/posix-headers/sched.texi: Document the issue.
28892
28893 2008-11-13  Jim Meyering  <meyering@redhat.com>
28894
28895         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28896         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28897         test would fail due to the difference in the Report bugs to ...
28898         line.  The expected address is empty, "<>", while the actual
28899         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28900
28901 2008-11-12  Bruno Haible  <bruno@clisp.org>
28902
28903         lstat: don't compile lstat.c on systems lacking lstat
28904         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28905         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28906         Reported by Daniel P. Berrange via Jim Meyering.
28907
28908 2008-11-12  Jim Meyering  <meyering@redhat.com>
28909
28910         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28911
28912 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28913
28914         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28915         instead.
28916
28917 2008-11-12  Bruno Haible  <bruno@clisp.org>
28918
28919         * lib/unicodeio.c: Include unistr.h.
28920         (utf8_wctomb): Remove function.
28921         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28922
28923 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28924
28925         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28926         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28927         <bruno@clisp.org>.
28928         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28929
28930 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28931
28932         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28933         * doc/gnulib.texi: Add section for warnings.
28934
28935 2008-11-11  Bruno Haible  <bruno@clisp.org>
28936
28937         * lib/sockets.h: Add a comment.
28938
28939 2008-11-11  Karl Berry  <karl@gnu.org>
28940
28941         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28942
28943 2008-11-11  Eric Blake  <ebb9@byu.net>
28944
28945         fdl.texi: avoid git symlinks
28946         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28947
28948 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28949
28950         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28951
28952 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28953
28954         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28955         (gl_WARN_ADD): Substitute $2 if literal.
28956
28957 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28958
28959         * m4/warning.m4: Remove.
28960
28961 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28962
28963         * m4/warnings.m4: Almost complete rewrite. :-)
28964
28965 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28966
28967         * modules/warnings: New module.
28968         * m4/warnings.m4: New file.
28969         * MODULES.html.sh: Mention warnings module.
28970         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28971         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28972
28973 2008-11-10  Eric Blake  <ebb9@byu.net>
28974
28975         fdl.texi: make a symlink to the latest version
28976         * doc/standards.texi: Revert today's earlier change.
28977         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28978         * doc/fdl.texi: ...and replace this with a symlink to the newer
28979         fdl-1.3.texi.
28980
28981 2008-11-10  Bruno Haible  <bruno@clisp.org>
28982
28983         * tests/test-select-fd.c (main): Accept the result file name as fourth
28984         argument.
28985         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28986         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28987
28988 2008-11-10  Bruno Haible  <bruno@clisp.org>
28989
28990         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28991         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28992         as autoconf-substituted macros.
28993         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28995         gl_NETDB_H_DEFAULTS. Set these variables.
28996         * modules/netdb (Makefile.am): Substitute these variables.
28997
28998 2008-11-10  Eric Blake  <ebb9@byu.net>
28999
29000         standards.texi: include correct file for FDL 1.3
29001         * doc/standards.texi (GNU Free Documentation License): Change
29002         include file to pull in FDL 1.3, not 1.2.
29003
29004         fdl.texi: revert accidental change to license
29005         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29006
29007 2008-11-10  Bruno Haible  <bruno@clisp.org>
29008
29009         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29010         cross-compiling guesses also when the native compile gives no result.
29011
29012 2008-11-10  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/spawni.c (__spawni): Force variable into the stack.
29015
29016 2008-11-10  Bruno Haible  <bruno@clisp.org>
29017
29018         Add support for Haiku.
29019         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29020         glibc and BeOS, but also on Haiku.
29021         * lib/fpurge.c (fpurge): Likewise.
29022         * lib/freadable.c (freadable): Likewise.
29023         * lib/freadahead.c (freadahead): Likewise.
29024         * lib/freading.c (freading): Likewise.
29025         * lib/freadptr.c (freadptr): Likewise.
29026         * lib/freadseek.c (freadptrinc): Likewise.
29027         * lib/fseeko.c (rpl_fseeko): Likewise.
29028         * lib/fseterr.c (fseterr): Likewise.
29029         * lib/fwritable.c (fwritable): Likewise.
29030         * lib/fwriting.c (fwriting): Likewise.
29031         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29032
29033 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29034
29035         * lib/config.charset: Treat Haiku like BeOS.
29036
29037 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29038
29039         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29040         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29041
29042 2008-11-08  Bruno Haible  <bruno@clisp.org>
29043
29044         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29045         AC_CACHE_CHECK.
29046
29047 2008-11-08  Bruno Haible  <bruno@clisp.org>
29048
29049         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29050
29051 2008-11-08  Bruno Haible  <bruno@clisp.org>
29052
29053         * tests/test-select-fd.c: New file.
29054         * tests/test-select-in.sh: New file.
29055         * tests/test-select-out.sh: New file.
29056         * tests/test-select-stdin.c: New file.
29057         * modules/select-tests (Files): Add the new files.
29058         (Depends-on): Add gettimeofday.
29059         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29060         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29061         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29062
29063 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29064             Bruno Haible  <bruno@clisp.org>
29065
29066         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29067
29068 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29069
29070         * build-aux/pmccabe2html: Added support for C++ source files.
29071
29072 2008-11-05  Ben Pfaff  <blp@gnu.org>
29073
29074         Fix lib/close.c build on Windows.
29075         * modules/close (Files): Add lib/w32sock.h.
29076
29077 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29078
29079         Accept Bison's NEWS format.
29080         * build-aux/announce-gen (print_news_deltas): Tweak
29081         $re_prefix.
29082
29083 2008-11-04  Bruno Haible  <bruno@clisp.org>
29084
29085         * modules/random_r (Maintainer): Add glibc.
29086
29087 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29088
29089         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29090         by karl@freefriends.org (Karl Berry).
29091         * doc/alloca.texi: Likewise.
29092         * doc/c-ctype.texi: Likewise.
29093         * doc/c-strcase.texi: Likewise.
29094         * doc/c-strcaseeq.texi: Likewise.
29095         * doc/c-strcasestr.texi: Likewise.
29096         * doc/c-strstr.texi: Likewise.
29097         * doc/c-strtod.texi: Likewise.
29098         * doc/c-strtold.texi: Likewise.
29099         * doc/ctime.texi: Likewise.
29100         * doc/error.texi: Likewise.
29101         * doc/fdl.texi: Likewise.
29102         * doc/gcd.texi: Likewise.
29103         * doc/getdate.texi: Likewise.
29104         * doc/gnulib-intro.texi: Likewise.
29105         * doc/gnulib-tool.texi: Likewise.
29106         * doc/gnulib.texi: Likewise.
29107         * doc/inet_ntoa.texi: Likewise.
29108         * doc/maintain.texi: Likewise.
29109         * doc/make-stds.texi: Likewise.
29110         * doc/quote.texi: Likewise.
29111         * doc/regexprops-generic.texi: Likewise.
29112         * doc/standards.texi: Likewise.
29113         * doc/verify.texi: Likewise.
29114         * doc/visibility.texi: Likewise.
29115         * doc/gnulib.texi (GNU Free Documentation License): Include
29116         fdl-1.3.texi instead of fdl.texi.
29117
29118 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29119
29120         * doc/fdl-1.3.texi: New file, from
29121         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29122         * modules/fdl-1.3: Add.
29123         * MODULES.html.sh: Add fdl-1.3.
29124
29125 2008-11-03  Bruno Haible  <bruno@clisp.org>
29126
29127         Make determination of absolute name of header file work with AIX xlc.
29128         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29129         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29130         preprocessing.
29131         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29132         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29133
29134 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29135
29136         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29137         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29138         <ludo@gnu.org>.
29139
29140 2008-11-02  Bruno Haible  <bruno@clisp.org>
29141
29142         Mark 'strpbrk' obsolete.
29143         * modules/strpbrk (Status, Notice): New sections.
29144         * modules/strtok_r (Depends-on): Add strpbrk.
29145
29146 2008-11-02  Bruno Haible  <bruno@clisp.org>
29147
29148         Mark 'strdup' obsolete.
29149         * modules/strdup (Status, Notice): New sections.
29150         * modules/findprog (Depends-on): Add strdup.
29151         * modules/getaddrinfo (Depends-on): Likewise.
29152         * modules/localename (Depends-on): Likewise.
29153         * modules/relocatable-lib (Depends-on): Likewise.
29154         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29155         * modules/relocatable-prog (Depends-on): Likewise.
29156         * modules/trim (Depends-on): Likewise.
29157         * modules/unictype/gen-ctype (Depends-on): Likewise.
29158         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29159
29160 2008-11-02  Bruno Haible  <bruno@clisp.org>
29161
29162         Mark 'strcspn' obsolete.
29163         * modules/strcspn (Status, Notice): New sections.
29164
29165 2008-11-02  Bruno Haible  <bruno@clisp.org>
29166
29167         Mark 'rmdir' obsolete.
29168         * modules/rmdir (Status, Notice): New sections.
29169         * modules/clean-temp (Depends-on): Add rmdir.
29170         * modules/openat (Depends-on): Likewise.
29171
29172 2008-11-02  Bruno Haible  <bruno@clisp.org>
29173
29174         Mark 'raise' obsolete.
29175         * modules/raise (Status, Notice): New sections.
29176         (Include): Specify <signal.h>.
29177         * modules/stdio (Depends-on): Add raise.
29178         * modules/write (Depends-on): Likewise.
29179
29180 2008-11-02  Bruno Haible  <bruno@clisp.org>
29181
29182         Mark 'memset' obsolete.
29183         * modules/memset (Status, Notice): New sections.
29184
29185 2008-11-02  Bruno Haible  <bruno@clisp.org>
29186
29187         Mark 'memmove' obsolete.
29188         * modules/memmove (Status, Notice): New sections.
29189         * modules/argp (Depends-on): Add memmove.
29190         * modules/argz (Depends-on): Likewise.
29191         * modules/canonicalize (Depends-on): Likewise.
29192         * modules/canonicalize-lgpl (Depends-on): Likewise.
29193         * modules/fts (Depends-on): Likewise.
29194         * modules/getcwd (Depends-on): Likewise.
29195         * modules/human (Depends-on): Likewise.
29196         * modules/regex (Depends-on): Likewise.
29197         * modules/striconveh (Depends-on): Likewise.
29198         * modules/trim (Depends-on): Likewise.
29199         * modules/unistr/u8-move (Depends-on): Likewise.
29200         * modules/unistr/u16-move (Depends-on): Likewise.
29201         * modules/unistr/u32-move (Depends-on): Likewise.
29202
29203 2008-11-02  Bruno Haible  <bruno@clisp.org>
29204
29205         Mark 'memcpy' obsolete.
29206         * modules/memcpy (Status, Notice): New sections.
29207
29208 2008-11-02  Bruno Haible  <bruno@clisp.org>
29209
29210         Mark 'memcmp' obsolete.
29211         * modules/memcmp (Status, Notice): New sections.
29212         * modules/argmatch (Depends-on): Add memchr.
29213         * modules/backupfile (Depends-on): Likewise.
29214         * modules/c-strcasestr (Depends-on): Likewise.
29215         * modules/crypto/des (Depends-on): Likewise.
29216         * modules/csharpcomp (Depends-on): Likewise.
29217         * modules/fnmatch (Depends-on): Likewise.
29218         * modules/git-merge-changelog (Depends-on): Likewise.
29219         * modules/isnand (Depends-on): Likewise.
29220         * modules/isnand-nolibm (Depends-on): Likewise.
29221         * modules/isnanf (Depends-on): Likewise.
29222         * modules/isnanf-nolibm (Depends-on): Likewise.
29223         * modules/isnanl (Depends-on): Likewise.
29224         * modules/isnanl-nolibm (Depends-on): Likewise.
29225         * modules/mbchar (Depends-on): Likewise.
29226         * modules/memcoll (Depends-on): Likewise.
29227         * modules/quotearg (Depends-on): Likewise.
29228         * modules/regex (Depends-on): Likewise.
29229         * modules/relocatable-prog (Depends-on): Likewise.
29230         * modules/same (Depends-on): Likewise.
29231         * modules/signbit (Depends-on): Likewise.
29232         * modules/strcasestr-simple (Depends-on): Likewise.
29233         * modules/unictype/gen-ctype (Depends-on): Likewise.
29234         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29235         * modules/uniname/uniname (Depends-on): Likewise.
29236         * modules/unistr/u8-cmp (Depends-on): Likewise.
29237
29238 2008-11-02  Bruno Haible  <bruno@clisp.org>
29239
29240         Mark 'memchr' obsolete.
29241         * modules/memchr (Status, Notice): New sections.
29242         * modules/argp (Depends-on): Add memchr.
29243         * modules/base64 (Depends-on): Likewise.
29244         * modules/c-strcasestr (Depends-on): Likewise.
29245         * modules/chdir-long (Depends-on): Likewise.
29246         * modules/fnmatch (Depends-on): Likewise.
29247         * modules/getsubopt (Depends-on): Likewise.
29248         * modules/git-merge-changelog (Depends-on): Likewise.
29249         * modules/glob (Depends-on): Likewise.
29250         * modules/strcasestr-simple (Depends-on): Likewise.
29251         * modules/strnlen (Depends-on): Likewise.
29252
29253 2008-11-02  Bruno Haible  <bruno@clisp.org>
29254
29255         Mark 'atexit' obsolete.
29256         * modules/atexit (Status, Notice): New sections.
29257         * modules/chdir-long (Depends-on): Add atexit.
29258         * modules/wait-process (Depends-on): Likewise.
29259
29260 2008-11-02  Bruno Haible  <bruno@clisp.org>
29261
29262         * gnulib-tool: New option --with-obsolete.
29263         (func_usage): Document it.
29264         (func_modules_transitive_closure): Drop obsolete dependencies if
29265         incobsolete is not true.
29266         (func_import): Read and save the incobsolete variable to the cache.
29267
29268 2008-11-02  Bruno Haible  <bruno@clisp.org>
29269
29270         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29271         * gnulib-tool: New option --extract-status.
29272         (func_usage): Document it.
29273         (sed_extract_prog): Recognize it.
29274         (func_get_status): New function.
29275
29276 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29277
29278         * modules/sockets (License): Change from LGPL to LGPLv2+.
29279
29280 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29281
29282         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29283
29284 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29285
29286         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29287         Mention times and sys_times.
29288         * modules/sys_times, modules/sys_times-tests: New modules.
29289         * modules/times, modules/times-tests: Likewise
29290         * m4/sys_times_h.m4: New file.
29291         * lib/sys_times.in.h: Likewise
29292         * lib/times.c: Likewise.
29293         * tests/test-sys_times.c: Likewise.
29294         * tests/test-times.c: Likewise.
29295         * doc/posix-headers/sys_times.texi: Update.
29296         * doc/posix-functions/times.texi: Update.
29297
29298 2008-10-28  Jim Meyering  <meyering@redhat.com>
29299
29300         * modules/tempname (Depends-on): Add lstat.
29301
29302         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29303
29304 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29305
29306         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29307         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29308         using idiom used elsewhere in gnulib.
29309
29310 2008-10-27  Jim Meyering  <meyering@redhat.com>
29311
29312         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29313
29314 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29315
29316         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29317         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29318         programs.
29319         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29320
29321 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29322
29323         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29324
29325 2008-10-27  Bruno Haible  <bruno@clisp.org>
29326
29327         * tests/test-lstat.c: Include <stdio.h>.
29328
29329 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29330
29331         * modules/lstat-tests: New module.
29332         * tests/test-lstat.c: New file.
29333
29334 2008-10-26  Jim Meyering  <meyering@redhat.com>
29335
29336         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29337
29338 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29339             Bruno Haible  <bruno@clisp.org>
29340
29341         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29342         * modules/configmake (Include): Add a note that the include must come
29343         after all system headers.
29344         * lib/javaversion.c: Include configmake.h after all other includes.
29345
29346 2008-10-26  Bruno Haible  <bruno@clisp.org>
29347
29348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29349         HAVE_STRUCT_RANDOM_DATA to 1.
29350         (gl_STDLIB_H): Simplify.
29351
29352 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29353
29354         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29355         substitute HAVE_STRUCT_RANDOM_DATA.
29356         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29357         random_data.
29358         * modules/stdlib (Makefile.am): Substitute
29359         HAVE_STRUCT_RANDOM_DATA.
29360
29361 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29362
29363         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29364         * doc/gnulib-intro.texi (Copyright): Likewise.
29365
29366 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29367
29368         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29369         findings.
29370
29371 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29372             Bruno Haible  <bruno@clisp.org>
29373
29374         * lib/unistd.in.h: Include <winsock2.h>.
29375         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29376         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29377         Provide dummy declarations.
29378         (gethostname): Override.
29379         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29380         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29381         gl_PREREQ_SYS_H_WINSOCK2.
29382         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29383         * doc/posix-functions/gethostname.texi: More details.
29384
29385 2008-10-25  Bruno Haible  <bruno@clisp.org>
29386
29387         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29388         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29389         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29390
29391         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29392         here ...
29393         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29394         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29395         gl_UNISTD_H_DEFAULTS.
29396
29397 2008-10-25  Eric Blake  <ebb9@byu.net>
29398
29399         signbit: avoid spurious compiler failure
29400         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29401         declarations inside function.
29402
29403 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29404             Bruno Haible  <bruno@clisp.org>
29405
29406         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29407         * modules/random_r (Depends-on): Add stdint.
29408
29409 2008-10-24  Bruno Haible  <bruno@clisp.org>
29410
29411         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29412         Eggert.
29413         * modules/strerror (License): Likewise.
29414
29415 2008-10-24  Jim Meyering  <meyering@redhat.com>
29416
29417         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29418         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29419
29420 2008-10-24  Eric Blake  <ebb9@byu.net>
29421
29422         getgroups: fix compilation when getgroups is available
29423         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29424         but with <config.h> override of getgroups disabled.
29425
29426 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29427
29428         * doc/gnulib.texi (Header files): Add note about C++ problems.
29429         Explained by Bruno Haible <bruno@clisp.org>.
29430
29431 2008-10-23  Bruno Haible  <bruno@clisp.org>
29432
29433         Define a dummy SA_NODEFER macro on Interix.
29434         * lib/signal.in.h (SA_NODEFER): Define fallback.
29435         Reported by Aleksey Cheusov <cheusov@tut.by> via
29436         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29437
29438 2008-10-23  Bruno Haible  <bruno@clisp.org>
29439
29440         * modules/freadahead (License): Change to LGPLv2+.
29441         Suggested by Simon Josefsson.
29442
29443 2008-10-23  Jim Meyering  <meyering@redhat.com>
29444
29445         random_r: new module
29446         * modules/random_r: New file.
29447         * m4/random_r.m4: New file.
29448         * lib/random_r.c: New file, from glibc.
29449         * modules/random_r-tests: New file.
29450         * tests/test-random_r.c: New file.
29451         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29452          Declare.
29453         (RAND_MAX): Define.
29454         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29455         * modules/stdlib: Substitute them, too.
29456         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29457         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29458         * doc/glibc-functions/random_r.texi: Likewise.
29459         * doc/glibc-functions/setstate_r.texi: Likewise.
29460         * doc/glibc-functions/srandom_r.texi: Likewise.
29461         * config/srclist.txt: Mention it.
29462
29463 2008-10-23  David Lutterkort  <lutter@redhat.com>
29464
29465         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29466         link requirement
29467
29468 2008-10-23  Jim Meyering  <meyering@redhat.com>
29469
29470         selinux-h: mark parameters of stub functions as intentionally unused
29471         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29472         * lib/se-context.in.h: Likewise.
29473
29474 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29475
29476         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29477
29478 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29479
29480         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29481
29482 2008-10-22  Eric Blake  <ebb9@byu.net>
29483
29484         glthread/thread: avoid compiler warning
29485         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29486         Add unreachable abort to silence compiler.
29487
29488 2008-10-22  Eric Blake  <ebb9@byu.net>
29489
29490         netdb: also supply struct addrinfo for cygwin 1.5.x
29491         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29492         older cygwin.
29493         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29494         cygwin.
29495         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29496
29497 2008-10-22  Bruno Haible  <bruno@clisp.org>
29498
29499         * users.txt: Update entry about pspp.
29500
29501 2008-10-21  Bruno Haible  <bruno@clisp.org>
29502
29503         Simplification.
29504         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29505         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29506
29507         Simplification.
29508         * lib/ioctl.c (ioctl): Don't undefine.
29509         * lib/socket.c (socket): Don't undefine.
29510
29511         Remove unused module indicator macros.
29512         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29513         GNULIB_$1 as a C macro.
29514
29515         * doc/posix-functions/close.texi: Undo last change.
29516         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29517         Windows platforms.
29518
29519 2008-10-21  Bruno Haible  <bruno@clisp.org>
29520
29521         Add gethostname() declaration to <unistd.h>.
29522         * lib/unistd.in.h (gethostname): New declaration.
29523         * lib/gethostname.c: Include <unistd.h>.
29524         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29525         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29527         and HAVE_GETHOSTNAME.
29528         * modules/gethostname (Depends-on): Add unistd.
29529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29530         (Include): Specify <unistd.h>.
29531         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29532         HAVE_GETHOSTNAME.
29533         * tests/test-gethostname.c: Include <unistd.h> first.
29534
29535 2008-10-21  Bruno Haible  <bruno@clisp.org>
29536
29537         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29538         * modules/select-tests (Depends-on): Likewise.
29539         Reported by Simon Josefsson.
29540
29541 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29542
29543         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29544         * lib/accept.c: New file, based on winsock.c.
29545         * lib/bind.c: New file, based on winsock.c.
29546         * lib/connect.c: New file, based on winsock.c.
29547         * lib/getpeername.c: New file, based on winsock.c.
29548         * lib/getsockname.c: New file, based on winsock.c.
29549         * lib/getsockopt.c: New file, based on winsock.c.
29550         * lib/ioctl.c: New file, based on winsock.c.
29551         * lib/listen.c: New file, based on winsock.c.
29552         * lib/recv.c: New file, based on winsock.c.
29553         * lib/recvfrom.c: New file, based on winsock.c.
29554         * lib/send.c: New file, based on winsock.c.
29555         * lib/sendto.c: New file, based on winsock.c.
29556         * lib/setsockopt.c: New file, based on winsock.c.
29557         * lib/shutdown.c: New file, based on winsock.c.
29558         * lib/socket.c: New file, based on winsock.c.
29559         * lib/w32sock.h: New file, based on winsock.c.
29560         * lib/winsock.c: Remove file.
29561         * modules/accept: Likewise.
29562         * modules/bind: Likewise.
29563         * modules/connect: Likewise.
29564         * modules/getpeername: Likewise.
29565         * modules/getsockname: Likewise.
29566         * modules/getsockopt: Likewise.
29567         * modules/ioctl: Likewise.
29568         * modules/listen: Likewise.
29569         * modules/recv: Likewise.
29570         * modules/recvfrom: Likewise.
29571         * modules/send: Likewise.
29572         * modules/sendto: Likewise.
29573         * modules/setsockopt: Likewise.
29574         * modules/shutdown: Likewise.
29575         * modules/socket: Use socket.c instead of winsock.c.
29576         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29577         * doc/posix-functions/accept.texi: Doc fix.
29578         * doc/posix-functions/bind.texi: Doc fix.
29579         * doc/posix-functions/close.texi: Doc fix.
29580         * doc/posix-functions/connect.texi: Doc fix.
29581         * doc/posix-functions/getpeername.texi: Doc fix.
29582         * doc/posix-functions/getsockname.texi: Doc fix.
29583         * doc/posix-functions/getsockopt.texi: Doc fix.
29584         * doc/posix-functions/ioctl.texi: Doc fix.
29585         * doc/posix-functions/listen.texi: Doc fix.
29586         * doc/posix-functions/recv.texi: Doc fix.
29587         * doc/posix-functions/recvfrom.texi: Doc fix.
29588         * doc/posix-functions/send.texi: Doc fix.
29589         * doc/posix-functions/sendto.texi: Doc fix.
29590         * doc/posix-functions/setsockopt.texi: Doc fix.
29591         * doc/posix-functions/shutdown.texi: Doc fix.
29592         * doc/posix-functions/socket.texi: Doc fix.
29593
29594 2008-10-20  Bruno Haible  <bruno@clisp.org>
29595
29596         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29597         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29598         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29599         as an alias for SIGABRT.
29600         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29601         (sigaction): Map it to SIGABRT.
29602         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29603
29604 2008-10-20  Bruno Haible  <bruno@clisp.org>
29605
29606         * lib/fts.c: Don't include lstat.h.
29607         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29608
29609         Move the lstat() declaration to <sys/stat.h>.
29610         * lib/lstat.h: Remove file.
29611         * lib/sys_stat.in.h: Add special invocation convention.
29612         (lstat): New declaration.
29613         * lib/lstat.c (orig_lstat): New function.
29614         (rpl_lstat): Use orig_lstat instead of lstat.
29615         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29616         AC_C_INLINE. Set REPLACE_LSTAT.
29617         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29618         and REPLACE_LSTAT.
29619         * modules/lstat (Files): Remove lib/lstat.h.
29620         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29621         (Include): Specify <sys/stat.h> instead of lstat.h.
29622         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29623         REPLACE_LSTAT.
29624         * NEWS: Mention the change.
29625
29626 2008-10-20  Bruno Haible  <bruno@clisp.org>
29627
29628         * modules/posix_spawn-tests: New file.
29629         * tests/test-posix_spawn3.c: New file.
29630
29631 2008-10-20  Bruno Haible  <bruno@clisp.org>
29632
29633         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29634         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29635         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29636         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29637         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29638
29639 2008-10-20  Bruno Haible  <bruno@clisp.org>
29640
29641         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29642         of posix_spawn on AIX 5.3.
29643
29644 2008-10-20  Bruno Haible  <bruno@clisp.org>
29645
29646         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29647
29648 2008-10-20  Bruno Haible  <bruno@clisp.org>
29649
29650         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29651         of AC_LANG_PROGRAM.
29652
29653 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29654
29655         * lib/netdb.in.h: Don't define GNU specific constants until they
29656         are supported or needed.  Reported by Bruno Haible
29657         <bruno@clisp.org>.
29658
29659 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29660
29661         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29662
29663 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29664
29665         * lib/getaddrinfo.h: Remove file.
29666         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29667         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29668         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29669         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29670         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29671         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29672         * tests/test-getaddrinfo.c: Likewise.
29673         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29674         * NEWS: Mention change.
29675
29676 2008-10-19  Bruno Haible  <bruno@clisp.org>
29677
29678         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29679
29680 2008-10-19  Bruno Haible  <bruno@clisp.org>
29681
29682         * lib/wait-process.c: Include simply <sys/wait.h>.
29683         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29684         WIFSTOPPED): Remove fallback definitions.
29685         * modules/wait-process (Depends-on): Add sys_wait.
29686
29687         New module 'sys_wait'.
29688         * modules/sys_wait: New file.
29689         * lib/sys_wait.in.h: New file, partially copied from
29690         lib/wait-process.c.
29691         * m4/sys_wait_h.m4: New file.
29692         * doc/posix-headers/sys_wait.texi: Mention the new module.
29693
29694 2008-10-19  Bruno Haible  <bruno@clisp.org>
29695
29696         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29697
29698 2008-10-19  Bruno Haible  <bruno@clisp.org>
29699
29700         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29701         * lib/wait-process.c (WAIT_T): Remove type.
29702         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29703         (wait_subprocess): Update.
29704
29705 2008-10-19  Bruno Haible  <bruno@clisp.org>
29706
29707         New module 'atoll'.
29708         * modules/atoll: New file.
29709         * lib/stdlib.in.h (atoll): New declaration.
29710         * lib/atoll.c: New file, from glibc with modifications.
29711         * m4/atoll.m4: New file.
29712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29713         HAVE_ATOLL.
29714         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29715         * doc/posix-functions/atoll.texi: Mention the new module.
29716
29717 2008-10-19  Bruno Haible  <bruno@clisp.org>
29718
29719         Add strtoull() declaration to <stdlib.h>.
29720         * lib/stdlib.in.h (strtoull): New declaration.
29721         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29722         Set HAVE_STRTOULL.
29723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29724         HAVE_STRTOULL.
29725         * modules/strtoull (Depends-on): Add stdlib.
29726         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29727         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29728         HAVE_STRTOULL.
29729
29730 2008-10-19  Bruno Haible  <bruno@clisp.org>
29731
29732         Add strtoll() declaration to <stdlib.h>.
29733         * lib/stdlib.in.h (strtoll): New declaration.
29734         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29735         Set HAVE_STRTOLL.
29736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29737         HAVE_STRTOLL.
29738         * modules/strtoll (Depends-on): Add stdlib.
29739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29740         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29741
29742 2008-10-19  Bruno Haible  <bruno@clisp.org>
29743
29744         * modules/bcopy (Depends-on): Add strings.
29745         (Include): Specify <strings.h>.
29746
29747 2008-10-19  Bruno Haible  <bruno@clisp.org>
29748
29749         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29750
29751 2008-10-19  Bruno Haible  <bruno@clisp.org>
29752
29753         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29754         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29755         mingw.
29756
29757 2008-10-19  Bruno Haible  <bruno@clisp.org>
29758
29759         * lib/atanl.c: Don't include isnanl.h.
29760         * lib/cosl.c: Likewise.
29761         * lib/ldexpl.c: Likewise.
29762         * lib/logl.c: Likewise.
29763         * lib/sinl.c: Likewise.
29764         * lib/sqrtl.c: Likewise.
29765         * lib/tanl.c: Likewise.
29766
29767         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29768         * lib/isnanf.h: Remove file.
29769         * lib/isnand.h: Remove file.
29770         * lib/isnanl.h: Remove file.
29771         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29772         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29773         macros.
29774         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29775         HAVE_ISNANF, don't define it as a C macro.
29776         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29777         HAVE_ISNAND, don't define it as a C macro.
29778         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29779         HAVE_ISNANL, don't define it as a C macro.
29780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29781         HAVE_ISNAN[FDL].
29782         * modules/isnanf (Files): Remove lib/isnanf.h.
29783         (Depends-on): Add math.
29784         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29785         (Include): Specify <math.h> instead of isnanf.h.
29786         * modules/isnand (Files): Remove lib/isnand.h.
29787         (Depends-on): Add math.
29788         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29789         (Include): Specify <math.h> instead of isnand.h.
29790         * modules/isnanl (Files): Remove lib/isnanl.h.
29791         (Depends-on): Add math.
29792         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29793         (Include): Specify <math.h> instead of isnanl.h.
29794         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29795         HAVE_ISNAN[FDL].
29796         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29797         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29798         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29799         * NEWS: Mention the change.
29800
29801 2008-10-18  Bruno Haible  <bruno@clisp.org>
29802
29803         Add getusershell(), setusershell(), endusershell() declarations to
29804         <unistd.h>.
29805         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29806         declarations.
29807         * lib/getusershell.c: Include unistd.h.
29808         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29809         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29810         HAVE_GETUSERSHELL.
29811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29812         and HAVE_GETUSERSHELL.
29813         * modules/getusershell (Depends-on): Add unistd, extensions.
29814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29815         (Include): Specify <unistd.h>.
29816         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29817         HAVE_GETUSERSHELL.
29818
29819 2008-10-18  Bruno Haible  <bruno@clisp.org>
29820
29821         Add a getloadavg() declaration to <stdlib.h>.
29822         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29823         getloadavg declaration.
29824         (getloadavg): New declaration.
29825         * lib/getloadavg.c: Include <stdlib.h> first.
29826         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29827         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29828         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29830         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29831         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29832         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29833         (Include): Specify <stdlib.h>.
29834         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29835         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29836
29837 2008-10-18  Bruno Haible  <bruno@clisp.org>
29838
29839         * lib/dirchownmod.c: Don't include lchmod.h.
29840
29841         Move the lchmod() declaration to <sys/stat.h>.
29842         * lib/lchmod.h: Remove file.
29843         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29844         (lchmod): New declaration, moved here from lib/lchown.h.
29845         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29846         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29847         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29848         and HAVE_LCHMOD.
29849         * modules/lchmod (Files): Remove lib/lchmod.h.
29850         (Depends-on): Add sys_stat, extensions.
29851         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29852         (Include): Specify <sys/stat.h> instead of lchmod.h.
29853         * modules/sys_stat (Depends-on): Add link-warning.
29854         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29855         definition of GL_LINK_WARNING.
29856         * NEWS: Mention the change.
29857
29858 2008-10-18  Bruno Haible  <bruno@clisp.org>
29859
29860         * lib/fchdir.c: Don't include dirfd.h.
29861         * lib/fts.c: Likewise.
29862         * lib/getcwd.c: Likewise.
29863         * lib/glob.c: Likewise.
29864
29865         Move the dirfd() declaration to <dirent.h>.
29866         * lib/dirfd.h: Remove file.
29867         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29868         (dirfd): New declaration.
29869         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29870         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29871         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29872         HAVE_DECL_DIRFD.
29873         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29874         HAVE_DECL_DIRFD.
29875         * modules/dirfd (Files): Remove lib/dirfd.h.
29876         (Depends-on): Add dirent, extensions.
29877         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29878         (Include): Specify <dirent.h> instead of dirfd.h.
29879         * modules/dirent (Depends-on): Add link-warning.
29880         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29881         definition of GL_LINK_WARNING.
29882         * NEWS: Mention the change.
29883
29884 2008-10-18  Bruno Haible  <bruno@clisp.org>
29885
29886         Move the euidaccess() declaration to <unistd.h>.
29887         * lib/euidaccess.h: Remove file.
29888         * lib/unistd.in.h (euidaccess): New declaration.
29889         * lib/euidaccess.c: Don't include euidaccess.h.
29890         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29891         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29893         and HAVE_EUIDACCESS.
29894         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29895         (Depends-on): Add unistd.
29896         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29897         (Include): Specify <unistd.h> instead of euidaccess.h.
29898         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29899         HAVE_EUIDACCESS.
29900         * NEWS: Mention the change.
29901
29902 2008-10-18  Bruno Haible  <bruno@clisp.org>
29903
29904         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29905
29906         Move the getdomainname() declaration to <unistd.h>.
29907         * lib/getdomainname.h: Remove file.
29908         * lib/unistd.in.h (getdomainname): New declaration.
29909         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29910         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29911         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29912         HAVE_GETDOMAINNAME.
29913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29914         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29915         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29916         (Depends-on): Add unistd, extensions.
29917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29918         (Includes): Specify <unistd.h> instead of getdomainname.h.
29919         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29920         HAVE_GETDOMAINNAME.
29921         * NEWS: Mention the change.
29922
29923 2008-10-18  Bruno Haible  <bruno@clisp.org>
29924
29925         * modules/dirent: New file.
29926         * m4/dirent_h.m4: New file.
29927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29928         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29929         * modules/fchdir (Files): Remove lib/dirent.in.h.
29930         (Depends-on): Add dirent.
29931         (Makefile.am): Move rules to modules/dirent.
29932         * doc/posix-headers/dirent.texi: Mention the new module.
29933
29934 2008-10-18  Bruno Haible  <bruno@clisp.org>
29935
29936         Avoid -Wunused-parameter warnings in public gnulib header files.
29937         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29938         macro.
29939         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29940
29941 2008-10-18  Bruno Haible  <bruno@clisp.org>
29942
29943         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29944         * doc/glibc-functions/error.texi: Mention the module 'error'.
29945         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29946         * doc/glibc-functions/getdomainname.texi: Mention the module
29947         'getdomainname'.
29948         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29949         * doc/glibc-functions/getpagesize.texi: Mention the module
29950         'getpagesize'.
29951         * doc/glibc-functions/getusershell.texi: Mention the module
29952         'getusershell'.
29953         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29954         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29955         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29956         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29957         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29958         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29959         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29960         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29961         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29962         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29963         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29964         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29965         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29966         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29967
29968 2008-10-17  Bruno Haible  <bruno@clisp.org>
29969
29970         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29971         HP-UX and IRIX, use -0.0L.
29972         * tests/test-ceill.c (minus_zero): Likewise.
29973         * tests/test-floorl.c (minus_zero): Likewise.
29974         * tests/test-frexpl.c (minus_zero): Likewise.
29975         * tests/test-isnan.c (minus_zerol): Likewise.
29976         * tests/test-isnanl.h (minus_zero): Likewise.
29977         * tests/test-ldexpl.c (minus_zero): Likewise.
29978         * tests/test-roundl.c (minus_zero): Likewise.
29979         * tests/test-signbit.c (minus_zerol): Likewise.
29980         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29981         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29982         * tests/test-truncl.c (minus_zero): Likewise.
29983         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29984         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29985         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29986         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29987
29988 2008-10-17  Bruno Haible  <bruno@clisp.org>
29989
29990         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29991         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29992         that it gets activated only for gcc >= 3.0.
29993         * lib/dirent.in.h: Likewise.
29994         * lib/errno.in.h: Likewise.
29995         * lib/fcntl.in.h: Likewise.
29996         * lib/float.in.h: Likewise.
29997         * lib/iconv.in.h: Likewise.
29998         * lib/inttypes.in.h: Likewise.
29999         * lib/locale.in.h: Likewise.
30000         * lib/math.in.h: Likewise.
30001         * lib/netdb.in.h: Likewise.
30002         * lib/netinet_in.in.h: Likewise.
30003         * lib/search.in.h: Likewise.
30004         * lib/signal.in.h: Likewise.
30005         * lib/spawn.in.h: Likewise.
30006         * lib/stdarg.in.h: Likewise.
30007         * lib/stdint.in.h: Likewise.
30008         * lib/stdio.in.h: Likewise.
30009         * lib/stdlib.in.h: Likewise.
30010         * lib/string.in.h: Likewise.
30011         * lib/strings.in.h: Likewise.
30012         * lib/sys_file.in.h: Likewise.
30013         * lib/sys_ioctl.in.h: Likewise.
30014         * lib/sys_select.in.h: Likewise.
30015         * lib/sys_socket.in.h: Likewise.
30016         * lib/sys_stat.in.h: Likewise.
30017         * lib/sys_time.in.h: Likewise.
30018         * lib/sysexits.in.h: Likewise.
30019         * lib/time.in.h: Likewise.
30020         * lib/unistd.in.h: Likewise.
30021         * lib/wchar.in.h: Likewise.
30022         * lib/wctype.in.h: Likewise.
30023         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30024
30025 2008-10-17  Jim Meyering  <meyering@redhat.com>
30026
30027         ignore-value: don't depend on inline module
30028         * modules/ignore-value (Depends-on): Remove 'inline'.
30029         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30030         Suggestion from Bruno Haible.
30031
30032 2008-10-17  Bruno Haible  <bruno@clisp.org>
30033
30034         New implementation of condition variables for Win32.
30035         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30036         (gl_linked_waitqueue_t): New type.
30037         (gl_cond_t): Use it.
30038         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30039         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30040         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30041         (glthread_cond_init_func, glthread_cond_wait_func,
30042         glthread_cond_timedwait_func, glthread_cond_signal_func,
30043         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30044         Reimplemented on the basis of gl_linked_waitqueue_t.
30045         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30046         gl_waitqueue_t.
30047         (gl_rwlock_t): Update.
30048         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30049
30050 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30051
30052         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30053         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30054
30055 2008-10-17  Jim Meyering  <meyering@redhat.com>
30056
30057         ignore-value: new module
30058         * modules/ignore-value: New file.
30059         * lib/ignore-value.h: New file.
30060         * MODULES.html.sh (Compiler warning management): New section,
30061         just for this module.  More to come.
30062
30063 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30064
30065         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30066         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30067         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30068
30069 2008-10-16  Jim Meyering  <meyering@redhat.com>
30070
30071         openat-die.c: avoid 'no previous prototype' warning
30072         * lib/openat-die.c: Include "openat.h".
30073         Reported by Reuben Thomas <rrt@sc3d.org>.
30074
30075 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30076
30077         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30078         * lib/netdb.in.h: Fix typo.
30079         Reported by Bruno Haible  <bruno@clisp.org>
30080
30081         * lib/netdb.in.h: Include sys/socket.h for platforms without
30082         netdb.h, to get structures like hostent on MinGW.
30083         * modules/netdb (Depends-on): Add sys_socket.
30084
30085 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30086
30087         * modules/netdb, modules/netdb-tests: New file.
30088         * m4/netdb_h.m4: New file.
30089         * lib/netdb.in.h: Add, currently just an empty file pending
30090         definitions.
30091         * tests/test-netdb.c: New file.
30092         * doc/posix-headers/netdb.texi: Mention that we replace it if
30093         needed.
30094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30095         netdb.
30096
30097 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30098
30099         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30100         with code.
30101
30102 2008-10-13  Bruno Haible  <bruno@clisp.org>
30103
30104         * lib/glthread/cond.c (glthread_cond_wait_func,
30105         glthread_cond_timedwait_func): Add a comment.
30106
30107 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30108
30109         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30110         * tests/test-select.c: Likewise,
30111
30112 2008-10-13  Bruno Haible  <bruno@clisp.org>
30113
30114         * lib/glthread/cond.c (glthread_cond_wait_func,
30115         glthread_cond_timedwait_func): Fix variable name.
30116         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30117
30118 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30119
30120         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30121         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30122         struct sockaddr.sa_len.
30123         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30124
30125 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30126
30127         * build-aux/pmccabe2html: Add css and css_url parameters.
30128
30129 2008-10-12  Bruno Haible  <bruno@clisp.org>
30130
30131         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30132         calling aclx_get.
30133         Reported by Rainer Tammer <tammer@tammer.net>.
30134
30135 2008-10-12  Bruno Haible  <bruno@clisp.org>
30136
30137         Use msvcrt aware primitives for creation/termination of Win32 threads.
30138         * lib/glthread/thread.c: Include <process.h>.
30139         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30140         (wrapper_func): Update signature.
30141         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30142
30143 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30144             Bruno Haible  <bruno@clisp.org>
30145
30146         Provide a Win32 implementation of the 'cond' module.
30147         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30148         * lib/glthread/cond.c (glthread_cond_init_func,
30149         glthread_cond_wait_func, glthread_cond_timedwait_func,
30150         glthread_cond_signal_func, glthread_cond_broadcast_func,
30151         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30152         * modules/cond (Dependencies): Add gettimeofday.
30153
30154 2008-10-11  Bruno Haible  <bruno@clisp.org>
30155
30156         Make sleep work on older versions of mingw.
30157         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30158         only whether it exists.
30159         * doc/posix-functions/sleep.texi: Mention the problem with older
30160         versions of mingw.
30161
30162 2008-10-11  Bruno Haible  <bruno@clisp.org>
30163
30164         New module 'shutdown'.
30165         * modules/shutdown: New file.
30166         * lib/sys_socket.in.h (shutdown): New declaration.
30167         * lib/winsock.c (shutdown): New function.
30168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30169         GNULIB_SHUTDOWN.
30170         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30171         * doc/posix-functions/shutdown.texi: Document the new module.
30172
30173 2008-10-11  Jim Meyering  <meyering@redhat.com>
30174
30175         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30176
30177 2008-10-11  Bruno Haible  <bruno@clisp.org>
30178
30179         New module 'fclose'.
30180         * modules/fclose: New file.
30181         * lib/stdio.in.h (fclose): New declaration.
30182         * lib/fclose.c: New file.
30183         * m4/fclose.m4: New file.
30184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30185         REPLACE_FCLOSE.
30186         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30187         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30188         REPLACE_FCLOSE.
30189         * modules/close (Depends-on): fclose.
30190         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30191
30192 2008-10-11  Bruno Haible  <bruno@clisp.org>
30193
30194         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30195         set errno and don't call _close.
30196
30197 2008-10-10  Bruno Haible  <bruno@clisp.org>
30198
30199         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30200         ACL, not afterwards. Fixes test failure on Cygwin.
30201
30202 2008-10-09  Ben Pfaff  <blp@gnu.org>
30203
30204         * build-aux/announce-gen: Fix gnulib version related part of usage
30205         message.  Die with a useful error message if no tarballs are
30206         found.
30207
30208 2008-10-10  Jim Meyering  <meyering@redhat.com>
30209
30210         bootstrap: use git's --depth=N option only if it's supported
30211         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30212         recognize the --depth option.  Reported by Pádraig Brady.
30213
30214 2008-10-09  Bruno Haible  <bruno@clisp.org>
30215
30216         New module 'ioctl'.
30217         * modules/ioctl: New file.
30218         * lib/sys_socket.in.h (ioctl): Remove declaration.
30219         * lib/winsock.c: Include <sys/ioctl.h>.
30220         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30221         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30222         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30223         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30224         * doc/posix-functions/ioctl.texi: Mention the new module.
30225
30226 2008-10-09  Bruno Haible  <bruno@clisp.org>
30227
30228         New module 'sys_ioctl'.
30229         * lib/sys_ioctl.in.h: New file.
30230         * m4/sys_ioctl_h.m4: New file.
30231         * modules/sys_ioctl: New file.
30232         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30233
30234 2008-10-09  Bruno Haible  <bruno@clisp.org>
30235
30236         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30237         * lib/winsock.c: Include <stdarg.h>.
30238         (rpl_ioctl): Change to second argument 'int' and then varargs.
30239
30240 2008-10-09  Bruno Haible  <bruno@clisp.org>
30241
30242         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30243         when the sys_socket module is present and the system has <winsock2.h>.
30244
30245 2008-10-09  Bruno Haible  <bruno@clisp.org>
30246
30247         * doc/posix-functions/close.texi: Mention module 'close' instead of
30248         module 'sys_socket'.
30249
30250 2008-10-09  Bruno Haible  <bruno@clisp.org>
30251
30252         * doc/glibc-headers/sys_ioctl.texi: New file.
30253         * doc/gnulib.texi: Include it.
30254
30255 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30256             Bruno Haible  <bruno@clisp.org>
30257
30258         Combine the two replacements of 'close'.
30259         * lib/sys_socket.in.h (close): Define to a reminder to include
30260         <unistd.h>.
30261         (_gl_close_fd_maybe_socket): New declaration.
30262         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30263         * lib/winsock.c (close): Remove undefinition.
30264         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30265         needed for the gnulib module 'close'.
30266         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30267         define to an error symbol or to a warning, if suitable.
30268         * lib/close.c: Include <sys/socket.h>.
30269         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30270         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30271         UNISTD_H_HAVE_WINSOCK2_H.
30272         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30274         UNISTD_H_HAVE_WINSOCK2_H.
30275         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30276         (configure.ac): Set a module indicator.
30277         (Makefile.am): Substitute GNULIB_CLOSE.
30278         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30279         * modules/poll-tests (Depends-on): Add close.
30280         * modules/select-tests (Depends-on): Likewise.
30281
30282 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30283             Bruno Haible  <bruno@clisp.org>
30284
30285         New module 'close'.
30286         * modules/close: New file.
30287         * lib/unistd.in.h (close): Move declaration out of the
30288         FCHDIR_REPLACEMENT scope.
30289         (_gl_unregister_fd): New declaration.
30290         * lib/close.c: New file.
30291         * lib/fchdir.c (rpl_close): Remove function.
30292         * m4/close.m4: New file.
30293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30294         close.
30295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30296         REPLACE_CLOSE.
30297         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30298         REPLACE_CLOSE.
30299         * modules/fchdir (Depends-on): Add close.
30300
30301 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30302             Bruno Haible  <bruno@clisp.org>
30303
30304         * lib/fcntl.in.h (open): Simplify conditionals.
30305         (_gl_register_fd): New declaration.
30306         * lib/fchdir.c (rpl_open): Remove function.
30307         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30308         also.
30309         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30311         open.
30312
30313 2008-10-09  Jim Meyering  <meyering@redhat.com>
30314
30315         GNUmakefile: use the more name-space-friendly "_version"
30316         * top/GNUmakefile (_dummy): Update.
30317         (_version): Rename from "version".
30318
30319 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30320             Bruno Haible  <bruno@clisp.org>
30321
30322         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30323         rpl_close.
30324         (_gl_register_fd): New function, extracted from rpl_open.
30325         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30326         (rpl_open, rpl_opendir): Use _gl_register_fd.
30327
30328 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30329
30330         Fix organization of 'open' replacement.
30331         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30332         (gl_FUNC_OPEN): Use it.
30333         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30334
30335 2008-10-08  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30338
30339 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30340
30341         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30342         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30343         listen).
30344
30345 2008-10-08  Eric Blake  <ebb9@byu.net>
30346
30347         GNUmakefile: add 'make version' target
30348         * top/GNUmakefile (_curr-ver): Split version update rules...
30349         (version): ...into a target.
30350
30351 2008-10-07  Bruno Haible  <bruno@clisp.org>
30352
30353         Use a more portable replacement expression for -0.0L.
30354         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30355         instead of -0.0L. Fix m4 quotation.
30356
30357         * tests/test-signbit.c: Include <float.h>.
30358         (minus_zero): New variable.
30359         (test_signbitl): Use minus_zero instead of -zero.
30360         * modules/signbit-tests (Depends-on): Add float.
30361
30362         * tests/test-ceill.c: Include <float.h>.
30363         (zero): Remove variable.
30364         (minus_zero): New variable.
30365         (main): Use minus_zero instead of -zero.
30366         * modules/ceill-tests (Depends-on): Add float.
30367
30368         * tests/test-floorl.c: Include <float.h>.
30369         (zero): Remove variable.
30370         (minus_zero): New variable.
30371         (main): Use minus_zero instead of -zero.
30372         * modules/floorl-tests (Depends-on): Add float.
30373
30374         * tests/test-roundl.c: Include <float.h>.
30375         (zero): Remove variable.
30376         (minus_zero): New variable.
30377         (main): Use minus_zero instead of -zero.
30378         * modules/roundl-tests (Depends-on): Add float.
30379
30380         * tests/test-truncl.c: Include <float.h>.
30381         (zero): Remove variable.
30382         (minus_zero): New variable.
30383         (main): Use minus_zero instead of -zero.
30384         * modules/truncl-tests (Depends-on): Add float.
30385
30386         * tests/test-frexpl.c (zero): Remove variable.
30387         (minus_zero): New variable.
30388         (main): Use minus_zero instead of -zero.
30389         * modules/frexpl-tests (Depends-on): Add float.
30390
30391         * tests/test-isnan.c (zerol): Remove variable.
30392         (minus_zerol): New variable.
30393         (test_long_double): Use minus_zerol instead of -zerol.
30394         * modules/isnan-tests (Depends-on): Add float.
30395
30396         * tests/test-isnanl.h (zero): Remove variable.
30397         (minus_zero): New variable.
30398         (main): Use minus_zero instead of -zero.
30399         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30400         * modules/isnanl-tests (Depends-on): Add float.
30401
30402         * tests/test-ldexpl.c (zero): Remove variable.
30403         (minus_zero): New variable.
30404         (main): Use minus_zero instead of -zero.
30405         * modules/ldexpl-tests (Depends-on): Add float.
30406
30407         * tests/test-snprintf-posix.h (zerol): Remove variable.
30408         (minus_zerol): New variable.
30409         (test_function): Use minus_zerol instead of -zerol.
30410         * modules/snprintf-posix-tests (Depends-on): Add float.
30411         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30412
30413         * tests/test-sprintf-posix.h (zerol): Remove variable.
30414         (minus_zerol): New variable.
30415         (test_function): Use minus_zerol instead of -zerol.
30416         * modules/sprintf-posix-tests (Depends-on): Add float.
30417         * modules/vsprintf-posix-tests (Depends-on): Add float.
30418
30419         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30420         (minus_zerol): New variable.
30421         (test_function): Use minus_zerol instead of -zerol.
30422         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30423
30424         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30425         (minus_zerol): New variable.
30426         (test_function): Use minus_zerol instead of -zerol.
30427         * modules/vasprintf-posix-tests (Depends-on): Add float.
30428
30429 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30430
30431         * MODULES.html.sh (Support for building documentation): Mention
30432         pmccabe2html.  Sort entries.
30433
30434         Add pmccabe2html module, from gnupdf.
30435         * build-aux/pmccabe.css: New file.
30436         * build-aux/pmccabe2html: New file.
30437         * m4/pmccabe2html.m4: New file.
30438         * modules/pmccabe2html: New file.
30439
30440 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30441
30442         flock: new module
30443         * MODULES.html.sh: Add to list of modules.
30444         * lib/flock.c: flock implementation for Windows and Unix systems
30445         which have fcntl.
30446         * doc/glibc-functions/flock.texi: Update documentation.
30447         * lib/sys_file.in.h: <sys/file.h> header file.
30448         * m4/flock.m4: M4 macros.
30449         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30450         * modules/flock: flock module.
30451         * modules/flock-tests: flock tests module.
30452         * modules/sys_file: sys/file.h module.
30453         * tests/test-flock.c: test suite for flock.
30454
30455 2008-10-06  Jim Meyering  <meyering@redhat.com>
30456
30457         bootstrap: check for LT_INIT more portably still ;-)
30458         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30459         Spotted by Bruno Haible.
30460
30461 2008-10-06  Eric Blake  <ebb9@byu.net>
30462
30463         test-signbit: avoid tripping Irix cc bug on -0.0L
30464         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30465         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30466         entire testsuite consistent and avoids an Irix 6.2 bug.
30467
30468 2008-10-05  Bruno Haible  <bruno@clisp.org>
30469             Jim Meyering  <jim@meyering.net>
30470
30471         Add an option for ignoring EPIPE during close_stdout.
30472         * lib/closeout.h: Include <stdbool.h>.
30473         (close_stdout_set_ignore_EPIPE): New declaration.
30474         * lib/closeout.c: Include <stdbool.h>.
30475         (ignore_EPIPE): New variable.
30476         (close_stdout_set_ignore_EPIPE): New function.
30477         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30478         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30479         failure.
30480         * modules/closeout (Depends-on): Add stdbool.
30481
30482 2008-10-05  Bruno Haible  <bruno@clisp.org>
30483
30484         * modules/accept: New file.
30485         * modules/bind: New file.
30486         * modules/connect: New file.
30487         * modules/getpeername: New file.
30488         * modules/getsockname: New file.
30489         * modules/getsockopt: New file.
30490         * modules/listen: New file.
30491         * modules/recv: New file.
30492         * modules/recvfrom: New file.
30493         * modules/send: New file.
30494         * modules/sendto: New file.
30495         * modules/setsockopt: New file.
30496         * modules/socket: New file.
30497         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30498         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30499         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30500         the particular module is requested. Add a link warning when the
30501         particular module is not requested.
30502         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30503         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30504         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30505         the particular module is requested.
30506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30507         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30508         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30509         * modules/sys_socket (Depends-on): Add link-warning.
30510         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30511         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30512         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30513         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30514         GL_LINK_WARNING.
30515         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30516         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30517         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30518         * doc/posix-functions/getpeername.texi: Mention the new module
30519         'getpeername'.
30520         * doc/posix-functions/getsockname.texi: Mention the new module
30521         'getsockname'.
30522         * doc/posix-functions/getsockopt.texi: Mention the new module
30523         'getsockopt'.
30524         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30525         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30526         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30527         * doc/posix-functions/send.texi: Mention the new module 'send'.
30528         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30529         * doc/posix-functions/setsockopt.texi: Mention the new module
30530         'setsockopt'.
30531         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30532         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30533         listen, connect, accept.
30534         * modules/select-tests (Depends-on): Likewise.
30535
30536 2008-10-05  Bruno Haible  <bruno@clisp.org>
30537
30538         * lib/winsock.c (strerror): Remove unused #undef.
30539         (rpl_close): Remove unused local variable.
30540
30541         * modules/sys_socket (Depends-on); Add errno.
30542
30543 2008-10-05  Bruno Haible  <bruno@clisp.org>
30544
30545         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30546         (select): Add a link warning when the 'select' module is not used.
30547         * modules/sys_select (Depends-on): Add link-warning.
30548         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30549         Suggested by Paolo Bonzini.
30550
30551 2008-10-05  Jim Meyering  <meyering@redhat.com>
30552
30553         bootstrap: check for LT_INIT more portably
30554         * build-aux/bootstrap: Avoid using grep -E, since it's not
30555         portable enough.  Suggestion from Bruno Haible.
30556
30557 2008-10-05  Bruno Haible  <bruno@clisp.org>
30558
30559         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30560         as being fixed by gnulib.
30561
30562 2008-10-05  Bruno Haible  <bruno@clisp.org>
30563
30564         * modules/select-tests: New file, mostly copied from
30565         modules/sys_select-tests.
30566         * tests/test-select.c: New file, mostly copied from
30567         tests/test-sys_select.c.
30568         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30569         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30570         (Makefile.am): Remove test_sys_select_LDADD.
30571
30572         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30573         to an undefined symbol, for an error message.
30574         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30575         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30576         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30577         winsock-select.c here.
30578         * modules/sys_select (Files): Remove lib/winsock-select.c.
30579         (Depends-on): Remove alloca.
30580         (Makefile.am): Substitute GNULIB_SELECT.
30581         * modules/select: New file.
30582         * doc/posix-functions/select.texi: Update.
30583
30584 2008-10-05  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30587         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30588         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30589         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30590         getdtablesize.
30591         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30592         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30593
30594 2008-10-05  Bruno Haible  <bruno@clisp.org>
30595
30596         * modules/getdtablesize-tests: New file.
30597         * tests/test-getdtablesize.c: New file.
30598
30599         New module 'getdtablesize'.
30600         * lib/unistd.in.h (getdtablesize): New declaration.
30601         * lib/getdtablesize.c: New file.
30602         * m4/getdtablesize.m4: New file.
30603         * modules/getdtablesize: New file.
30604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30605         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30606         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30607         HAVE_GETDTABLESIZE.
30608         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30609
30610 2008-10-05  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/sched (Makefile.am): Fix typo.
30613         Reported by Simon Josefsson.
30614
30615 2008-10-05  Jim Meyering  <meyering@redhat.com>
30616
30617         bootstrap: check for LT_INIT, too
30618         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30619         are deprecated.  Suggestion from Ralf Wildenhues.
30620
30621 2008-10-05  Bruno Haible  <bruno@clisp.org>
30622
30623         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30624         overriding them by ours.
30625         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30626
30627 2008-10-05  Jim Meyering  <meyering@redhat.com>
30628
30629         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30630         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30631         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30632
30633 2008-10-04  Bruno Haible  <bruno@clisp.org>
30634
30635         * modules/dup2 (License): Change to LGPLv2+.
30636         * modules/sleep (License): Likewise.
30637         * modules/perror (License): Likewise.
30638         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30639         Blake.
30640         * modules/signal (License): Likewise.
30641         * modules/sigprocmask (License): Likewise.
30642         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30643         Meyering.
30644
30645 2008-10-04  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30648         Reported by Rainer Tammer <tammer@tammer.net>.
30649
30650 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30651             Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30654         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30655         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30656
30657 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30658
30659         filevercmp: new module
30660         * lib/filevercmp.h: New function filevercmp comparing version strings.
30661         * lib/filevercmp.c: Implementation of filevercmp function.
30662         * modules/filevercmp: Module metadata.
30663         * tests/test-filevercmp.c: Unit test for new module.
30664         * modules/filevercmp-tests: Unit test metadata.
30665         * MODULES.html.sh: Add filevercmp module.
30666
30667 2008-10-03  Bruno Haible  <bruno@clisp.org>
30668
30669         * lib/c-ctype.h: Add comment.
30670         Reported by Jim Meyering.
30671
30672 2008-10-02  Bruno Haible  <bruno@clisp.org>
30673
30674         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30675
30676 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30677
30678         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30679         name of bootstrap.conf accordingly.
30680
30681 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30682
30683         * build-aux/bootstrap: Install git-merge-changelog configuration
30684         items into .gitconfig if needed.
30685
30686 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30687
30688         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30689         git repository, and initialize/update it accordingly.
30690
30691 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30692
30693         * modules/fsync-tests: New file.
30694         * tests/test-fsync.c: New file.
30695
30696         New module 'fsync'.
30697         * lib/fsync.c: New file.
30698         * m4/fsync.m4: New file.
30699         * modules/fsync: New file.
30700         * lib/unistd.in.h (fsync): New declaration.
30701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30702         GNULIB_FSYNC and HAVE_FSYNC.
30703         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30704         * MODULES.html.sh (posix_functions): Add fsync.
30705         * doc/posix-functions/fsync.texi: Mention the new module.
30706
30707 2008-10-02  Jim Meyering  <meyering@redhat.com>
30708
30709         fts.c: sync with similar code from coreutils' remove.c
30710         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30711         Guard also with "#if defined __linux__", since for now at least,
30712         this code is Linux-kernel-specific.
30713
30714 2008-10-02  Jim Meyering  <meyering@redhat.com>
30715
30716         fts: bug fixes
30717         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30718         Include <sys/vfs.h>, not <sys/statfs.h>.
30719
30720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30721         Include <sys/vfs.h>, not <sys/statfs.h>.
30722
30723 2008-10-01  Bruno Haible  <bruno@clisp.org>
30724
30725         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30726         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30727         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30728         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30729         * doc/posix-functions/posix_spawnp.texi: Likewise.
30730         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30731         whether posix_spawn actually works.
30732         * m4/pipe.m4 (gl_PIPE): Likewise.
30733         * modules/execute (Files): Add m4/posix_spawn.m4.
30734         * modules/pipe (Files): Add m4/posix_spawn.m4.
30735         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30736
30737 2008-10-01  Jim Meyering  <meyering@redhat.com>
30738
30739         remove trailing spaces
30740         * NEWS: Likewise.
30741         * lib/poll.c (poll): Likewise.
30742         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30743         * lib/winsock.c (rpl_close): Likewise.
30744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30745         * modules/yield: Likewise.
30746         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30747         * tests/test-sys_select.c (connect_to_socket): Likewise.
30748
30749         fts.c: adjust a new interface to be more generally useful
30750         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30751         (fts_build): Adjust caller.
30752
30753 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30754
30755         * modules/cond-tests: New file.
30756         * tests/test-cond.c: New file.
30757
30758 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30759             Bruno Haible  <bruno@clisp.org>
30760
30761         * modules/cond (Dependencies): Add errno, time.
30762         * lib/glthread/cond.h: Include <time.h>.
30763         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30764         across platforms.
30765
30766 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30767             Bruno Haible  <bruno@clisp.org>
30768
30769         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30770
30771 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30772             Bruno Haible  <bruno@clisp.org>
30773
30774         * modules/tls-tests (Depends-on): Add thread, yield.
30775         (configure.ac): Remove all checks.
30776         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30777         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30778         gl_thread_self): Remove definitions. Include glthread/thread.h and
30779         glthread/yield.h instead.
30780         (test_tls): Pass an additional NULL argument to gl_thread_join.
30781
30782 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30783             Bruno Haible  <bruno@clisp.org>
30784
30785         * modules/lock-tests (Depends-on): Add thread, yield.
30786         (configure.ac): Remove all checks.
30787         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30788         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30789         gl_thread_self): Remove definitions. Include glthread/thread.h and
30790         glthread/yield.h instead.
30791         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30792         additional NULL argument to gl_thread_join.
30793
30794 2008-09-30  Bruno Haible  <bruno@clisp.org>
30795
30796         Fix the Win32 implementation of the 'thread' module.
30797         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30798         pointer type.
30799         (gl_thread_self): Invoke gl_thread_self_func.
30800         (gl_thread_self_func): New declaration.
30801         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30802         (do_init_self_key, init_self_key): New functions.
30803         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30804         Remove some fields.
30805         (running_threads, running_lock): Remove variables.
30806         (get_current_thread_handle): New function.
30807         (gl_thread_self_func, wrapper_func, glthread_create_func,
30808         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30809         simplified.
30810
30811 2008-09-30  Bruno Haible  <bruno@clisp.org>
30812
30813         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30814         files.
30815
30816 2008-09-30  Jim Meyering  <meyering@redhat.com>
30817
30818         fts.m4: correct the test for statfs.f_type
30819         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30820         when checking for statfs.f_type.
30821
30822 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30823
30824         tests: avoid some compiler warnings
30825         * tests/test-memchr.c (main): Pass NULL indirectly.
30826         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30827
30828 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30829
30830         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30831         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30832         exactly specified dayshifts.
30833         (dayshift): New rule.
30834         (rel): Add dayshift.
30835         (relative_time_table) [tomorrow, yesterday, today, now]:
30836         Use tDAY_SHIFT in place of tDAY_UNIT.
30837         * tests/test-getdate.c: Add tests for now-disallowed countable
30838         dayshifts, e.g., "4 yesterday ago".
30839
30840 2008-09-29  Bruno Haible  <bruno@clisp.org>
30841
30842         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30843         * tests/test-posix_spawn1.in.sh: Renamed from
30844         tests/test-posix_spawn.in.sh.
30845         * tests/test-posix_spawn2.c: New file.
30846         * tests/test-posix_spawn2.in.sh: New file.
30847         * modules/posix_spawnp-tests (Files): Update.
30848         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30849
30850 2008-09-29  Bruno Haible  <bruno@clisp.org>
30851
30852         Propagate effects of putenv/setenv/unsetenv to child processes.
30853         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30854         * lib/pipe.c (create_pipe): Likewise.
30855
30856 2008-09-29  Bruno Haible  <bruno@clisp.org>
30857
30858         Enable use of shell scripts as executables in mingw.
30859         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30860         run the program as a shell script.
30861         * lib/pipe.c (create_pipe): Likewise.
30862         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30863         resulting array.
30864
30865 2008-09-29  Eric Blake  <ebb9@byu.net>
30866
30867         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30868
30869 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30870
30871         * doc/posix-functions/accept.texi: Update mingw problems.
30872         * doc/posix-functions/bind.texi: Update mingw problems.
30873         * doc/posix-functions/close.texi: Update mingw problems.
30874         * doc/posix-functions/connect.texi: Update mingw problems.
30875         * doc/posix-functions/getpeername.texi: Update mingw problems.
30876         * doc/posix-functions/getsockname.texi: Update mingw problems.
30877         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30878         * doc/posix-functions/ioctl.texi: Update mingw problems.
30879         * doc/posix-functions/listen.texi: Update mingw problems.
30880         * doc/posix-functions/recv.texi: Update mingw problems.
30881         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30882         * doc/posix-functions/select.texi: Update mingw problems.
30883         * doc/posix-functions/send.texi: Update mingw problems.
30884         * doc/posix-functions/sendto.texi: Update mingw problems.
30885         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30886         * doc/posix-functions/socket.texi: Update mingw problems.
30887
30888 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30889             Bruno Haible  <bruno@clisp.org>
30890
30891         * lib/sys_select.in.h: Include sys/time.h.
30892         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30893         * modules/sys_select: Depend on sys_time.
30894         * tests/test-sys_select.c: Test that sys/select.h defines struct
30895         timeval fully.
30896
30897 2008-09-29  Bruno Haible  <bruno@clisp.org>
30898
30899         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30900         * lib/sys_select.in.h: Likewise.
30901
30902 2008-09-29  Bruno Haible  <bruno@clisp.org>
30903
30904         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30905
30906 2008-09-29  Bruno Haible  <bruno@clisp.org>
30907
30908         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30909         Set LIBSOCKET instead of augmenting LIBS.
30910         * modules/sockets (Link): New section.
30911         * modules/sockets-tests (test_sockets_LDADD): New variable.
30912         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30913         * modules/poll-tests (test_poll_LDADD): New variable.
30914         * NEWS: Document the change.
30915
30916 2008-09-29  Bruno Haible  <bruno@clisp.org>
30917
30918         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30919         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30920         ARPA_INET_H directly.
30921         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30922
30923 2008-09-28  Bruno Haible  <bruno@clisp.org>
30924
30925         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30926         from gl_HEADER_SYS_SOCKET.
30927         (gl_HEADER_SYS_SOCKET): Invoke it.
30928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30929
30930 2008-09-28  Bruno Haible  <bruno@clisp.org>
30931
30932         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30933         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30934         Needed on OSF/1 4.0.
30935
30936 2008-09-28  Bruno Haible  <bruno@clisp.org>
30937
30938         Override open more carefully.
30939         * lib/open.c (orig_open): New function.
30940         (rpl_open): Use orig_open instead of open.
30941         * lib/fcntl.in.h: Add special invocation convention.
30942         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30943         (gl_FUNC_OPEN): Invoke it.
30944
30945         Override freopen more carefully.
30946         * lib/freopen.c (orig_freopen): New function.
30947         (rpl_freopen): Use orig_freopen instead of freopen.
30948         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30949         (gl_FUNC_FREOPEN): Invoke it.
30950
30951         Override fopen more carefully.
30952         * lib/fopen.c (orig_fopen): New function.
30953         (rpl_fopen): Use orig_fopen instead of fopen.
30954         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30955         (gl_FUNC_FOPEN): Invoke it.
30956         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30957
30958 2008-09-28  Bruno Haible  <bruno@clisp.org>
30959
30960         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30961         SIGPIPE.
30962
30963 2008-09-28  Bruno Haible  <bruno@clisp.org>
30964
30965         * tests/test-sigaction.c (handler, main): Disable the check whether
30966         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30967         glibc systems with LinuxThreads.
30968
30969 2008-09-28  Bruno Haible  <bruno@clisp.org>
30970
30971         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30972
30973         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30974         with AIX xlc.
30975         * lib/fcntl.in.h (open): Likewise.
30976         Reported by Rainer Tammer <tammer@tammer.net>.
30977
30978 2008-09-28  Bruno Haible  <bruno@clisp.org>
30979
30980         * modules/posix_spawnp-tests: New file.
30981         * tests/test-posix_spawn.c: New file.
30982         * tests/test-posix_spawn.in.sh: New file.
30983
30984         New module 'posix_spawnp'.
30985         * modules/posix_spawnp: New file.
30986         * lib/spawnp.c: New file, from GNU libc with modifications.
30987         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30988
30989         New module 'posix_spawn'.
30990         * modules/posix_spawn: New file.
30991         * lib/spawn.c: New file, from GNU libc with modifications.
30992         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30993
30994         New module 'posix_spawnattr_destroy'.
30995         * modules/posix_spawnattr_destroy: New file.
30996         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30997         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30998         module.
30999
31000         New module 'posix_spawnattr_setsigmask'.
31001         * modules/posix_spawnattr_setsigmask: New file.
31002         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31003         modifications.
31004         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31005         new module.
31006
31007         New module 'posix_spawnattr_getsigmask'.
31008         * modules/posix_spawnattr_getsigmask: New file.
31009         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31010         modifications.
31011         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31012         new module.
31013
31014         New module 'posix_spawnattr_setsigdefault'.
31015         * modules/posix_spawnattr_setsigdefault: New file.
31016         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31017         modifications.
31018         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31019         new module.
31020
31021         New module 'posix_spawnattr_getsigdefault'.
31022         * modules/posix_spawnattr_getsigdefault: New file.
31023         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31024         modifications.
31025         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31026         new module.
31027
31028         New module 'posix_spawnattr_setschedpolicy'.
31029         * modules/posix_spawnattr_setschedpolicy: New file.
31030         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31031         modifications.
31032         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31033         new module.
31034
31035         New module 'posix_spawnattr_getschedpolicy'.
31036         * modules/posix_spawnattr_getschedpolicy: New file.
31037         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31038         modifications.
31039         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31040         new module.
31041
31042         New module 'posix_spawnattr_setschedparam'.
31043         * modules/posix_spawnattr_setschedparam: New file.
31044         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31045         modifications.
31046         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31047         new module.
31048
31049         New module 'posix_spawnattr_getschedparam'.
31050         * modules/posix_spawnattr_getschedparam: New file.
31051         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31052         modifications.
31053         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31054         new module.
31055
31056         New module 'posix_spawnattr_setpgroup'.
31057         * modules/posix_spawnattr_setpgroup: New file.
31058         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31059         modifications.
31060         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31061         module.
31062
31063         New module 'posix_spawnattr_getpgroup'.
31064         * modules/posix_spawnattr_getpgroup: New file.
31065         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31066         modifications.
31067         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31068         module.
31069
31070         New module 'posix_spawnattr_setflags'.
31071         * modules/posix_spawnattr_setflags: New file.
31072         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31073         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31074         module.
31075
31076         New module 'posix_spawnattr_getflags'.
31077         * modules/posix_spawnattr_getflags: New file.
31078         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31079         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31080         module.
31081
31082         New module 'posix_spawnattr_init'.
31083         * modules/posix_spawnattr_init: New file.
31084         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31085         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31086         module.
31087
31088         New module 'posix_spawn_file_actions_destroy'.
31089         * modules/posix_spawn_file_actions_destroy: New file.
31090         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31091         modifications.
31092         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31093         the new module.
31094
31095         New module 'posix_spawn_file_actions_addopen'.
31096         * modules/posix_spawn_file_actions_addopen: New file.
31097         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31098         modifications.
31099         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31100         the new module.
31101
31102         New module 'posix_spawn_file_actions_adddup2'.
31103         * modules/posix_spawn_file_actions_adddup2: New file.
31104         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31105         modifications.
31106         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31107         the new module.
31108
31109         New module 'posix_spawn_file_actions_addclose'.
31110         * modules/posix_spawn_file_actions_addclose: New file.
31111         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31112         modifications.
31113         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31114         the new module.
31115
31116         New module 'posix_spawn_file_actions_init'.
31117         * modules/posix_spawn_file_actions_init: New file.
31118         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31119         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31120         new module.
31121
31122         New module 'posix_spawn-internal'.
31123         * modules/posix_spawn-internal: New file.
31124         * lib/spawn_int.h: New file, from GNU libc with modifications.
31125         * lib/spawni.c: New file, from GNU libc with modifications.
31126         * m4/posix_spawn.m4: New file.
31127
31128         New module 'spawn'.
31129         * modules/spawn: New file.
31130         * lib/spawn.in.h: New file, from GNU libc with modifications.
31131         * m4/spawn_h.m4: New file.
31132         * doc/posix-headers/spawn.texi: Mention the new module.
31133
31134 2008-09-28  Bruno Haible  <bruno@clisp.org>
31135
31136         * modules/sched-tests: New file.
31137         * tests/test-sched.c: New file.
31138
31139         New module 'sched'.
31140         * modules/sched: New file.
31141         * lib/sched.in.h: New file.
31142         * m4/sched_h.m4: New file.
31143         * doc/posix-headers/sched.texi: Mention the new module.
31144
31145 2008-09-27  Eric Blake  <ebb9@byu.net>
31146
31147         Fix previous patch, and tweak references to $0.
31148         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31149         (func_version, func_gnulib_dir): Don't call this program
31150         gnulib-tool.
31151         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31152         with using $0 in function.
31153         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31154         (func_fatal_error): Reuse the name the user invoked us with.
31155
31156 2008-09-27  Bruno Haible  <bruno@clisp.org>
31157
31158         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31159         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31160         (gl_ICONV_H): Not here.
31161         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31162         instead of assigning ICONV_H directly.
31163
31164         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31166         WCHAR_H directly.
31167
31168 2008-09-27  Bruno Haible  <bruno@clisp.org>
31169
31170         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31171         * modules/arpa_inet (Depends-on): Add link-warning.
31172         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31173         * modules/unistd (Makefile.am): Likewise.
31174
31175 2008-09-26  Bruno Haible  <bruno@clisp.org>
31176
31177         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31178         variables.
31179         (func_version): Essentially copied from gnulib-tool.
31180         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31181         func_readlink): Copied from gnulib-tool.
31182
31183 2008-09-26  Bruno Haible  <bruno@clisp.org>
31184
31185         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31186         invoking git-version-gen.
31187
31188 2008-09-26  Bruno Haible  <bruno@clisp.org>
31189
31190         * posix-modules: Update to directory names changed on 2008-01-19.
31191         Remove commas in output before splitting into words. No more need to
31192         avoid 'ftruncate' since 2007-02-19.
31193
31194 2008-09-26  Bruno Haible  <bruno@clisp.org>
31195
31196         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31197
31198 2008-09-26  Bruno Haible  <bruno@clisp.org>
31199
31200         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31201         * modules/fwriteerror (Depends-on): Add errno.
31202
31203 2008-09-26  Bruno Haible  <bruno@clisp.org>
31204
31205         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31206         * tests/test-vc-list-files-cvs.sh: Likewise.
31207
31208 2008-09-26  Bruno Haible  <bruno@clisp.org>
31209
31210         * doc/posix-headers/sys_resource.texi: Reorder items.
31211
31212 2008-09-26  Jim Meyering  <meyering@redhat.com>
31213
31214         fts: tweak inode comparison function
31215         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31216         inode numbers, as documented.
31217
31218         fts: sort dirent entries on inode number before traversing
31219         This avoids a quadratic, seek-related performance penalty when
31220         operating on a directory containing many entries (measurable at 10k;
31221         3.5 hours at 2 million entries with a cold cache) on certain types
31222         of file systems, including ext3 and ext4, but not tmpfs.
31223         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31224         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31225         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31226         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31227         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31228         (fts_build): Set the stat.st_ino member from D_INO.
31229         If it is likely to be useful, sort dirent entries on inode number.
31230
31231         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31232         and the struct statfs.f_type member.
31233         * modules/fts (Depends-on): Add d-ino.
31234
31235 2008-09-26  Bruno Haible  <bruno@clisp.org>
31236
31237         * modules/sigpipe-die (Depends-on): Add sigpipe.
31238
31239         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31240         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31241         and GNULIB_STDIO_H_SIGPIPE are set.
31242         * lib/stdio-write.c: New file.
31243         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31244         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31245         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31246         REPLACE_STDIO_WRITE_FUNCS.
31247         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31248         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31249         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31250         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31251         * modules/stdio (Files): Add lib/stdio-write.c.
31252         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31253         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31254         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31255         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31256         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31257         REPLACE_FPRINTF_POSIX.
31258         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31259         REPLACE_PRINTF_POSIX.
31260         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31261         REPLACE_VFPRINTF_POSIX.
31262         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31263         REPLACE_VPRINTF_POSIX.
31264         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31265         SIGPIPE issue.
31266         * doc/posix-functions/fputc.texi: Likewise.
31267         * doc/posix-functions/fputs.texi: Likewise.
31268         * doc/posix-functions/fwrite.texi: Likewise.
31269         * doc/posix-functions/printf.texi: Likewise.
31270         * doc/posix-functions/putc.texi: Likewise.
31271         * doc/posix-functions/putchar.texi: Likewise.
31272         * doc/posix-functions/puts.texi: Likewise.
31273         * doc/posix-functions/vfprintf.texi: Likewise.
31274         * doc/posix-functions/vprintf.texi: Likewise.
31275
31276         * modules/safe-write (Depends-on): Add write.
31277
31278         * modules/sigpipe-tests: New file.
31279         * tests/test-sigpipe.c: New file.
31280         * tests/test-sigpipe.sh: New file.
31281
31282         * modules/write: New file.
31283         * lib/unistd.in.h: Include <sys/types.h>.
31284         (write): New declaration.
31285         * lib/write.c: New file.
31286         * m4/write.m4: New file.
31287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31288         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31289         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31290         GNULIB_WRITE, REPLACE_WRITE.
31291         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31292         and the SIGPIPE issue.
31293
31294         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31295         (raise): New declaration.
31296         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31297         (ext_signal): New function.
31298         (rpl_raise): New function.
31299         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31300         GNULIB_SIGNAL_H_SIGPIPE.
31301         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31302         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31303
31304         * modules/sigpipe: New file.
31305         * m4/sigpipe.m4: New file.
31306
31307 2008-09-25  Derek Price  <derek@ximbiot.com>
31308             Bruno Haible  <bruno@clisp.org>
31309
31310         * gnulib-tool (func_import): Report all license incompatibilities, not
31311         just the first one.
31312
31313 2008-09-25  Bruno Haible  <bruno@clisp.org>
31314
31315         * gnulib-tool (func_import): When computing the edits, consider not
31316         only the Makefile.ams that exist but also those that will be generated.
31317
31318 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31319
31320         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31321         fixes gnulib-tool --test warning about duplicate dependency.
31322
31323 2008-09-25  Bruno Haible  <bruno@clisp.org>
31324
31325         * gnulib-tool: Don't ask the user to perform edits in the generated
31326         Makefile.ams.
31327         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31328         apply to the Makefile.am being generated.
31329         (func_emit_tests_Makefile_am): Execute edits that apply to the
31330         Makefile.am being generated.
31331         (func_import): Setup list of Makefile.am edits before emitting the
31332         Makefile.ams, not at the end.
31333         (func_create_testdir): Update.
31334         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31335
31336 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31337
31338         * gnulib-tool (func_import): Store the --tests-base option in the
31339         comment in gnulib-cache.m4.
31340
31341 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31342
31343         * NEWS: Document increased portability that sys_select now provides.
31344
31345         * lib/sys_select.in.h: Install select wrapper.
31346         * lib/sys_socket.in.h: Use more descriptive name when there is no
31347         select wrapper.
31348         * lib/winsock-select.c: New.
31349         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31350         Require gl_HEADER_SYS_SOCKET.
31351         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31352         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31353         * tests/test-sys_select.c: Add functional tests.
31354
31355 2008-09-24  Eric Blake  <ebb9@byu.net>
31356
31357         open, fopen: close fd leak in last patch
31358         * lib/open.c (rpl_open): Close fd before returning error.
31359         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31360         * doc/posix-functions/open.texi (open): Document that Irix also
31361         has the bug.
31362         * doc/posix-functions/fopen.texi (fopen): Likewise.
31363         Reported by Paolo Bonzini.
31364
31365 2008-09-24  Bruno Haible  <bruno@clisp.org>
31366
31367         Ensure that a filename ending in a slash cannot be used to access a
31368         non-directory.
31369         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31370         to check whether it's really a directory.
31371         * lib/fopen.c: Include fcntl.h, unistd.h.
31372         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31373         and fdopen().
31374         * modules/fopen (Depends-on): Add unistd.
31375         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31376         * tests/test-fopen.c (main): Likewise.
31377         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31378         * doc/posix-functions/fopen.texi: Likewise.
31379         Reported by Eric Blake.
31380
31381 2008-09-23  Eric Blake  <ebb9@byu.net>
31382
31383         c-stack: avoid compiler optimizations when provoking overflow
31384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31385         recursion harder to optimize, to ensure a stack overflow occurs.
31386         * tests/test-c-stack.c (recurse): Likewise.
31387         Borrowed from libsigsegv.
31388
31389         c-stack: work around Irix sigaltstack bug
31390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31391         whether sigaltstack uses wrong end of stack_t (copied in part from
31392         libsigsegv).
31393         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31394         Irix bug, without requiring an over-allocation.
31395         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31396         bug.
31397
31398         fopen: document mingw bug on directories
31399         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31400         not allowing a stream visiting a directory, even though reading
31401         from such a stream is not portable.
31402
31403 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31404
31405         * lib/poll.c: Rewrite.
31406         * modules/poll: Depend on alloca.
31407
31408 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31409
31410         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31411         instead define prototypes for a full set of wrappers.  Ensure
31412         that Cygwin does not use the compatibility code, which is only
31413         for MinGW.
31414         * lib/winsock.c: New.
31415         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31416         * modules/sys_socket: Add lib/winsock.c.
31417
31418         * modules/poll-tests: Add errno and perror.
31419         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31420
31421 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31422
31423         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31424
31425 2008-09-23  Bruno Haible  <bruno@clisp.org>
31426
31427         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31428         * doc/glibc-functions/*: Likewise.
31429
31430 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31431
31432         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31433         success.
31434
31435 2008-09-22  Eric Blake  <ebb9@byu.net>
31436             Bruno Haible  <bruno@clisp.org>
31437
31438         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31439         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31440         supply %A but mishandle pseudo-NaN.
31441         Reported by Simon Josefsson.
31442
31443 2008-09-21  Bruno Haible  <bruno@clisp.org>
31444
31445         * tests/test-lock.c (main): Tweak skip message.
31446         * tests/test-tls.c (main): Likewise.
31447
31448 2008-09-21  Bruno Haible  <bruno@clisp.org>
31449
31450         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31451         whether 'struct sigaction' has sa_sigaction here...
31452         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31453         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31454
31455 2008-09-21  Bruno Haible  <bruno@clisp.org>
31456
31457         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31458         section.
31459         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31460         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31461         the new section.
31462         (Support for obsolete systems lacking POSIX:2001): New section.
31463         (String handling <string.h>): Move strdup to the new section.
31464         Suggested by Simon Josefsson and Paolo Bonzini.
31465
31466 2008-09-21  Bruno Haible  <bruno@clisp.org>
31467
31468         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31469         exponents in %e and %g results on 'long double'. Needed for mingw's
31470         improved *printf functions.
31471         * tests/test-vasprintf-posix.c (test_function): Likewise.
31472         * tests/test-snprintf-posix.h (test_function): Likewise.
31473         * tests/test-sprintf-posix.h (test_function): Likewise.
31474         Reported by Eric Blake.
31475
31476 2008-09-21  Bruno Haible  <bruno@clisp.org>
31477
31478         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31479         * tests/test-sprintf-posix.h (test_function): Likewise.
31480
31481 2008-09-21  Bruno Haible  <bruno@clisp.org>
31482
31483         * modules/getpass (Depends-on): Add strdup-posix.
31484
31485         New module 'strdup-posix'.
31486         * modules/strdup-posix: New file.
31487         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31488         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31490         REPLACE_STRDUP.
31491         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31492         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31493         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31494         strdup-posix.
31495
31496         * modules/strdup (Depends-on): Remove malloc-posix.
31497
31498 2008-09-20  Bruno Haible  <bruno@clisp.org>
31499
31500         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31501         Wildenhues.
31502
31503 2008-09-20  Bruno Haible  <bruno@clisp.org>
31504
31505         Ensure that wint_t gets defined on IRIX 5.3.
31506         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31507         * lib/wctype.in.h (wint_t): Likewise.
31508         (__wctype_wint_t): Remove type.
31509         (isw*): Use wint_t instead of __wctype_wint_t.
31510         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31511         * modules/wchar (Files): Add m4/wint_t.m4.
31512         (Makefile.am): Substitute HAVE_WINT_T.
31513         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31514         * tests/test-wctype.c: Check that wint_t is defined.
31515         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31516         * doc/posix-headers/wctype.texi: Likewise.
31517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31518
31519 2008-09-18  Bruno Haible  <bruno@clisp.org>
31520
31521         * gnulib-tool (func_exit): Update comment.
31522
31523 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31524
31525         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31526         assumes strdup exists and does not depend on strdup to return
31527         ENOMEM on out of memory conditions.
31528
31529 2008-09-18  Bruno Haible  <bruno@clisp.org>
31530
31531         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31532         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31533         digits for the exponent.
31534
31535 2008-09-18  Jim Meyering  <meyering@redhat.com>
31536             Bruno Haible  <bruno@clisp.org>
31537
31538         * lib/vasnprintf.c (decimal_point_char): Define also if
31539         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31540
31541 2008-09-16  Bruno Haible  <bruno@clisp.org>
31542         and Eric Blake  <ebb9@byu.net>
31543
31544         vasnprintf: support Irix 5.3
31545         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31546         that mishandle long double infinity.
31547         Reported by Tom G. Christensen.
31548
31549 2008-09-16  Bruno Haible  <bruno@clisp.org>
31550
31551         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31552         Solaris 9.
31553         * doc/glibc-functions/alphasort.texi: Likewise.
31554         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31555
31556 2008-09-16  Jim Meyering  <meyering@redhat.com>
31557
31558         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31559         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31560         a umask modification leak out of a subshell.  Otherwise, the
31561         opensolaris /bin/sh would be accepted and thus cause unwarranted
31562         failures in the coreutils test suite.
31563
31564 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31565
31566         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31567         to succeed.
31568
31569 2008-09-16  Jim Meyering  <meyering@redhat.com>
31570
31571         avoid spurious test failure when library is built without ACL support
31572         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31573         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31574         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31575         * tests/test-copy-acl.sh: Likewise.
31576
31577 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31578
31579         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31580         based on character occurrence counts.
31581
31582 2008-09-15  Eric Blake  <ebb9@byu.net>
31583
31584         tests: avoid some compiler warnings
31585         * tests/test-memchr.c (main): Pass NULL indirectly.
31586         * tests/test-closein.c (main): Avoid unused variable.
31587
31588 2008-09-15  Bruno Haible  <bruno@clisp.org>
31589
31590         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31591         are missing on OpenBSD 4.0 individually.
31592         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31593
31594 2008-09-15  Bruno Haible  <bruno@clisp.org>
31595
31596         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31597         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31598         * doc/posix-functions/perror.texi: Likewise.
31599         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31600         is missing.
31601         Reported by Eric Blake.
31602
31603         * lib/errno.in.h: Use replacement values >= 2000.
31604         Reported by Eric Blake.
31605
31606 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31607
31608         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31609         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31610         limit.
31611         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31612         compareseq was aborted.
31613
31614 2008-09-14  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31617         yvec_edit_count.
31618         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31619         (fstrcmp_bounded): Simplify result computation accordingly.
31620
31621 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31622
31623         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31624         (fstrcmp): Define in terms of fstrcmp_bounded.
31625         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31626         lower_bound argument.
31627         Return quickly if the result is certainly < lower_bound.
31628         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31629
31630 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31631
31632         * lib/diffseq.h (EARLY_ABORT): New macro.
31633         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31634         evaluates to true.
31635
31636 2008-09-14  Bruno Haible  <bruno@clisp.org>
31637
31638         * modules/perror-tests: New file.
31639         * tests/test-perror.sh: New file.
31640         * tests/test-perror.c: New file.
31641
31642         New module 'perror'.
31643         * lib/stdio.in.h (perror): New declaration.
31644         * lib/perror.c: New file.
31645         * m4/perror.m4: New file.
31646         * modules/perror: New file.
31647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31648         * doc/posix-functions/perror.texi: Mention the perror module.
31649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31650         REPLACE_PERROR.
31651         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31652         REPLACE_PERROR.
31653
31654 2008-09-14  Bruno Haible  <bruno@clisp.org>
31655
31656         * modules/stdio (Makefile.am): Reorder to match the order in
31657         lib/stdio.in.h.
31658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31659
31660 2008-09-13  Bruno Haible  <bruno@clisp.org>
31661
31662         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31663
31664 2008-09-13  Bruno Haible  <bruno@clisp.org>
31665
31666         Extend strerror to cover the added errno values.
31667         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31668         (rpl_strerror): Provide error messages for the added errno values and
31669         for the WSA* values.
31670         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31671         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31672         strerror.
31673         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31674         * modules/strerror (Depends-on): Add errno.
31675         * doc/posix-functions/strerror.texi: Document the change.
31676         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31677         and EOVERFLOW.
31678
31679 2008-09-13  Bruno Haible  <bruno@clisp.org>
31680
31681         * modules/EOVERFLOW: Remove file.
31682         * m4/eoverflow.m4: Remove file.
31683         * modules/EOVERFLOW-tests: Remove file.
31684         * tests/test-EOVERFLOW.c: Remove file.
31685         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31686         * modules/ftell (Depends-on): Likewise.
31687         * modules/getdelim (Depends-on): Likewise.
31688         * modules/getugroups (Depends-on): Likewise.
31689         * modules/poll (Depends-on): Likewise.
31690         * modules/snprintf (Depends-on): Likewise.
31691         * modules/sprintf-posix (Depends-on): Likewise.
31692         * modules/vasnprintf (Depends-on): Likewise.
31693         * modules/vasprintf (Depends-on): Likewise.
31694         * modules/vfprintf-posix (Depends-on): Likewise.
31695         * modules/vsnprintf (Depends-on): Likewise.
31696         * modules/vsprintf-posix (Depends-on): Likewise.
31697         * modules/xvasprintf (Depends-on): Likewise.
31698         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31699         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31700         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31701         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31702         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31703         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31704         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31705         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31706         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31707         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31708         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31709         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31710         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31711         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31712         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31713         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31714         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31715         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31716         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31717         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31718         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31719         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31720         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31721         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31722         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31723         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31724         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31725         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31726         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31727         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31728         * MODULES.html.sh: Remove EOVERFLOW.
31729         * NEWS: Mention the change.
31730
31731 2008-09-13  Bruno Haible  <bruno@clisp.org>
31732
31733         * modules/errno-tests: New file.
31734         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31735
31736         * lib/errno.in.h: New file.
31737         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31738         * modules/errno: New file.
31739         * doc/posix-headers/errno.texi: Update documentation.
31740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31741
31742 2008-09-13  Bruno Haible  <bruno@clisp.org>
31743
31744         * tests/test-poll.c: Use #if for native Windows, rather than testing
31745         __MSVCRT__.
31746
31747 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31748             Bruno Haible  <bruno@clisp.org>
31749
31750         * lib/glob.c: Don't include <pwd.h> on native Windows.
31751         (WINDOWS32): New macro.
31752         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31753
31754 2008-09-13  Bruno Haible  <bruno@clisp.org>
31755
31756         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31757         (ETIMEDOUT): Remove macro.
31758         (glthread_cond_timedwait_multithreaded): New declaration.
31759         (glthread_cond_timedwait): Use it.
31760         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31761         (glthread_cond_timedwait_multithreaded): New function.
31762
31763 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31764
31765         * modules/poll-tests: Do not check for io.h.
31766         * tests/test-poll.c: Check for __MSVCRT__ instead.
31767
31768 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31769
31770         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31771         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31772         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31773
31774 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31775
31776         * modules/poll-tests: New.
31777         * tests/test-poll.c: New.
31778
31779 2008-09-12  Eric Blake  <ebb9@byu.net>
31780
31781         frexp: test for NetBSD failure on -0.0
31782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31783         not all, bugs from NetBSD 3.0 have been fixed.
31784         * doc/posix-functions/frexp.texi (frexp): Document bug.
31785         Reported by Thomas Klausner.
31786
31787         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31788         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31789         literal -0.0.
31790         Reported by Jonathan C. Patschke <jp@centtech.com>.
31791
31792 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31793
31794         * lib/glthread/cond.h: Use dummy implementation also if
31795         USE_WIN32_THREADS.
31796
31797 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31798
31799         * modules/fnmatch-posix (License): Change to LGPLv2+.
31800         * modules/fnmatch-gnu (License): Likewise.
31801
31802 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31803
31804         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31805
31806 2008-09-11  Jim Meyering  <meyering@redhat.com>
31807
31808         * users.txt: Add gtk-vnc.
31809
31810 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31811
31812         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31813         rotate amounts.
31814
31815         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31816         required for 16-bit and 8-bit rotates.
31817         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31818         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31819         UINT8_MAX instead of hard-coded constants.
31820         Suggested by Paul Eggert.
31821
31822 2008-09-07  Bruno Haible  <bruno@clisp.org>
31823
31824         * tests/test-striconveh.c (main): Check behaviour when converting from
31825         UTF-7.
31826
31827         Make striconveh work better with stateful encodings.
31828         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31829         that iconv does not increment the inptr when returning -1/EINVAL.
31830
31831 2008-09-07  Bruno Haible  <bruno@clisp.org>
31832
31833         * build-aux/config.rpath: Update according to libtool-2.2.6.
31834         * build-aux/config.libpath: Likewise.
31835
31836 2008-09-06  Bruno Haible  <bruno@clisp.org>
31837
31838         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31839         * lib/freadptr.c (freadptr): Likewise.
31840         * lib/freadseek.c (freadptrinc): Likewise.
31841         Reported by Simon Josefsson.
31842
31843 2008-09-06  Bruno Haible  <bruno@clisp.org>
31844
31845         * modules/freadptr (License): Change to LGPLv2+.
31846         * modules/freadseek (License): Likewise.
31847         Suggested by Eric Blake.
31848
31849         * modules/memchr2 (License): Change to LGPLv2+.
31850         Approved by Eric Blake.
31851
31852 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31853             Bruno Haible  <bruno@clisp.org>
31854
31855         Make gnulib-tool work with native 'sed' on AIX.
31856         * gnulib-tool (sed_noop): New variable.
31857         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31858         func_add_or_update, func_create_testdir): Use it to initialize sed
31859         script variables.
31860         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31861
31862 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31863             Bruno Haible  <bruno@clisp.org>
31864
31865         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31866         also works after #include directives.
31867
31868 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31869
31870         getdate.y: reject an out-of-range timezone value
31871         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31872         the range [-24...+24].  When specified with only one or two digits,
31873         * tests/test-getdate.c: Tests for the fix.
31874         * doc/getdate.texi: Document this change.
31875
31876 2008-09-03  Bruno Haible  <bruno@clisp.org>
31877
31878         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31879
31880 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31881
31882         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31883         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31884         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31885         Blake <ebb9@byu.net>.
31886
31887         * tests/test-bitrotate.c: Add more test vectors.
31888
31889 2008-09-02  Eric Blake  <ebb9@byu.net>
31890
31891         vasnprintf-posix: handle large precision via %.*d
31892         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31893         when handling it ourselves.
31894         * tests/test-vasnprintf-posix.c (test_function): Add test.
31895         * tests/test-snprintf-posix.h (test_function): Likewise.
31896         * tests/test-sprintf-posix.h (test_function): Likewise.
31897         * tests/test-vasprintf-posix.c (test_function): Likewise.
31898         Reported by Alain Guibert.
31899
31900 2008-09-01  Eric Blake  <ebb9@byu.net>
31901
31902         c-stack: make configure-time check more robust
31903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31904         successful sigaction call.
31905         Reported by Tom G. Christensen.
31906
31907 2008-09-01  Bruno Haible  <bruno@clisp.org>
31908
31909         New module 'findprog-lgpl'.
31910         * modules/findprog-lgpl: New file.
31911         * lib/findprog-lgpl.c: New file.
31912         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31913         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31914         to decide whether to use strdup or xstrdup, concatenated_filename or
31915         xconcatenated_filename.
31916
31917 2008-09-01  Bruno Haible  <bruno@clisp.org>
31918
31919         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31920         'xconcat-filename' (GPL).
31921         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31922         (License): Change to LGPLv2+.
31923         * modules/xconcat-filename: New file.
31924         * lib/concat-filename.h (concatenated_filename): Change specification.
31925         (xconcatenated_filename): New declaration.
31926         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31927         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31928         memory situations.
31929         * lib/xconcat-filename.c: New file.
31930         * NEWS: Mention the change.
31931         * lib/findprog.c: Include concat-filename.h, not filename.h.
31932         (find_in_path): Use xconcatenated_filename instead of
31933         concatenated_filename.
31934         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31935         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31936         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31937         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31938         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31939         instead of concatenated_filename.
31940         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31941         (execute_java_class): Use xconcatenated_filename instead of
31942         concatenated_filename.
31943         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31944         * modules/javacomp (Depends-on): Likewise.
31945         * modules/javaexec (Depends-on): Likewise.
31946
31947 2008-09-01  Bruno Haible  <bruno@clisp.org>
31948
31949         Split module 'filename' into 'filename' and 'concat-filename'.
31950         * modules/filename: Keep only lib/filename.h.
31951         (License): Change to LGPLv2+.
31952         * modules/concat-filename: New file, extracted from modules/filename.
31953         * lib/filename.h (concatenated_filename): Remove declaration.
31954         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31955         * lib/concat-filename.c: Include concat-filename.h.
31956         * NEWS: Mention the change.
31957
31958 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31959
31960         * lib/bitrotate.h (rotl8, rotr8): Add.
31961
31962         * modules/bitrotate (configure.ac): Need
31963         AC_REQUIRE([AC_C_INLINE]).
31964         (Description): Mention stdint.h.  Reported by Bruno Haible
31965         <bruno@clisp.org>.
31966
31967         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31968         Paolo Bonzini <bonzini@gnu.org>.
31969
31970 2008-08-31  Bruno Haible  <bruno@clisp.org>
31971
31972         Assume Solaris specific bi-arch conventions on Solaris systems.
31973         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31974         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31975         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31976         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31977         like acl_libdirstem.
31978         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31979         acl_libdirstem.
31980         * NEWS: Mention the change.
31981         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31982
31983 2008-08-31  Jim Meyering  <meyering@redhat.com>
31984
31985         * lib/strftime.h: Add comments describing the two added arguments.
31986
31987         remove duplicate #include directives
31988         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31989         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31990
31991 2008-08-31  Bruno Haible  <bruno@clisp.org>
31992
31993         New module 'sigpipe-die'.
31994         * modules/sigpipe-die: New file.
31995         * lib/sigpipe-die.h: New file.
31996         * lib/sigpipe-die.c: New file.
31997         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31998
31999 2008-08-31  Bruno Haible  <bruno@clisp.org>
32000
32001         Don't override previously installed signal handlers.
32002         * lib/fatal-signal.c (saved_sigactions): New variable.
32003         (uninstall_handlers): Reset the signal to the saved handler, not
32004         to SIG_DFL (except when ignored).
32005         (install_handlers): Save the previous handlers.
32006
32007 2008-08-30  Bruno Haible  <bruno@clisp.org>
32008
32009         * gnulib-tool (func_reset_sigpipe): New function.
32010         (func_get_automake_snippet, func_modules_transitive_closure,
32011         func_import): Invoke it before a join command that reads from stdin,
32012         to avoid "echo: write error: Broken pipe" error messages on stderr.
32013         Reported by Sam Steingold <sds@gnu.org>.
32014
32015 2008-08-30  Bruno Haible  <bruno@clisp.org>
32016
32017         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32018         Code copied from m4/open.m4.
32019         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32020         access and the filename ends in a slash. Code copied from lib/open.c.
32021         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32022         * tests/test-fopen.c (main): Check against bug with trailing slash.
32023
32024 2008-08-29  Bruno Haible  <bruno@clisp.org>
32025
32026         Avoid some "gcc -pedantic" warnings.
32027         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32028         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32029         * lib/dirent.in.h: Likewise.
32030         * lib/fcntl.in.h: Likewise.
32031         * lib/float.in.h: Likewise.
32032         * lib/iconv.in.h: Likewise.
32033         * lib/inttypes.in.h: Likewise.
32034         * lib/locale.in.h: Likewise.
32035         * lib/math.in.h: Likewise.
32036         * lib/netinet_in.in.h: Likewise.
32037         * lib/search.in.h: Likewise.
32038         * lib/signal.in.h: Likewise.
32039         * lib/stdarg.in.h: Likewise.
32040         * lib/stdint.in.h: Likewise.
32041         * lib/stdio.in.h: Likewise.
32042         * lib/stdlib.in.h: Likewise.
32043         * lib/string.in.h: Likewise.
32044         * lib/strings.in.h: Likewise.
32045         * lib/sys_select.in.h: Likewise.
32046         * lib/sys_socket.in.h: Likewise.
32047         * lib/sys_stat.in.h: Likewise.
32048         * lib/sys_time.in.h: Likewise.
32049         * lib/sysexits.in.h: Likewise.
32050         * lib/time.in.h: Likewise.
32051         * lib/unistd.in.h: Likewise.
32052         * lib/wchar.in.h: Likewise.
32053         * lib/wctype.in.h: Likewise.
32054         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32055         * modules/fchdir (Makefile.am): Likewise.
32056         * modules/fcntl (Makefile.am): Likewise.
32057         * modules/float (Makefile.am): Likewise.
32058         * modules/iconv_open (Makefile.am): Likewise.
32059         * modules/inttypes (Makefile.am): Likewise.
32060         * modules/locale (Makefile.am): Likewise.
32061         * modules/math (Makefile.am): Likewise.
32062         * modules/netinet_in (Makefile.am): Likewise.
32063         * modules/search (Makefile.am): Likewise.
32064         * modules/signal (Makefile.am): Likewise.
32065         * modules/stdarg (Makefile.am): Likewise.
32066         * modules/stdint (Makefile.am): Likewise.
32067         * modules/stdio (Makefile.am): Likewise.
32068         * modules/stdlib (Makefile.am): Likewise.
32069         * modules/string (Makefile.am): Likewise.
32070         * modules/strings (Makefile.am): Likewise.
32071         * modules/sys_select (Makefile.am): Likewise.
32072         * modules/sys_socket (Makefile.am): Likewise.
32073         * modules/sys_stat (Makefile.am): Likewise.
32074         * modules/sys_time (Makefile.am): Likewise.
32075         * modules/sysexits (Makefile.am): Likewise.
32076         * modules/time (Makefile.am): Likewise.
32077         * modules/unistd (Makefile.am): Likewise.
32078         * modules/wchar (Makefile.am): Likewise.
32079         * modules/wctype (Makefile.am): Likewise.
32080         Reported by Reuben Thomas <rrt@sc3d.org>.
32081
32082 2008-08-29  Bruno Haible  <bruno@clisp.org>
32083
32084         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32085         any more.
32086
32087 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32088
32089         * MODULES.html.sh (Misc): Add bitrotate.
32090
32091         * modules/bitrotate: New file.
32092
32093         * lib/bitrotate.h: New file.
32094
32095         * modules/bitrotate-tests: New file.
32096
32097         * tests/test-bitrotate.c: New file.
32098
32099         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32100         on the bitrotate module.
32101
32102         * lib/arctwo.c: Use new bitrotate module.
32103
32104 2008-08-29  Jim Meyering  <meyering@redhat.com>
32105
32106         bootstrap: merge changes from coreutils
32107         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32108         of copied files.  Remove a kludge, now that this is fixed.
32109         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32110         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32111         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32112
32113 2008-08-29  Bruno Haible  <bruno@clisp.org>
32114
32115         * MODULES.html.sh: Remove --cvs-urls option.
32116
32117 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32118
32119         maint.mk: adjust to file name change
32120         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32121
32122 2008-08-28  Jim Meyering  <meyering@redhat.com>
32123
32124         * modules/getndelim2 (License): Relicense to LGPLv2+.
32125         Approved by Richard Stallman for the version of 1995, and by
32126         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32127
32128 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32129
32130         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32131         dummy if one is not available.  Do not touch them if
32132         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32133         (getc_maybe_unlocked): New.
32134         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32135
32136 2008-08-26  Eric Blake  <ebb9@byu.net>
32137
32138         doc/INSTALL: resync from autoconf
32139         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32140         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32141         moving...
32142         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32143         * INSTALL: Regenerate.
32144         * INSTALL.ISO: New file.
32145         * INSTALL.UTF-8: Likewise.
32146
32147 2008-08-26  Jim Meyering  <meyering@redhat.com>
32148
32149         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32150         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32151         these definitions conditional, so that they may be overridden, too.
32152
32153 2008-08-26  Bruno Haible  <bruno@clisp.org>
32154
32155         Generate INSTALL file variants with prettier quotes.
32156         * doc/Makefile (INSTALL_PRELUDE): New macro.
32157         (INSTALL): Use it.
32158         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32159
32160 2008-08-26  Bruno Haible  <bruno@clisp.org>
32161
32162         Run makeinfo in an English locale.
32163         * doc/Makefile (MAKEINFO): New variable.
32164
32165 2008-08-26  Bruno Haible  <bruno@clisp.org>
32166
32167         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32168         Suggested by Eric Blake.
32169
32170 2008-08-25  Bruno Haible  <bruno@clisp.org>
32171
32172         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32173
32174 2008-08-25  Eric Blake  <ebb9@byu.net>
32175
32176         c-stack: test that stack overflow can be caught
32177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32178         that platform allows handling stack overflow; at least OS/2 EMX
32179         has sigaltstack, but crashes before transferring control to
32180         handler on stack overflow.
32181         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32182         check for HAVE_STACK_OVERFLOW_HANDLING.
32183         Reported by Elbert Pol.
32184
32185 2008-08-25  Bruno Haible  <bruno@clisp.org>
32186
32187         * doc/posix-functions/strftime.texi: Fix description of strftime
32188         module.
32189
32190 2008-08-24  Bruno Haible  <bruno@clisp.org>
32191
32192         * tests/uniwidth/test-uc_width2.c: New file.
32193         * tests/uniwidth/test-uc_width2.sh: New file.
32194         * modules/uniwidth/width-tests (Files): Add the new files.
32195         (TESTS): Add uniwidth/test-uc_width2.sh.
32196         (TESTS_ENVIRONMENT): New variable.
32197         (check_PROGRAMS): Add test-uc_width2.
32198         (test_uc_width2_SOURCES): New variable.
32199
32200         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32201         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32202         not 0x00AB.
32203         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32204
32205 2008-08-22  Eric Blake  <ebb9@byu.net>
32206
32207         test-lock, test-tls: mention why a test is skipped
32208         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32209         skipped.
32210         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32211
32212         count-one-bits: relax license
32213         * modules/count-one-bits (License): Relicense to LGPLv2+.
32214         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32215
32216 2008-08-22  Andreas Schwab  <schwab@suse.de>
32217
32218         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32219         Remove spurious space in assignment.
32220
32221 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32222
32223         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32224         Paul Eggert <eggert@CS.UCLA.EDU>.
32225
32226 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32227
32228         * modules/gettext: Add m4/threadlib.m4.
32229
32230 2008-08-19  Eric Blake  <ebb9@byu.net>
32231
32232         test-c-stack: fix compilation failure on FreeBSD 5.0
32233         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32234         headers before <sys/resource.h>.
32235         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32236         the bug.
32237         Reported by Nelson H. F. Beebe.
32238
32239         strverscmp: migrate from "strverscmp.h" to <string.h>
32240         * modules/string (Makefile.am): Add new hooks.
32241         * modules/strverscmp (Files): Remove strverscmp.h.
32242         (Depends-on): Add string.
32243         (configure.ac): Add indicator.
32244         (Include): Mention new header.
32245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32246         defaults.
32247         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32248         results.
32249         * lib/strverscmp.h: Delete.
32250         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32251         * tests/test-strverscmp.c (includes): Adjust client.
32252         * lib/check-version.c (includes): Likewise.
32253         * NEWS: Document the change.
32254
32255         strverscmp: add unit test
32256         * modules/strverscmp-tests: New file.
32257         * tests/test-strverscmp.c: Likewise.
32258
32259 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32260
32261         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32262         regarding Windows crypto stuff, from Mono.
32263
32264 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32265
32266         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32267         if present, for intel RND.  Return error on failures.
32268
32269 2008-08-18  Ben Pfaff  <blp@gnu.org>
32270
32271         gitlog-to-changelog: give better diagnostic for failed pipe-open
32272         * build-aux/gitlog-to-changelog: Improve error message: suggest
32273         that the version of Git may be too old.
32274
32275 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32276
32277         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32278         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32279
32280 2008-08-18  Bruno Haible  <bruno@clisp.org>
32281
32282         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32283         pthread_in_use().
32284
32285 2008-08-18  Bruno Haible  <bruno@clisp.org>
32286
32287         * lib/glthread/threadlib.c: Include <pthread.h>.
32288
32289 2008-08-18  Bruno Haible  <bruno@clisp.org>
32290
32291         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32292         glthread_recursive_lock_* macros.
32293         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32294         Fix syntax error.
32295
32296 2008-08-18  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/glthread/thread.c: Avoid forcing a context switch right after
32299         thread creation.
32300
32301 2008-08-17  Bruno Haible  <bruno@clisp.org>
32302
32303         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32304         * lib/glthread/thread.h: Provide Win32 specific implementation.
32305         * modules/thread (Files): Add lib/glthread/thread.c.
32306         (Depends-on): Add lock.
32307         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32308
32309 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32310
32311         New module 'yield'.
32312         * modules/yield: New file.
32313         * lib/glthread/yield.h: New file.
32314         * m4/yield.m4: New file.
32315         * MODULES.html.sh (Multithreading): Add yield.
32316
32317 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32318
32319         New module 'thread'.
32320         * modules/thread: New file.
32321         * lib/glthread/thread.h: New file.
32322         * m4/thread.m4: New file.
32323         * MODULES.html.sh (Multithreading): Add thread.
32324
32325 2008-08-17  Bruno Haible  <bruno@clisp.org>
32326
32327         * lib/glthread/lock.h: Include <stdlib.h> always.
32328         * lib/glthread/tls.h: Likewise.
32329         * lib/glthread/cond.h: Likewise.
32330
32331 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32332
32333         New module 'cond'.
32334         * modules/cond: New file.
32335         * lib/glthread/cond.h: New file.
32336         * lib/glthread/cond.c: New file.
32337         * m4/cond.m4: New file.
32338         * MODULES.html.sh (Multithreading): Add cond.
32339
32340 2008-08-16  Eric Blake  <ebb9@byu.net>
32341
32342         c-stack: fix regression on Irix 5.3 from 2008-06-21
32343         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32344         sa_sigaction...
32345         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32346         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32347         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32348         * modules/signal (Makefile.am): Use the value.
32349         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32350         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32351         * doc/posix-headers/signal.texi (signal.h): Document this
32352         portability issue.
32353         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32354         Reported by Tom G. Christensen.
32355
32356 2008-08-17  Bruno Haible  <bruno@clisp.org>
32357
32358         New module 'threadlib'.
32359         * modules/threadlib: New file.
32360         * lib/glthread/threadlib.c: New file, extracted from
32361         lib/glthread/lock.c.
32362         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32363         functions.
32364         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32365         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32366         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32367         macros.
32368         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32369         (gl_DISABLE_THREADS): Remove macro.
32370         * modules/lock (Files): Remove build-aux/config.rpath.
32371         (Depends-on): Remove havelib. Add threadlib.
32372         (configure.ac-early): Remove section.
32373         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32374         * modules/tls (Depends-on): Remove lock. Add threadlib.
32375         (Link): New section, copied from threadlib.
32376         * MODULES.html.sh (Multithreading): Add threadlib.
32377
32378 2008-08-14  Bruno Haible  <bruno@clisp.org>
32379
32380         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32381         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32382         glthread_rwlock_unlock, glthread_rwlock_destroy,
32383         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32384         glthread_recursive_lock_destroy): Define as macros always.
32385         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32386         glthread_lock_lock.
32387         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32388         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32389         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32390         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32391         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32392         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32393         (glthread_recursive_lock_lock_func): Renamed from
32394         glthread_recursive_lock_lock.
32395         (glthread_recursive_lock_unlock_func): Renamed from
32396         glthread_recursive_lock_unlock.
32397         (glthread_recursive_lock_destroy_func): Renamed from
32398         glthread_recursive_lock_destroy.
32399
32400 2008-08-14  Bruno Haible  <bruno@clisp.org>
32401
32402         * lib/glthread/lock.h: Renamed from lib/lock.h.
32403         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32404         * lib/glthread/tls.h: Renamed from lib/tls.h.
32405         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32406         * lib/fstrcmp.c: Update includes.
32407         * lib/strsignal.c: Update includes.
32408         * modules/lock (Files, Makefile.am): Update.
32409         (Include): Change to "glthread/lock.h".
32410         * modules/tls (Files, Makefile.am): Update.
32411         (Include): Change to "glthread/tls.h".
32412         * tests/test-lock.c: Update includes.
32413         * tests/test-tls.c: Update includes.
32414         * NEWS: Mention the renamed header files.
32415
32416 2008-08-11  Jim Meyering  <meyering@redhat.com>
32417
32418         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32419
32420 2008-08-11  Eric Blake  <ebb9@byu.net>
32421
32422         test-c-stack: avoid C99-ism
32423         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32424         before statement.
32425         Reported by Alain Guibert.
32426
32427 2008-08-10  Jim Meyering  <meyering@redhat.com>
32428
32429         ensure that return value of uinttostr et al are not ignored
32430         * lib/inttostr.h (__GNUC_PREREQ): Define.
32431         (__attribute_warn_unused_result__): Define.
32432         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32433
32434 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32435
32436         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32437         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32438
32439 2008-08-07  Jim Meyering  <meyering@redhat.com>
32440
32441         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32442
32443         * modules/mkstemp (License): Relicense under LGPLv2+.
32444         * modules/tempname (License): Likewise.
32445
32446 2008-08-06  Bruno Haible  <bruno@clisp.org>
32447
32448         * lib/poll.c (poll): Further micro-optimization.
32449
32450 2008-08-06  Jim Meyering  <meyering@redhat.com>
32451
32452         inet_pton.c: use locale-independent tolower
32453         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32454         (inet_pton6): Use c_tolower rather than tolower.
32455         * modules/inet_pton (Depends-on): Add c-ctype.
32456
32457 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32458
32459         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32460         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32461
32462 2008-08-06  Jim Meyering  <meyering@redhat.com>
32463
32464         * modules/inet_pton (License): Relicense under LGPLv2+.
32465
32466 2008-08-03  Bruno Haible  <bruno@clisp.org>
32467
32468         Additional non-aborting API for lock and tls.
32469         * lib/lock.h: Include <errno.h>.
32470         (glthread_lock_init): New macro/function.
32471         (gl_lock_init): Define as wrapper around glthread_lock_init.
32472         (glthread_lock_lock): New macro/function.
32473         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32474         (glthread_lock_unlock): New macro/function.
32475         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32476         (glthread_lock_destroy): New macro/function.
32477         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32478         (glthread_rwlock_init): New macro/function.
32479         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32480         (glthread_rwlock_rdlock): New macro/function.
32481         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32482         (glthread_rwlock_wrlock): New macro/function.
32483         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32484         (glthread_rwlock_unlock): New macro/function.
32485         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32486         (glthread_rwlock_destroy): New macro/function.
32487         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32488         (glthread_recursive_lock_init): New macro/function.
32489         (gl_recursive_lock_init): Define as wrapper around
32490         glthread_recursive_lock_init.
32491         (glthread_recursive_lock_lock): New macro/function.
32492         (gl_recursive_lock_lock): Define as wrapper around
32493         glthread_recursive_lock_lock.
32494         (glthread_recursive_lock_unlock): New macro/function.
32495         (gl_recursive_lock_unlock): Define as wrapper around
32496         glthread_recursive_lock_unlock.
32497         (glthread_recursive_lock_destroy): New macro/function.
32498         (gl_recursive_lock_destroy): Define as wrapper around
32499         glthread_recursive_lock_destroy.
32500         (glthread_once): New macro/function.
32501         (gl_once): Define as wrapper around glthread_once.
32502         Update function declarations.
32503         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32504         glthread_rwlock_init. Return error code.
32505         (glthread_rwlock_rdlock_multithreaded): Renamed from
32506         glthread_rwlock_rdlock. Return error code.
32507         (glthread_rwlock_wrlock_multithreaded): Renamed from
32508         glthread_rwlock_wrlock. Return error code.
32509         (glthread_rwlock_unlock_multithreaded): Renamed from
32510         glthread_rwlock_unlock. Return error code.
32511         (glthread_rwlock_destroy_multithreaded): Renamed from
32512         glthread_rwlock_destroy. Return error code.
32513         (glthread_recursive_lock_init_multithreaded): Renamed from
32514         glthread_recursive_lock_init. Return error code.
32515         (glthread_recursive_lock_lock_multithreaded): Renamed from
32516         glthread_recursive_lock_lock. Return error code.
32517         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32518         glthread_recursive_lock_unlock. Return error code.
32519         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32520         glthread_recursive_lock_destroy. Return error code.
32521         (glthread_once_call): Make static.
32522         (glthread_once_multithreaded): Renamed from glthread_once.
32523         * lib/tls.h: Include <errno.h>.
32524         (glthread_tls_key_init): New macro/function.
32525         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32526         (glthread_tls_set): New macro/function.
32527         (gl_tls_set): Define as wrapper around glthread_tls_set.
32528         (glthread_tls_key_destroy): New macro/function.
32529         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32530         Update function declarations.
32531         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32532         glthread_tls_get.
32533         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32534
32535 2008-08-04  Eric Blake  <ebb9@byu.net>
32536
32537         gnumakefile: use space, not TAB, outside of targets
32538         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32539
32540 2008-08-02  Jim Meyering  <meyering@redhat.com>
32541
32542         getdate.y: avoid locale-dependent date parsing failure
32543         In Turkish locales, getdate would fail to recognize keywords
32544         containing a lowercase "i".  The solution is not to rely on
32545         locale-sensitive case-conversion.
32546         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32547         (lookup_word): Use c_toupper in place of toupper.
32548         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32549         Reported by Vefa Bicakci <bicave@superonline.com> in
32550         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32551         * modules/getdate (Depends-on): Add c-ctype.
32552
32553 2008-08-02  Bruno Haible  <bruno@clisp.org>
32554
32555         * gnulib-tool (func_import): When updating or creating a .gitignore
32556         file, prepend each added line with a slash, and ignore leading slashes
32557         from the existing lines.
32558         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32559
32560 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32561
32562         Portability fix for GNU make 3.79.1.
32563         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32564         versions do not understand.
32565
32566 2008-08-01  Bruno Haible  <bruno@clisp.org>
32567
32568         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32569         * tests/test-isnanf.h (zero): New variable.
32570         (main): Avoid literal -0.0f.
32571         * tests/test-isnand.h (zero): New variable.
32572         (main): Avoid literal -0.0.
32573         * tests/test-isnanl.h (zero): New variable.
32574         (main): Avoid literal -0.0L.
32575         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32576         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32577         -0.0, -0.0L.
32578         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32579         (test_signbitd): Avoid literal -0.0.
32580         (test_signbitl): Avoid literal -0.0L.
32581         * tests/test-ceilf1.c (zero): New variable.
32582         (main): Avoid literal -0.0f.
32583         * tests/test-ceill.c (zero): New variable.
32584         (main): Avoid literal -0.0L.
32585         * tests/test-floorf1.c (zero): New variable.
32586         (main): Avoid literal -0.0f.
32587         * tests/test-floorl.c (zero): New variable.
32588         (main): Avoid literal -0.0L.
32589         * tests/test-roundf1.c (zero): New variable.
32590         (main): Avoid literal -0.0f.
32591         * tests/test-round1.c (zero): New variable.
32592         (main): Avoid literal -0.0.
32593         * tests/test-roundl.c (zero): New variable.
32594         (main): Avoid literal -0.0L.
32595         * tests/test-truncf1.c (zero): New variable.
32596         (main): Avoid literal -0.0f.
32597         * tests/test-trunc1.c (zero): New variable.
32598         (main): Avoid literal -0.0.
32599         * tests/test-truncl.c (zero): New variable.
32600         (main): Avoid literal -0.0L.
32601         * tests/test-frexp.c (zero): New variable.
32602         (main): Avoid literal -0.0.
32603         * tests/test-frexpl.c (zero): New variable.
32604         (main): Avoid literal -0.0L.
32605         * tests/test-ldexpl.c (zero): New variable.
32606         (main): Avoid literal -0.0L.
32607         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32608         (zerod, zerol): New variables.
32609         (test_function): Avoid literals -0.0, -0.0L.
32610         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32611         (zerod, zerol): New variables.
32612         (test_function): Avoid literals -0.0, -0.0L.
32613         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32614         (zerod, zerol): New variables.
32615         (test_function): Avoid literals -0.0, -0.0L.
32616         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32617         (zerod, zerol): New variables.
32618         (test_function): Avoid literals -0.0, -0.0L.
32619         * tests/test-strtod.c (zero): New variable.
32620         (main): Avoid literal -0.0.
32621         Reported by Jonathan C. Patschke <jp@centtech.com>.
32622
32623 2008-07-31  Jim Meyering  <meyering@redhat.com>
32624
32625         sha256.h: correct definition of SHA224_DIGEST_SIZE
32626         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32627         Reported by Paulie Pena IV <paulie4@gmail.com>.
32628         Define as 224 / 8, rather than as a literal.
32629         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32630         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32631         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32632
32633 2008-07-31  Bruno Haible  <bruno@clisp.org>
32634
32635         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32636         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32637         Reported by Jonathan Patschke <jp@centtech.com>.
32638
32639 2008-07-31  Bruno Haible  <bruno@clisp.org>
32640
32641         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32642         Reported by Paolo Bonzini <bonzini@gnu.org>.
32643
32644 2008-07-30  Eric Blake  <ebb9@byu.net>
32645
32646         test-strtod: allow compilation without -lm
32647         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32648         Reported by Dennis Clarke <blastwave@gmail.com>.
32649
32650 2008-07-28  Jim Meyering  <meyering@redhat.com>
32651
32652         bootstrap: work also when there are no .po files in po/
32653         * build-aux/bootstrap (update_po_files): Complete the change
32654         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32655
32656 2008-07-27  Jim Meyering  <meyering@redhat.com>
32657
32658         * users.txt: Add zile.
32659
32660 2008-07-26  Ben Pfaff  <blp@gnu.org>
32661
32662         Add missing dependencies on new m4/exponent[fdl].m4 files.
32663         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32664         * modules/isnand-nolibm: Add m4/exponentd.m4.
32665         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32666         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32667         m4/isnan[fdl].m4, because the macros actually used moved.
32668         Reported by Jim Meyering.
32669
32670 2008-07-14  Ben Pfaff  <blp@gnu.org>
32671
32672         Add isinf module.
32673         * lib/isinf.c: New file.
32674         * lib/math.in.h: Define isinf macro if we have decided to replace
32675         it.
32676         * m4/isinf.m4: New file.
32677         * m4/math_h.m4: Initialize and substitute variables for isinf
32678         module.
32679         * modules/isinf: New file.
32680         * modules/isinf-tests: New file.
32681         * modules/math: Add substitutions for new module.
32682         * tests/test-isinf.c: New file.
32683         * doc/posix-functions/isinf.texi: Mention new module.
32684         * MODULES.html.sh: Mention new module.
32685
32686 2008-07-14  Ben Pfaff  <blp@gnu.org>
32687
32688         Factor out some macros for use by additional modules.
32689         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32690         exponentf.m4.
32691         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32692         exponentd.m4.
32693         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32694         file exponentl.m4.
32695         * m4/exponentf.m4: New file.
32696         * m4/exponentd.m4: New file.
32697         * m4/exponentl.m4: New file.
32698         * modules/isnanf: Use new file m4/exponentf.m4.
32699         * modules/isnand: Use new file m4/exponentd.m4.
32700         * modules/isnanl: Use new file m4/exponentl.m4.
32701
32702 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32703
32704         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32705         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32706         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32707         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32708
32709         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32710         readlink on platforms without PATH_MAX.
32711
32712 2008-07-21  Eric Blake  <ebb9@byu.net>
32713
32714         Warn, not fail, on stale version.
32715         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32716
32717         Don't allow installation with stale devel version number.
32718         * top/GNUmakefile (_is-install-target): New macro.
32719         (_curr-ver): Forbid installation with stale version number.
32720
32721 2008-07-20  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32724         TESTS_ENVIRONMENT.
32725         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32726
32727 2008-07-20  Bruno Haible  <bruno@clisp.org>
32728
32729         * lib/c-stack.h (c_stack_action): Add documentation.
32730         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32731
32732 2008-07-20  Bruno Haible  <bruno@clisp.org>
32733
32734         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32735         * modules/readlink (License): Likewise.
32736
32737 2008-07-17  Eric Blake  <ebb9@byu.net>
32738
32739         * modules/c-stack (Link): Fix typo.
32740
32741         Make c-stack use libsigsegv, when available.
32742         * modules/c-stack (Depends-on): Add libsigsegv.
32743         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32744         needed.
32745         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32746         (segv_handler, overflow_handler, c_stack_action)
32747         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32748         implementation when libsigsegv is available, but only when using
32749         the library is necessary.
32750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32751         comment, explaining why XSI check fails on Linux.
32752         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32753         * tests/test-c-stack2.sh: Tweak skip message.
32754         * NEWS: Document new link-time requirements.
32755
32756 2008-07-16  Eric Blake  <ebb9@byu.net>
32757
32758         c-stack: Expose false positives when not using libsigsegv.
32759         * modules/c-stack-tests (Files): Expand test.
32760         * tests/test-c-stack.c (main): Add means to conditionally trigger
32761         non-overflow SIGSEGV.
32762         * tests/test-c-stack2.sh: New file.
32763
32764 2008-07-14  Bruno Haible  <bruno@clisp.org>
32765
32766         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32767         Reported by Eric Blake.
32768
32769 2008-07-14  Sam Steingold  <sds@gnu.org>
32770             Bruno Haible  <bruno@clisp.org>
32771
32772         New module libsigsegv.
32773         * modules/libsigsegv: New file.
32774         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32775         modifications.
32776         * MODULES.html.sh (Signal handling): New section.
32777
32778 2008-07-14  Bruno Haible  <bruno@clisp.org>
32779
32780         * modules/unictype/ctype-* (Description): Add the word "function".
32781         Improves the resulting doc in MODULES.html.
32782
32783 2008-07-12  Ben Pfaff  <blp@gnu.org>
32784
32785         Add longlong module.
32786         * modules/longlong: New file.
32787
32788 2008-07-12  Bruno Haible  <bruno@clisp.org>
32789
32790         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32791         to empty.
32792
32793 2008-07-10  Ben Pfaff  <blp@gnu.org>
32794
32795         Add isnan module.
32796         * doc/posix-functions/isnan.texi: Mention new module.
32797         * lib/math.in.h: Define isnan macro if we have decided to replace
32798         it.
32799         * m4/isnan.m4: New file.
32800         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32801         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32802         also.
32803         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32804         redundancy.
32805         * m4/math_h.m4: Initialize and substitute variables for isnan
32806         module.
32807         * modules/isnan: New file.
32808         * modules/isnan-tests: New file.
32809         * modules/math: Add substitutions for new module.
32810         * tests/test-isnan.c: New file.
32811         * MODULES.html.sh: Mention new module.
32812
32813 2008-07-10  Ben Pfaff  <blp@gnu.org>
32814
32815         Add isnanf module.
32816         * lib/isnanf.m4: New file.
32817         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32818         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32819         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32820         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32821         * modules/isnanf: New file.
32822         * modules/isnanf-tests: New file.
32823         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32824         files.
32825         * tests/test-isnanf-nolibm.c: factored most of its contents into
32826         new file tests/test-isnanf.h.
32827         * tests/test-isnanf.h: New file.
32828         * tests/test-isnanf.c: New file.
32829         * MODULES.html.sh: Mention new module.
32830         * doc/glibc-functions/isnanf.texi: Mention new module.
32831
32832 2008-07-10  Ben Pfaff  <blp@gnu.org>
32833
32834         Add isnand module.
32835         * lib/isnand.h: New file.
32836         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32837         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32838         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32839         functionality also.
32840         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32841         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32842         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32843         * modules/isnand: New file.
32844         * modules/isnand-tests: New file.
32845         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32846         files.
32847         * tests/test-isnand-nolibm.c: factored most of its contents into
32848         new file tests/test-isnand.h.
32849         * tests/test-isnand.h: New file.
32850         * tests/test-isnand.c: New file.
32851         * MODULES.html.sh: Mention new module.
32852
32853 2008-07-10  Ben Pfaff  <blp@gnu.org>
32854
32855         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32856         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32857         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32858         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32859         * modules/isnanf-nolibm: Update references to renamed files.
32860         * modules/isnand-nolibm: Likewise.
32861         * modules/isnanf-nolibm-tests: Likewise.
32862         * modules/isnand-nolibm-tests: Likewise.
32863         * lib/frexp.c: Likewise.
32864         * lib/isfinite.c: Likewise.
32865         * lib/signbitd.c: Likewise.
32866         * lib/signbitf.c: Likewise.
32867         * lib/vasnprintf.c: Likewise.
32868         * tests/test-ceilf1.c: Likewise.
32869         * tests/test-ceilf2.c: Likewise.
32870         * tests/test-floorf1.c: Likewise.
32871         * tests/test-floorf2.c: Likewise.
32872         * tests/test-frexp.c: Likewise.
32873         * tests/test-round1.c: Likewise.
32874         * tests/test-round2.c: Likewise.
32875         * tests/test-roundf1.c: Likewise.
32876         * tests/test-strtod.c: Likewise.
32877         * tests/test-trunc1.c: Likewise.
32878         * tests/test-trunc2.c: Likewise.
32879         * tests/test-truncf1.c: Likewise.
32880         * tests/test-truncf2.c: Likewise.
32881         * NEWS: Mention the renamed header files.
32882
32883 2008-07-11  Jim Meyering  <meyering@redhat.com>
32884
32885         vc-list-files: make the last-resort awk code more portable
32886         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32887         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32888         does not support it.
32889
32890 2008-07-10  Eric Blake  <ebb9@byu.net>
32891
32892         Work with tar's bootstrap.
32893         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32894         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32895         an m4 comment.
32896
32897 2008-07-09  Jim Meyering  <meyering@redhat.com>
32898
32899         posix-shell.m4: fix typo that made this test malfunction
32900         * m4/posix-shell.m4: Remove capitalization in variable name.
32901
32902 2008-07-08  Bruno Haible  <bruno@clisp.org>
32903
32904         * m4/onceonly.m4: Update comments.
32905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32906
32907 2008-07-04  Jim Meyering  <meyering@redhat.com>
32908
32909         * users.txt: Add vc-dwim.
32910         (bison, coreutils): Use the gitweb URL.
32911
32912 2008-07-03  Jim Meyering  <meyering@redhat.com>
32913
32914         * users.txt: Add libffcall.  From Sam Steingold.
32915
32916 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32917
32918         getdate.y: do not ignore TZ with relative day, month or year offset
32919         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32920         relative-date-handling, since otherwise, the latter would clobber the
32921         sole output (an updated Start value) of the tz-handling block.
32922         * tests/test-getdate.c: Tests for the fix
32923
32924 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32925
32926         Recognize 'foo_LIBRARIES += libgnu.a'.
32927         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32928         makefile snippet has already specified an installation location,
32929         also using '+='.
32930
32931 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32932
32933         getdate.y: factor out common actions
32934         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32935         Use them in place of open-coded actions.
32936
32937 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32938
32939         Add self-test for getdate module.
32940         * modules/getdate-tests: New file.
32941         * tests/test-getdate.c: New file.
32942
32943 2008-06-29  Bruno Haible  <bruno@clisp.org>
32944
32945         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32946         .gitignore.
32947         Reported by Sylvain Beucler <beuc@beuc.net>.
32948
32949 2008-06-29  Bruno Haible  <bruno@clisp.org>
32950
32951         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32952         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32953
32954 2008-06-29  Bruno Haible  <bruno@clisp.org>
32955
32956         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32957         EXTRA_DIST.
32958         Reported by Sylvain Beucler <beuc@beuc.net>.
32959
32960 2008-06-26  Jim Meyering  <meyering@redhat.com>
32961
32962         make several modules depend on the "open" module
32963         This provides slightly increased consistency when opening-for-write
32964         the name of a non-directory spelled with a trailing slash.
32965         * modules/chdir-safer: Likewise.
32966         * modules/chown: Likewise.
32967         * modules/clean-temp: Likewise.
32968         * modules/copy-file: Likewise.
32969         * modules/fchdir: Likewise.
32970         * modules/fcntl-safer: Likewise.
32971         * modules/pipe: Likewise.
32972         * modules/utime: Likewise.
32973         Prompted by Eric Blake and Bruno Haible.
32974
32975 2008-06-24  Andreas Schwab  <schwab@suse.de>
32976
32977         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32978         literals can be used as initializers for global variables.
32979
32980 2008-06-23  Eric Blake  <ebb9@byu.net>
32981
32982         Make gnulib-cache.m4 easier to diff.
32983         * gnulib-tool (func_import): Allow newlines when reading cached
32984         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32985
32986 2008-06-23  Bruno Haible  <bruno@clisp.org>
32987
32988         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32989         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32990         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32991         m4/signalblocking.m4.
32992         (gl_PREREQ_SIGACTION): Don't invoke it.
32993         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32994         gl_PREREQ_SIG_HANDLER_H.
32995         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32996         Don't check for sigaction here.
32997
32998 2008-06-23  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33001         (install_handlers): Don't set the SA_RESETHAND flag.
33002
33003 2008-06-23  Bruno Haible  <bruno@clisp.org>
33004
33005         * m4/sigaction.m4: Comment fixes.
33006         * lib/signal.in.h: Likewise.
33007
33008 2008-06-23  Eric Blake  <ebb9@byu.net>
33009
33010         Fix typo.
33011         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33012
33013         Avoid SA_ namespace.
33014         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33015         Reported by Ralf Wildenhues.
33016
33017         Avoid test failure due to SA_RESTORER.
33018         * tests/test-sigaction.c (SA_MASK): New macro.
33019         (main): Avoid failing due to extension flags being set.
33020         Reported by Jim Meyering.
33021
33022         Revert use of sig-handler.h in sigprocmask.c.
33023         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33024         it requires the existence of struct sigaction.
33025         * lib/sigprocmask.c (handler_t): Restore typedef.
33026         (rpl_signal, old_handlers): Use local type.
33027
33028 2008-06-22  Bruno Haible  <bruno@clisp.org>
33029
33030         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33031         conditionally.
33032         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33033
33034 2008-06-22  Bruno Haible  <bruno@clisp.org>
33035
33036         * doc/posix-functions/siginterrupt.texi: Move note.
33037
33038         * lib/signal.in.h (SA_RESTART): New macro.
33039         * lib/sigaction.c: Update comment.
33040
33041         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33042
33043         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33044         (gl_PREREQ_SIGPROCMASK): Invoke it.
33045         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33046
33047         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33048
33049         * lib/sigprocmask.c: Update a comment.
33050
33051 2008-06-21  Eric Blake  <ebb9@byu.net>
33052
33053         Use sigaction module rather than signal().
33054         * modules/c-stack (Depends-on): Add sigaction.
33055         * modules/fatal-signal (Depends-on): Likewise.
33056         * modules/nanosleep (Depends-on): Likewise.
33057         * modules/sigprocmask (Files): Add sig-handler.h.
33058         * modules/sigaction (Files): Likewise.
33059         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33060         Eggert.
33061         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33062         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33063         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33064         (init_fatal_signals): Likewise.
33065         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33066         (siginterrupt): Delete fallback.
33067         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33068         instead.
33069         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33070         siginterrupt.
33071
33072         New module sigaction, for mingw.
33073         * modules/sigaction: New module...
33074         * modules/sigaction-tests: ...and its test.
33075         * m4/sigaction.m4: New file.
33076         * lib/sigaction.c: Likewise.
33077         * tests/test-sigaction.c: Likewise.
33078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33079         * modules/signal (Makefile.am): Likewise.
33080         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33081         needed.
33082         * doc/posix-headers/signal.texi (signal.h): Mention provided
33083         types.
33084         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33085         that sigaction is preferable.
33086         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33087         module.
33088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33089         sigaction.
33090
33091         Improve robustness of sigprocmask by overriding signal.
33092         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33093         is in use.
33094         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33095         (SIGKILL, SIGSTOP): Provide fallbacks.
33096         (rpl_signal): Implement.
33097         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33098         signal can be called inside handlers.
33099
33100         Fix nanosleep module on mingw.
33101         * modules/nanosleep (Depends-on): Add sys_select.
33102         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33103
33104         Fix licensing of sigprocmask.
33105         * modules/raise (License): Relicense as LGPL.
33106
33107 2008-06-21  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33110         result if it contains question marks.
33111         Reported by Michael Geng <linux@michaelgeng.de>.
33112
33113 2008-06-19  Bruno Haible  <bruno@clisp.org>
33114
33115         Fix CVS-ism.
33116         * doc/gnulib.texi: Include updated-stamp.texi.
33117         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33118         (updated-stamp.texi): New rule.
33119         (gnulib.info): Depend on it.
33120         * doc/.gitignore: Add updated-stamp.texi.
33121         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33122
33123 2008-06-19  Bruno Haible  <bruno@clisp.org>
33124
33125         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33126         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33127
33128 2008-06-19  Eric Blake  <ebb9@byu.net>
33129
33130         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33131         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33132         Reported by Stepan Kasal.
33133
33134 2008-06-18  Bruno Haible  <bruno@clisp.org>
33135
33136         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33137         Reported by Eric Blake.
33138
33139 2008-06-18  Eric Blake  <ebb9@byu.net>
33140
33141         Work around cygwin 1.5.25 strsignal bug.
33142         * tests/test-strsignal.c: Allow for const char *.
33143         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33144
33145 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33146
33147         * users.txt: Update URL to article and add author/date
33148         information.
33149
33150 2008-06-17  Bruno Haible  <bruno@clisp.org>
33151
33152         New macro gl_DISABLE_THREADS.
33153         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33154         if the user did not pass --enable-threads or --disable-threads option.
33155         (gl_DISABLE_THREADS): New macro.
33156         Reported by Eric Blake <ebb9@byu.net>.
33157
33158 2008-06-17  Bruno Haible  <bruno@clisp.org>
33159
33160         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33161         when the macro ignores it.
33162         Based on a patch by Eric Blake <ebb9@byu.net>.
33163
33164 2008-06-17  Bruno Haible  <bruno@clisp.org>
33165
33166         * modules/tls (License): Change to LGPLv2+.
33167         Reported by Eric Blake.
33168
33169 2008-06-17  Eric Blake  <ebb9@byu.net>
33170
33171         Simplify c-stack prerequisites.
33172         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33174         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33175         check.
33176         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33177         <sys/resource.h>.
33178
33179         Move c-stack test into testsuite.
33180         * modules/c-stack-tests: New file.
33181         * lib/c-stack.c [DEBUG]: Move test program...
33182         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33183         fail test if sigaltstack is lacking.
33184         * tests/test-c-stack.sh: New driver file.
33185
33186 2008-06-16  Eric Blake  <ebb9@byu.net>
33187
33188         Use raise module consistently.
33189         * modules/fatal-signal (Depends-on): Add raise.
33190         * modules/sigprocmask (Depends-on): Likewise.
33191         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33192         * lib/sigprocmask.c (sigprocmask): Likewise.
33193         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33194         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33195
33196         Fix compliance bug in sigpending.
33197         * lib/sigprocmask.c (sigpending): Return pending array via
33198         parameter, not return value.
33199
33200 2008-06-14  Eric Blake  <ebb9@byu.net>
33201
33202         Improve obstack-printf test code.
33203         * tests/test-obstack-printf.c (test_function): Fix comment, and
33204         simplify usage of obstack_* in macros.  Add a test for coverage.
33205         Reported by Bruno Haible.
33206
33207 2008-06-14  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33210         array size as a constant, not as a const variable.
33211         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33212         AC_USE_SYSTEM_EXTENSIONS.
33213         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33214         Test whether the obstack_printf function actually exists.
33215         * modules/obstack-printf (Depends-on): Add extensions.
33216         (Include): Remove obstack.h.
33217         * modules/obstack-printf-posix (Depends-on): Add extensions.
33218         (Include): Remove obstack.h.
33219
33220 2008-06-13  Eric Blake  <ebb9@byu.net>
33221
33222         Add obstack-printf and obstack-printf-posix modules.
33223         * modules/obstack-printf: New file.
33224         * modules/obstack-printf-posix: Likewise.
33225         * MODULES.html.sh (Misc): Mention them.
33226         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33227         Likewise.
33228         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33229         Likewise.
33230         * modules/stdio (Makefile.am): Accomodate new modules.
33231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33232         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33233         Declare.
33234         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33235         functions.
33236         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33237         (gl_REPLACE_OBSTACK_PRINTF): New macros
33238         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33239         * tests/test-obstack-printf.c: New file.
33240         * modules/obstack-printf-tests: Likewise.
33241         * modules/obstack-printf-posix-tests: Likewise.
33242
33243 2008-06-11  Bruno Haible  <bruno@clisp.org>
33244
33245         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33246         * lib/open.c: Include errno.h.
33247         (open): Fail when attempting to write to a file that has a trailing
33248         slash.
33249         * tests/test-open.c (main): Test against trailing slash bug.
33250         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33251
33252 2008-06-10  Bruno Haible  <bruno@clisp.org>
33253
33254         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33255         for $? to work inside the trap command, with various /bin/sh-s.
33256         * tests/test-vc-list-files-cvs.sh: Likewise.
33257
33258 2008-06-10  Bruno Haible  <bruno@clisp.org>
33259
33260         * lib/acl-internal.h: Don't include gettext.h here.
33261         * lib/set-mode-acl.c: Include gettext.h here.
33262         * lib/copy-acl.c: Likewise.
33263
33264 2008-06-10  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33267         * lib/wait-process.c (wait_subprocess): Likewise.
33268         * lib/execute.h (execute): Add termsigp argument.
33269         * lib/execute.c (execute): Likewise.
33270         * lib/csharpcomp.c (compile_csharp_using_pnet,
33271         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33272         * lib/csharpexec.c (execute_csharp_using_pnet,
33273         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33274         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33275         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33276         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33277         is_jikes_present): Update.
33278         * lib/javaexec.c (execute_java_class): Update.
33279         * lib/javaversion.c (execute_and_read_line): Update.
33280         * NEWS: Document the changes.
33281         Reported by Eric Blake.
33282
33283 2008-06-10  Eric Blake  <ebb9@byu.net>
33284
33285         Add missing include.
33286         * tests/test-strstr.c (includes): Add <signal.h>.
33287         * tests/test-strcasestr.c (includes): Likewise.
33288         * tests/test-memmem.c (includes): Likewise.
33289
33290 2008-06-10  Bruno Haible  <bruno@clisp.org>
33291
33292         * lib/wait-process.c (wait_subprocess): Add an assertion.
33293
33294 2008-06-10  Bruno Haible  <bruno@clisp.org>
33295
33296         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33297
33298 2008-06-10  Bruno Haible  <bruno@clisp.org>
33299
33300         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33301         using alarm().
33302         * tests/test-strcasestr.c (main): Likewise.
33303         * tests/test-strstr.c (main): Likewise.
33304
33305 2008-06-09  Bruno Haible  <bruno@clisp.org>
33306
33307         Work around the Solaris 10 ACE ACLs ABI change.
33308         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33309         declare if ACL_NO_TRIVIAL is present.
33310         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33311         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33312         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33313         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33314         define if ACL_NO_TRIVIAL is present.
33315         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33316         and use the current ABI.
33317         (file_has_acl): Use same #if condition as elsewhere.
33318         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33319         in use, and use the current ABI.
33320         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33321         Reported by Jim Meyering.
33322
33323 2008-06-09  Eric Blake  <ebb9@byu.net>
33324
33325         Work around environments that (stupidly) ignore SIGALRM.
33326         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33327         before using alarm().
33328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33329         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33330         Reported by Ian Beckwith <ianb@erislabs.net>.
33331
33332         Produce autobuild blurb earlier in log.
33333         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33334
33335 2008-06-09  Jim Meyering  <meyering@redhat.com>
33336         and OndÅ™ej Vašík  <ovasik@redhat.com>
33337
33338         utimens.c: correct kernel bug work-around
33339         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33340         failure, not success, and the kernel bug we're trying to work
33341         around affects not just the utimensat call, but also the fallback
33342         futimens call.
33343         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33344         not success.
33345         [HAVE_FUTIMENS]: Use the same work-around, here.
33346
33347 2008-06-09  Jim Meyering  <meyering@redhat.com>
33348
33349         add more guards around definition of ACE_-related code
33350         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33351         ALLOW and ACE_OWNER are also defined.
33352
33353 2008-06-08  Bruno Haible  <bruno@clisp.org>
33354
33355         * lib/acl-internal.h: Add me as co-author.
33356         * lib/file-has-acl.c: Likewise.
33357         * lib/set-mode-acl.c: Likewise.
33358         * lib/copy-acl.c: Likewise.
33359
33360 2008-06-08  Bruno Haible  <bruno@clisp.org>
33361
33362         Add support for AIX ACLs.
33363         * lib/acl-internal.h (acl_nontrivial): New declaration.
33364         * lib/file-has-acl.c (acl_nontrivial): New function.
33365         (file_has_acl): Add implementation using AIX 4 ACL API.
33366         * lib/set-mode-acl.c (qset_acl): Likewise.
33367         * lib/copy-acl.c (qcopy_acl): Likewise.
33368
33369 2008-06-08  Bruno Haible  <bruno@clisp.org>
33370
33371         Add support for HP-UX ACLs.
33372         * lib/acl-internal.h (acl_nontrivial): New declaration.
33373         * lib/file-has-acl.c (acl_nontrivial): New function.
33374         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33375         * lib/set-mode-acl.c (qset_acl): Likewise.
33376         * lib/copy-acl.c (qcopy_acl): Likewise.
33377
33378 2008-06-08  Bruno Haible  <bruno@clisp.org>
33379
33380         Add support for Cygwin ACLs.
33381         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33382         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33383         the chmod_or_fchmod call.
33384         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33385
33386 2008-06-08  Bruno Haible  <bruno@clisp.org>
33387
33388         Fix bug with setuid modes in Solaris 10+ code.
33389         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33390         succeeded, when the mode contains some special bits.
33391
33392 2008-06-08  Bruno Haible  <bruno@clisp.org>
33393
33394         Add support for Solaris 7..10 ACLs.
33395         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33396         declarations.
33397         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33398         functions.
33399         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33400         * lib/set-mode-acl.c (qset_acl): Likewise.
33401         * lib/copy-acl.c (qcopy_acl): Likewise.
33402
33403 2008-06-08  Bruno Haible  <bruno@clisp.org>
33404
33405         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33406         declaration.
33407         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33408         (acl_access_nontrivial): Remove MacOS X case.
33409         (file_has_acl): Use acl_extended_nontrivial.
33410         * lib/copy-acl.c (qcopy_acl): Likewise.
33411
33412 2008-06-08  Bruno Haible  <bruno@clisp.org>
33413
33414         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33415
33416 2008-06-08  Jim Meyering  <meyering@redhat.com>
33417
33418         * modules/acl (Maintainer): Add Bruno Haible.
33419
33420 2008-06-07  Bruno Haible  <bruno@clisp.org>
33421
33422         Improve support for Tru64 ACLs.
33423         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33424         ACL on OSF/1.
33425
33426 2008-06-07  Bruno Haible  <bruno@clisp.org>
33427
33428         Add support for MacOS X ACLs.
33429         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33430         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33431         * lib/set-mode-acl.c (qset_acl): Likewise.
33432         * lib/copy-acl.c (qcopy_acl): Likewise.
33433
33434 2008-06-07  Bruno Haible  <bruno@clisp.org>
33435
33436         Fix memory leak introduced on 2008-05-22.
33437         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33438         use.
33439
33440 2008-06-07  Bruno Haible  <bruno@clisp.org>
33441
33442         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33443         to construct an empty ACL.
33444
33445 2008-06-07  Bruno Haible  <bruno@clisp.org>
33446
33447         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33448         precisely.
33449         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33450
33451 2008-06-07  Bruno Haible  <bruno@clisp.org>
33452
33453         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33454         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33455
33456 2008-06-07  Bruno Haible  <bruno@clisp.org>
33457
33458         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33459         regardless of POSIX.
33460         * doc/posix-functions/_longjmp.texi: Likewise.
33461         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33462         SystemV platform in this case.
33463
33464 2008-06-06  Eric Blake  <ebb9@byu.net>
33465
33466         Document abort() bugs.
33467         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33468
33469         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33470         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33471         sigsetjmp.
33472         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33473         siglongjmp, but only as a macro.
33474         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33475         is obsolete.
33476         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33477
33478         Tweak documentation to cover cygwin argz bugs.
33479         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33480         argz bug fix; no code change needed since no cygwin releases
33481         occurred between the last fix and the bug being tested.
33482         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33483         module and recently fixed cygwin bugs.
33484         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33485         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33486         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33487         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33488         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33489         Likewise.
33490         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33491         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33492         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33493         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33494         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33495         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33496         Likewise.
33497
33498         Avoid gcc warning on cygwin.
33499         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33500         !ACL_NO_TRIVIAL]: Avoid unused variable.
33501
33502 2008-06-05  Eric Blake  <ebb9@byu.net>
33503
33504         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33505         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33506         git-version-gen fails to come up with a version.
33507         Reported by Simon Josefsson.
33508
33509 2008-06-05  Jim Meyering  <meyering@redhat.com>
33510             Paul Eggert  <eggert@cs.ucla.edu>
33511
33512         utimens.c: work around a probable Linux kernel bug
33513         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33514         appears to be a kernel bug that causes utimensat to return 280
33515         instead of 0, indicating success.
33516
33517 2008-06-04  Bruno Haible  <bruno@clisp.org>
33518
33519         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33520         2008-06-01 commit.
33521
33522 2008-06-04  Bruno Haible  <bruno@clisp.org>
33523
33524         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33525         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33526         (file_has_acl): Use it. Save errno afterwards.
33527         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33528
33529 2008-06-03  Bruno Haible  <bruno@clisp.org>
33530
33531         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33532         draft code. Simplify #ifs.
33533         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33534         Put Solaris code after POSIX-draft code. Fix comments regarding
33535         Solaris 10, HP-UX. Mention Cygwin.
33536         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33537
33538 2008-06-03  Eric Blake  <ebb9@byu.net>
33539
33540         Provide fallback for older kernels.
33541         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33542         Provide runtime fallback if kernel lacks support.
33543         Reported by Mike Frysinger.
33544
33545 2008-06-02  Bruno Haible  <bruno@clisp.org>
33546
33547         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33548         it exists.
33549
33550 2008-06-02  Bruno Haible  <bruno@clisp.org>
33551
33552         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33553         * lib/copy-acl.c (qcopy_acl): Update comment.
33554
33555 2008-06-02  Bruno Haible  <bruno@clisp.org>
33556
33557         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33558         like ACL APIs.
33559
33560 2008-06-02  Bruno Haible  <bruno@clisp.org>
33561
33562         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33563         * tests/test-set-mode-acl.sh: Likewise.
33564         * tests/test-copy-acl.sh: Likewise.
33565         * tests/test-copy-file.sh: Likewise.
33566
33567 2008-06-02  Bruno Haible  <bruno@clisp.org>
33568
33569         * tests/test-file-has-acl.sh: Remove unused code.
33570
33571 2008-06-01  Bruno Haible  <bruno@clisp.org>
33572
33573         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33574         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33575         messages.
33576         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33577
33578 2008-06-01  Bruno Haible  <bruno@clisp.org>
33579
33580         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33581         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33582         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33583         APIs.
33584         * modules/acl-tests (configure.ac): Remove tests now contained in
33585         m4/acl.m4.
33586
33587 2008-06-02  Jim Meyering  <meyering@redhat.com>
33588
33589         announce-gen: use a better key-server host name
33590         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33591         it may be more consistently reliable.  Suggested by Werner Koch
33592         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33593
33594 2008-06-01  Bruno Haible  <bruno@clisp.org>
33595
33596         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33597         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33598
33599 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33600
33601         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33602
33603 2008-06-01  Bruno Haible  <bruno@clisp.org>
33604
33605         New ACL tests.
33606         * tests/test-file-has-acl.sh: New file.
33607         * tests/test-file-has-acl.c: New file.
33608         * tests/test-set-mode-acl.sh: New file.
33609         * tests/test-set-mode-acl.c: New file.
33610         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33611         * tests/test-copy-acl.c: New file.
33612         * modules/acl-tests: New file, based on modules/copy-file-tests.
33613         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33614         (Depends-on): Add acl-tests.
33615         (configure.ac): Remove checks.
33616         (Makefile.am): Don't create test-sameacls program here any more.
33617
33618 2008-06-01  Bruno Haible  <bruno@clisp.org>
33619
33620         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33621         * tests/test-sameacls.c: Include progname.h.
33622         (main): Invoke set_program_name. Portability fixes for MacOS X,
33623         Solaris, HP-UX.
33624
33625 2008-06-01  Bruno Haible  <bruno@clisp.org>
33626
33627         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33628         function.
33629         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33630
33631 2008-06-01  Bruno Haible  <bruno@clisp.org>
33632
33633         * modules/rpmatch (Depends-on): Add strdup.
33634
33635 2008-06-01  Bruno Haible  <bruno@clisp.org>
33636
33637         * lib/pipe.c: Include unistd-safer.h.
33638         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33639         * modules/pipe (Depends-on): Add unistd-safer.
33640
33641 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33642
33643         * modules/autobuild (configure.ac): Call AB_INIT.
33644
33645 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33646
33647         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33648         Suggested by Bruno Haible <bruno@clisp.org>.
33649
33650 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33651
33652         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33653         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33654         <bruno@clisp.org>.
33655
33656 2008-05-29  Eric Blake  <ebb9@byu.net>
33657
33658         Prefer new POSIX 200x interfaces over futimesat.
33659         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33660         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33661         when available.
33662         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33663
33664 2008-05-28  Bruno Haible  <bruno@clisp.org>
33665
33666         * modules/stpcpy (License): Change to LGPLv2+.
33667         Requested by David Lutterkort <dlutter@redhat.com>.
33668
33669 2008-05-27  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33672         current mingw.
33673         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33674
33675 2008-05-27  Bruno Haible  <bruno@clisp.org>
33676
33677         * modules/iconv_open (Link): New section, from module 'iconv'.
33678         * modules/striconv (Link): Likewise.
33679         * modules/striconveh (Link): Likewise.
33680         * modules/xstriconv (Link): Likewise.
33681         * modules/unicodeio (Link): Likewise.
33682         * modules/propername (Link): Likewise.
33683         Reported by Jim Meyering.
33684
33685 2008-05-26  Jim Meyering  <meyering@redhat.com>
33686
33687         sha256: do not artificially restrict buffer length to be < 2^32
33688         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33689         uint32_t to size_t.
33690         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33691         to match.
33692
33693         avoid unaligned access errors, e.g., on sparc
33694         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33695         direct access through a possibly-unaligned uint64* pointer.
33696         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33697         direct access through a possibly-unaligned uint32* pointer.
33698         Prompted by this patch from Tom "spot" Callaway:
33699         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33700
33701         sha512.c: fix typo in comment
33702         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33703
33704 2008-05-25  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33707         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33708         (Makefile.am): Update lib_SOURCES.
33709
33710 2008-05-25  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33713
33714 2008-05-25  Jim Meyering  <meyering@redhat.com>
33715
33716         useless-if-before-free: freed expr may have white-space differences
33717         * build-aux/useless-if-before-free: Recognize cases in which the
33718         freed expression differs from the tested one in embedded white
33719         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33720         $1 was used, so we can't make any regexp shy.  Improved tests now
33721         detect this.
33722
33723         useless-if-before-free: accept white space in the expression.
33724         * build-aux/useless-if-before-free: For now, any white space
33725         in the expression must be identical in the free argument.
33726
33727         useless-if-before-free: efficiency tweak
33728         * build-aux/useless-if-before-free: Make the expression-matching
33729         regexp "shy".
33730         Make the *outer* regexp shy, not the expr-matching one.
33731
33732         update code-in-comment to accept cast of free arg
33733         * build-aux/useless-if-before-free: Update regexp.
33734
33735 2008-05-25  Bruno Haible  <bruno@clisp.org>
33736
33737         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33738         * modules/copy-file-tests (Files, Makefile.am): Update.
33739         * tests/test-copy-file.c (func_test_copy): Update.
33740
33741 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33742
33743         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33744
33745 2008-05-23  Bruno Haible  <bruno@clisp.org>
33746
33747         Improve support for ACLs on OSF/1.
33748         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33749         Remove fallback for unknown flavors of ACLs.
33750
33751 2008-05-22  Bruno Haible  <bruno@clisp.org>
33752
33753         Add support for ACLs on OSF/1.
33754         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33755         replacements.
33756         (acl_free_text): New macro fallback.
33757         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33758         acl_free.
33759         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33760         acl_free_text function. Require AC_C_INLINE.
33761
33762 2008-05-22  Bruno Haible  <bruno@clisp.org>
33763
33764         Make copy_acl work on MacOS X 10.5.
33765         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33766         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33767         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33768         If MODE_INSIDE_ACL, don't assume that every system has the same text
33769         representation for ACLs as FreeBSD.
33770         * lib/copy-acl.c (copy_acl): Add support for platforms with
33771         !MODE_INSIDE_ACL.
33772         * lib/file-has-acl.c (file_has_acl): Likewise.
33773         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33774         FreeBSD, MacOS X, or IRIX, respectively.
33775
33776 2008-05-22  Bruno Haible  <bruno@clisp.org>
33777
33778         * lib/acl.h: Don't include <sys/acl.h>.
33779         (GETACLCNT): Move fallback to lib/acl-internal.h.
33780         * lib/acl-internal.h: Include <sys/acl.h> here.
33781         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33782
33783 2008-05-22  Bruno Haible  <bruno@clisp.org>
33784
33785         Split off copy_acl function to separate file.
33786         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33787         * lib/acl.c (copy_acl): Moved function to separate file.
33788         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33789         * modules/acl (Files): Add lib/copy-acl.c.
33790         (Makefiles.am): Augment lib_SOURCES.
33791
33792 2008-05-22  Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/copy-file-tests: New file.
33795         * tests/test-copy-file.sh: New file.
33796         * tests/test-copy-file.c: New file.
33797         * tests/test-copy-file-sameacls.c: New file.
33798
33799 2008-05-22  Eric Blake  <ebb9@byu.net>
33800
33801         Avoid gcc warning.
33802         * tests/test-memcmp.c (main): Pass NULL indirectly.
33803
33804 2008-05-21  Bruno Haible  <bruno@clisp.org>
33805
33806         Add reference doc about ACLs.
33807         * doc/acl-resources.txt: New file.
33808         * doc/acl-cygwin.txt: New file.
33809
33810 2008-05-21  Bruno Haible  <bruno@clisp.org>
33811
33812         Avoid one more warning from gcc.
33813         * lib/vasnprintf.c (IF_LINT): Update comments.
33814         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33815
33816 2008-05-21  Jim Meyering  <meyering@redhat.com>
33817
33818         avoid a warning from gcc
33819         * lib/vasnprintf.c (IF_LINT): Define.
33820         (scale10_round_decimal_long_double):
33821         Use it to avoid a "may be used uninitialized" warning.
33822         (scale10_round_decimal_double): Likewise.
33823
33824 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33825
33826         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33827         declared.
33828
33829 2008-05-20  Bruno Haible  <bruno@clisp.org>
33830
33831         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33832         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33833
33834 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33835
33836         * modules/memcmp-tests: New file.
33837         * tests/test-memcmp.c: New file.
33838
33839 2008-05-19  Bruno Haible  <bruno@clisp.org>
33840
33841         * modules/propername (Notice, configure.ac): Put quoted "..." into
33842         --keyword option.
33843         * lib/propername.h: Update comments accordingly.
33844         Reported by Eric Blake.
33845
33846 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33847
33848         * modules/getpass-gnu (Depends-on): Add fseeko.
33849
33850 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33851
33852         * modules/base64-tests: New file.
33853
33854 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33855
33856         * lib/base64.c (base64_decode_ctx): If a decode context structure
33857         was passed in use it to ignore newlines.  If a context structure
33858         was _not_ passed in, continue to treat newlines as garbage (this
33859         is the historical behavior).  Formerly base64_decode.
33860         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33861         takes a decode context structure.
33862         * lib/base64.h (base64_decode): Macro for four-argument calls.
33863         (base64_decode_alloc): Likewise.
33864         * lib/base64.c (base64_decode_ctx): If a decode context structure
33865         was passed in use it to ignore newlines.  If a context structure
33866         was _not_ passed in, continue to treat newlines as garbage (this
33867         is the historical behavior).  Formerly base64_decode.
33868         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33869         takes a decode context structure.
33870         * lib/base64.h (base64_decode): Macro for four-argument calls.
33871         (base64_decode_alloc): Likewise.
33872
33873 2008-05-19  Jim Meyering  <meyering@redhat.com>
33874
33875         avoid a warning from gcc
33876         * lib/trim.c (IF_LINT): Define.
33877         (trim2): Use it to avoid a "may be used uninitialized" warning.
33878
33879         Fix doc typo.
33880         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33881
33882 2008-05-19  Bruno Haible  <bruno@clisp.org>
33883
33884         * doc/glibc-functions/getpass.texi: Document limits of other
33885         implementations.
33886
33887 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33888             Bruno Haible <bruno@clisp.org>
33889
33890         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33891
33892 2008-05-18  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/propername: New file, from GNU gettext.
33895         * lib/propername.h: New file, from GNU gettext.
33896         * lib/propername.c: New file, from GNU gettext.
33897         * MODULES.html.sh (Internationalization functions): Add propername.
33898
33899 2008-05-16  Jim Meyering  <meyering@redhat.com>
33900             Bruno Haible  <bruno@clisp.org>
33901
33902         Avoid some warnings from "gcc -Wshadow".
33903         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33904
33905 2008-05-15  Eric Blake  <ebb9@byu.net>
33906
33907         Extend previous patch to cygwin 1.7.0.
33908         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33909         fast implementation in cygwin >= 1.7.0.
33910         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33912
33913 2008-05-15  Bruno Haible  <bruno@clisp.org>
33914
33915         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33916         implementation in glibc >= 2.9.
33917         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33919
33920 2008-05-15  Bruno Haible  <bruno@clisp.org>
33921
33922         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33923         (Unicode string functions): Add unilbrk/*.
33924         Reported by Karl Berry.
33925
33926 2008-05-15  Eric Blake  <ebb9@byu.net>
33927
33928         Fix violation of <stdbool.h> replacement in regex.
33929         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33930         * lib/regexec.c (re_search_internal): Likewise.
33931         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33932
33933 2008-05-15  Jim Meyering  <meyering@redhat.com>
33934
33935         avoid distracting test output when git or cvs is not found
33936         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33937         * tests/test-vc-list-files-git.sh: Likewise.
33938
33939 2008-05-15  Eric Blake  <ebb9@byu.net>
33940
33941         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33942         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33943         glibc version.
33944         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33945         * doc/posix-functions/strstr.texi (strstr): Likewise.
33946         * lib/str-two-way.h (MAX): Sychronize with glibc.
33947
33948 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33949
33950         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33951         opr.ctx_type.
33952         (calc_first): Initialize constraint field.
33953         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33954         Fix grammar.
33955         (duplicate_node): Merge constraint field for all node types.
33956         (calc_eclosure_iter): Look at constraint field for all node types.
33957         * lib/regex_internal.c (create_cd_newstate): Don't look at
33958         opr.ctx_type.
33959
33960 2008-05-14  Bruno Haible  <bruno@clisp.org>
33961
33962         Help GCC to do better code generation.
33963         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33964         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33965         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33966         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33967         Declare with attribute 'malloc' if supported.
33968
33969 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33970
33971         use "echo STR|wc -c" rather than unportable "expr length STR"
33972         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33973         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33974
33975 2008-05-14  Jim Meyering  <meyering@redhat.com>
33976
33977         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33978         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33979         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33980         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33981         via Collin Lasse.
33982
33983 2008-05-14  Eric Blake  <ebb9@byu.net>
33984
33985         Avoid quadratic growth in gl_LIBSOURCES.
33986         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33987         Suggested by Bruno Haible.
33988
33989         Test xmemdup0.
33990         * modules/xmemdup0-tests: New file.
33991         * tests/test-xmemdup0.c: Likewise.
33992
33993 2008-05-13  Eric Blake  <ebb9@byu.net>
33994
33995         Split xmemdup0 into its own module.
33996         * modules/xmemdup0: New file.
33997         * lib/xmemdup0.h: Likewise.
33998         * lib/xmemdup0.c: Likewise.
33999         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34000         * lib/xalloc.h (xmemdup0): Remove.
34001         * lib/xmalloc.c (xmemdup0): Likewise.
34002
34003 2008-05-13  Eric Blake  <ebb9@byu.net>
34004             Bruno Haible  <bruno@clisp.org>
34005
34006         Reduce number of forks required during autoconf.
34007         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34008         and gl_LIBSOURCES_DIR.
34009         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34010         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34011         m4_syscmd per file.
34012         <m4_foreach_w>: Move...
34013         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34014
34015 2008-05-13  Eric Blake  <ebb9@byu.net>
34016
34017         * gnulib-tool: Fix various comment typos.
34018
34019 2008-05-12  Bruno Haible  <bruno@clisp.org>
34020
34021         Tailor the linebreaking algorithm.
34022         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34023
34024 2008-05-12  Bruno Haible  <bruno@clisp.org>
34025
34026         Update to Unicode 5.0.0.
34027         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34028         LBP_JV, LBP_JT. Redistribute values.
34029         (unilbrk_table): Change size.
34030         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34031         Unicode TR#14 rev. 22.
34032         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34033         LBP_JV, LBP_JT. Redistribute values.
34034         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34035         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34036         Update.
34037         * lib/unilbrk/lbrkprop1.h: Regenerated.
34038         * lib/unilbrk/lbrkprop2.h: Regenerated.
34039         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34040         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34041         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34042         Likewise.
34043         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34044         Likewise.
34045         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34046         result.
34047         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34048         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34049         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34050         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34051         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34052         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34053
34054 2008-05-11  Bruno Haible  <bruno@clisp.org>
34055
34056         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34057
34058 2008-05-11  Bruno Haible  <bruno@clisp.org>
34059
34060         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34061         * modules/unilbrk/gen-lbrk: New file.
34062
34063 2008-05-11  Bruno Haible  <bruno@clisp.org>
34064
34065         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34066         * m4/sha512.m4 (gl_SHA512): Likewise.
34067
34068 2008-05-11  Jim Meyering  <meyering@redhat.com>
34069
34070         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34071         * modules/crypto/sha256: New file.
34072         * modules/crypto/sha512: Likewise.
34073         * lib/sha256.c: Likewise.
34074         * lib/sha256.h: Likewise.
34075         * lib/sha512.c: Likewise.
34076         * lib/sha512.h: Likewise.
34077         * lib/u64.h: Likewise.
34078         * m4/sha256.m4: Likewise.
34079         * m4/sha512.m4: Likewise.
34080         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34081
34082 2008-05-10  Bruno Haible  <bruno@clisp.org>
34083
34084         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34085         (Input/Output <stdio.h>): Add xprintf.
34086         (Signal handling <signal.h>): Add strsignal.
34087         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34088         (Core language properties): Add func.
34089         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34090         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34091         strings.
34092         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34093         (Input/output): New section.
34094         (File system functions): Add openat-die, stat-macros.
34095         (Networking functions): Add sockets.
34096         (Unicode string functions): Add unictype/*.
34097         (Support for building libraries and executables): Add gperf.
34098         (Support for building documentation): Add agpl-3.0.
34099         (Misc): Add nocrash.
34100
34101 2008-05-10  Bruno Haible  <bruno@clisp.org>
34102
34103         * modules/unictype/gen-ctype: New file.
34104
34105 2008-05-10  Jim Meyering  <meyering@redhat.com>
34106
34107         Make chdir-safer.c more efficient on a system with no symlinks.
34108         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34109         also if ELOOP is zero.  Suggested by Bruno Haible.
34110
34111         Make chdir-safer.c slightly safer.
34112         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34113         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34114
34115         Avoid compile failure on systems without ELOOP (like mingw).
34116         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34117         Reported by Bruno Haible.
34118
34119 2008-05-10  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34122         (is_utf8_encoding): Use a case-insensitive comparison.
34123         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34124         streq.
34125
34126 2008-05-10  Bruno Haible  <bruno@clisp.org>
34127
34128         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34129         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34130         * lib/unilbrk/ulc-common.h (iconv_string_length,
34131         iconv_string_keeping_offsets): Remove declarations.
34132         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34133         Don't include <iconv.h>, streq.h, xsize.h.
34134         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34135         conversion.
34136         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34137         <iconv.h>, streq.h, xsize.h.
34138         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34139         conversion.
34140         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34141         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34142         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34143         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34144
34145 2008-05-10  Bruno Haible  <bruno@clisp.org>
34146
34147         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34148         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34149
34150         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34151         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34152
34153         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34154         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34155
34156         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34157         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34158
34159         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34160         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34161
34162         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34163         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34164
34165         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34166         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34167
34168         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34169         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34170
34171 2008-05-10  Bruno Haible  <bruno@clisp.org>
34172
34173         Split up 'linebreak' module.
34174         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34175         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34176         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34177         modifications.
34178         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34179         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34180         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34181         lib/linebreak.c.
34182         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34183         lib/linebreak.c.
34184         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34185         lib/linebreak.c.
34186         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34187         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34188         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34189         lib/linebreak.c.
34190         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34191         lib/linebreak.c.
34192         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34193         lib/linebreak.c.
34194         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34195         lib/linebreak.c.
34196         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34197         lib/linebreak.c.
34198         * modules/unilbrk/base: New file.
34199         * modules/unilbrk/tables: New file.
34200         * modules/unilbrk/u8-possible-linebreaks: New file.
34201         * modules/unilbrk/u16-possible-linebreaks: New file.
34202         * modules/unilbrk/u32-possible-linebreaks: New file.
34203         * modules/unilbrk/ulc-common: New file.
34204         * modules/unilbrk/ulc-possible-linebreaks: New file.
34205         * modules/unilbrk/u8-width-linebreaks: New file.
34206         * modules/unilbrk/u16-width-linebreaks: New file.
34207         * modules/unilbrk/u32-width-linebreaks: New file.
34208         * modules/unilbrk/ulc-width-linebreaks: New file.
34209         * lib/linebreak.h: Remove file.
34210         * lib/linebreak.c: Remove file.
34211         * m4/linebreak.m4: Remove file.
34212         * modules/linebreak: Remove file.
34213         * NEWS: Mention the changes.
34214
34215 2008-05-09  Eric Blake  <ebb9@byu.net>
34216
34217         Add xmemdup0.
34218         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34219         implementation.
34220         * lib/xmalloc.c (xmemdup0): New C implementation.
34221
34222 2008-05-08  Bruno Haible  <bruno@clisp.org>
34223
34224         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34225
34226 2008-05-07  Eric Blake  <ebb9@byu.net>
34227
34228         Support cross-compilation of <wctype.h>.
34229         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34230         AC_CACHE_CHECK.
34231
34232 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34233
34234         * build-aux/vc-list-files: Add support for bzr.
34235
34236 2008-05-03  Jim Meyering  <meyering@redhat.com>
34237
34238         avoid failed assertion with tight malloc
34239         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34240
34241 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34242
34243         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34244         are needed from arpa/inet.h.
34245         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34246         Reported by Bruno Haible.
34247
34248 2008-05-02  Jim Meyering  <meyering@redhat.com>
34249
34250         avoid compilation error on FreeBSD 6
34251         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34252
34253 2008-05-01  Jim Meyering  <meyering@redhat.com>
34254
34255         useless-if-before-free: correct --help's exit status description
34256         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34257         for one or more matches, etc.  Reported by Bruno Haible.
34258
34259         vc-list-files: make the stand-alone gnulib test work
34260         * modules/vc-list-files-tests (configure.ac):
34261         Define and AC_SUBST abs_aux_dir.
34262         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34263         $(abs_top_srcdir) to each script and having each of them
34264         duplicate the work of setting PATH, set PATH here, using
34265         the new variable, abs_aux_dir instead.
34266         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34267         * tests/test-vc-list-files-git.sh: Likewise.
34268         Reported by Bruno Haible.
34269
34270 2008-05-01  Bruno Haible  <bruno@clisp.org>
34271
34272         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34273         reallocation. Rename 'done' to 'found_delimiter'.
34274
34275 2008-05-01  Jim Meyering  <meyering@redhat.com>
34276
34277         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34278         * build-aux/vc-list-files: Use `...`, not $(...).
34279
34280 2008-04-30  Jim Meyering  <meyering@redhat.com>
34281
34282         add tests for vc-list-files
34283         * modules/vc-list-files-tests: New module.
34284         * tests/test-vc-list-files-cvs.sh: New file.
34285         * tests/test-vc-list-files-git.sh: New file.
34286
34287         avoid a warning from gcc
34288         * lib/getndelim2.c (IF_LINT): Define.
34289         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34290
34291         vc-list-files: work properly with build-aux/cvsu, too
34292         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34293         to all cvs-based clauses.
34294
34295         vc-list-files: work properly in the CVS+awk case, too
34296         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34297
34298         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34299         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34300         take more than one file argument, so .  Add quotes, just in case $dir
34301         ever contains a shell meta-character.  Prompted by Soren Hansen in
34302         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34303
34304 2008-04-29  Eric Blake  <ebb9@byu.net>
34305
34306         Optimize getndelim2 to use block operations when possible.
34307         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34308         freadseek, and memchr2.
34309         * lib/getndelim2.c (getndelim2): Use them for block reads.
34310
34311 2008-04-29  Bruno Haible  <bruno@clisp.org>
34312
34313         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34314         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34315         * modules/inet_ntop (Depends-on): Add extensions.
34316         * modules/inet_pton (Depends-on): Likewise.
34317         Reported by Simon Josefsson.
34318
34319 2008-04-29  Jim Meyering  <meyering@redhat.com>
34320
34321         When the is more than one match in a block, match all of them.
34322         * build-aux/useless-if-before-free: Iterate through each block
34323         until there are no more matches.
34324
34325         Fix broken useless-if-before-free script.
34326         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34327         the expression to match cast of argument to free-like function.
34328
34329 2008-04-29  Eric Blake  <ebb9@byu.net>
34330
34331         Use new header.
34332         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34333
34334 2008-04-29  Jim Meyering  <meyering@redhat.com>
34335
34336         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34337         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34338         by gnulib to exist and to declare e.g., inet_ntop.
34339         Don't include "inet_ntop.h", now removed.
34340
34341         * m4/arpa_inet_h.m4: Remove trailing blanks.
34342
34343 2008-04-29  Eric Blake  <ebb9@byu.net>
34344
34345         Silence valgrind on safe reads beyond potential array bounds.
34346         * lib/rawmemchr.valgrind: New file.
34347         * lib/strchrnul.valgrind: Likewise.
34348         * modules/rawmemchr (Files): Distribute new file.
34349         * modules/strchrnul (Files): Likewise.
34350         Suggested by Bruno Haible.
34351
34352 2008-04-29  Bruno Haible  <bruno@clisp.org>
34353
34354         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34355         (inet_ntop, inet_pton): Change portability warning's wording.
34356         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34357         Invoke gl_CHECK_NEXT_HEADERS.
34358         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34359         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34360         set ARPA_INET_H.
34361         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34362         * modules/arpa_inet (Description): No longer only for systems that
34363         lack it.
34364         (Depends-on): Add include_next.
34365         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34366         HAVE_ARPA_INET_H.
34367
34368 2008-04-29  Jim Meyering  <meyering@redhat.com>
34369
34370         * modules/mkdir (License): Re-license as LGPLv2+.
34371
34372 2008-04-29  Bruno Haible  <bruno@clisp.org>
34373
34374         * modules/rawmemchr (Maintainer): Set to Eric.
34375         * modules/strchrnul (Maintainer): Likewise.
34376
34377 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34378
34379         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34380         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34381
34382         * modules/arpa_inet (arpa/inet.h): Use them.
34383
34384 2008-04-28  Eric Blake  <ebb9@byu.net>
34385
34386         Test getndelim2.
34387         * modules/getndelim2-tests: New file.
34388         * tests/test-getndelim2.c: Likewise.
34389         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34390         stream.
34391         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34392
34393         * MODULES.html.sh: Document new module.
34394
34395 2008-04-20  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/c-stack.c (die): Use raise.
34398         * modules/c-stack (Depends-on): Add raise.
34399
34400 2008-04-28  Bruno Haible  <bruno@clisp.org>
34401
34402         Expect rpmatch to be declared.
34403         * lib/yesno.c (rpmatch): Remove declaration.
34404
34405         Declare rpmatch.
34406         * lib/stdlib.in.h (rpmatch): New declaration.
34407         * lib/rpmatch.c: Include <stdlib.h> first.
34408         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34409         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34411         HAVE_RPMATCH.
34412         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34413         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34414         (Include): Set to <stdlib.h>.
34415         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34416         HAVE_RPMATCH.
34417         * NEWS: Document the change.
34418
34419 2008-04-28  Bruno Haible  <bruno@clisp.org>
34420
34421         Change rpmatch to use nl_langinfo when appropriate.
34422         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34423         (N_): New macro.
34424         (localized_pattern): New function/macro.
34425         (try): Remove match, nomatch arguments. Copy the pattern into safe
34426         memory before caching it.
34427         (rpmatch): Use localized_pattern. Add translator comments.
34428         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34429         Suggested by Eric Blake.
34430         * modules/rpmatch (Depends-on): Add stdbool.
34431
34432 2008-04-28  Eric Blake  <ebb9@byu.net>
34433
34434         Add rawmemchr module, matching glibc.
34435         * modules/string (Makefile.am): New indicator.
34436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34437         * lib/string.in.h (rawmemchr): Declare when appropriate.
34438         * modules/rawmemchr: New file.
34439         * m4/rawmemchr.m4: Likewise.
34440         * lib/rawmemchr.c: Likewise.
34441         * modules/rawmemchr-tests: Likewise.
34442         * tests/test-rawmemchr.c: Likewise.
34443         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34444         module.
34445         * modules/strchrnul (Depends-on): Add rawmemchr.
34446         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34447
34448         Whitespace cleanup.
34449         * tests/test-strchrnul.c: Reindent.
34450         * lib/strchrnul.c: Likewise.
34451
34452         Optimize and test strchrnul.
34453         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34454         * modules/strchrnul-tests: New file.
34455         * tests/test-strchrnul.c: Likewise.
34456
34457         Remove intprops dependency.
34458         * modules/memchr (Depends-on): Remove intprops.
34459         * modules/memrchr (Depends-on): Likewise.
34460         * modules/memchr2 (Depends-on): Likewise.
34461         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34462         * lib/memrchr.c (__memrchr): Likewise.
34463         * lib/memrchr2.c (memchr2): Likewise.
34464         Reported by Simon Josefsson.
34465
34466 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34467
34468         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34469         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34470
34471 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34472
34473         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34474
34475         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34476
34477         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34478
34479         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34480         declarations.
34481         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34482
34483         * m4/inet_pton.m4: Don't check for header files.
34484
34485         * m4/inet_ntop.m4: Don't check for header files.
34486
34487 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34488
34489         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34490         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34491         trigger for cygwin).
34492         Reported by Bruno Haible  <bruno@clisp.org>.
34493
34494 2008-04-28  Bruno Haible  <bruno@clisp.org>
34495
34496         * doc/posix-functions/strdup.texi: Mention mingw problem.
34497
34498 2008-04-27  Bruno Haible  <bruno@clisp.org>
34499
34500         * modules/stat-time-tests (Depends-on): Add sleep.
34501         * tests/test-stat-time.c (force_unlink): New function.
34502         (cleanup): Use it.
34503         (test_mtime): Remove the ctime related tests.
34504         (test_ctime): New function, containing the ctime related tests.
34505         (main): Call test_ctime, except on native Windows platforms.
34506
34507 2008-04-27  Bruno Haible  <bruno@clisp.org>
34508
34509         * lib/rpmatch.c (rpmatch): Add some comments.
34510         Reported by James Youngman <jay@gnu.org>.
34511
34512 2008-04-27  Bruno Haible  <bruno@clisp.org>
34513
34514         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34515         quiet NaNs.
34516
34517 2008-04-27  Bruno Haible  <bruno@clisp.org>
34518
34519         Make test-yesno.sh work on mingw.
34520         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34521         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34522         (main): Set stdin to binary mode.
34523         * modules/yesno-tests (Depends-on): Add binary-io.
34524
34525 2008-04-27  Bruno Haible  <bruno@clisp.org>
34526
34527         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34528         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34529         argument that lie outside the IEEE 854 domain.
34530         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34531         (gl_ISFINITE): Use it.
34532         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34533
34534 2008-04-27  Bruno Haible  <bruno@clisp.org>
34535
34536         Allow local renaming in config.h.
34537         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34538
34539 2008-04-27  Bruno Haible  <bruno@clisp.org>
34540
34541         * lib/memchr.c (__memchr): Change type of 'i'.
34542         * lib/memchr2.c (memchr2): Likewise.
34543
34544 2008-04-26  Eric Blake  <ebb9@byu.net>
34545         and Bruno Haible  <bruno@clisp.org>
34546
34547         Optimize and test memrchr.
34548         * modules/memrchr (Depends-on): Add intprops.
34549         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34550         * modules/memrchr-tests: New file.
34551         * tests/test-memrchr.c: New file.
34552
34553 2008-04-26  Bruno Haible  <bruno@clisp.org>
34554
34555         Add tentative support for DragonFly BSD.
34556         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34557         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34558         fp.
34559         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34560         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34561         * lib/fpurge.c (fpurge): Likewise.
34562         * lib/freadable.c (freaadable): Likewise.
34563         * lib/freadahead.c (freadahead): Likewise.
34564         * lib/freading.c (freading): Likewise.
34565         * lib/freadptr.c (freadptr): Likewise.
34566         * lib/freadseek.c (freadptrinc): Likewise.
34567         * lib/fseeko.c (fseeko): Likewise.
34568         * lib/fseterr.c (fseterr): Likewise.
34569         * lib/fwritable.c (fwritable): Likewise.
34570         * lib/fwriting.c (fwriting): Likewise.
34571
34572 2008-04-26  Bruno Haible  <bruno@clisp.org>
34573
34574         * lib/stdio-impl.h: New file.
34575         * lib/fbufmode.c: Include stdio-impl.h.
34576         (fbufmode): Use fp_, remove redundant #defines.
34577         * lib/fflush.c: Include stdio-impl.h.
34578         (clear_ungetc_buffer): Remove redundant #defines.
34579         * lib/fpurge.c: Include stdio-impl.h.
34580         (fpurge): Remove redundant #defines.
34581         * lib/freadable.c: Include stdio-impl.h.
34582         (freadable): Remove redundant #defines.
34583         * lib/freadahead.c: Include stdio-impl.h.
34584         (freadahead): Remove redundant #defines.
34585         * lib/freading.c: Include stdio-impl.h.
34586         (freading): Remove redundant #defines.
34587         * lib/freadptr.c: Include stdio-impl.h.
34588         (freadptr): Remove redundant #defines.
34589         * lib/freadseek.c: Include stdio-impl.h.
34590         (freadptrinc): Remove redundant #defines.
34591         * lib/fseeko.c: Include stdio-impl.h.
34592         (rpl_fseeko): Remove redundant #defines.
34593         * lib/fseterr.c: Include stdio-impl.h.
34594         (fseterr): Remove redundant #defines.
34595         * lib/fwritable.c: Include stdio-impl.h.
34596         (fwritable: Remove redundant #defines.
34597         * lib/fwriting.c: Include stdio-impl.h.
34598         (fwriting): Remove redundant #defines.
34599         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34600         * modules/fflush (Files): Likewise.
34601         * modules/fpurge (Files): Likewise.
34602         * modules/freadable (Files): Likewise.
34603         * modules/freadahead (Files): Likewise.
34604         * modules/freading (Files): Likewise.
34605         * modules/freadptr (Files): Likewise.
34606         * modules/freadseek (Files): Likewise.
34607         * modules/fseeko (Files): Likewise.
34608         * modules/fseterr (Files): Likewise.
34609         * modules/fwritable (Files): Likewise.
34610         * modules/fwriting (Files): Likewise.
34611
34612 2008-04-26  Bruno Haible  <bruno@clisp.org>
34613
34614         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34615         restore_seek_optimization, update_fpos_cache): New functions, extracted
34616         from rpl_fflush.
34617         (rpl_fflush): Use them.
34618         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34619         (gl_REPLACE_FFLUSH): Use it.
34620
34621 2008-04-26  Bruno Haible  <bruno@clisp.org>
34622
34623         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34624         on Solaris.
34625         * tests/test-xstrtoimax.sh: Likewise.
34626         * tests/test-xstrtoumax.sh: Likewise.
34627         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34628
34629 2008-04-26  Bruno Haible  <bruno@clisp.org>
34630
34631         * modules/memchr-tests: New file.
34632         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34633
34634 2008-04-26  Eric Blake  <ebb9@byu.net>
34635             Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/memchr.c: Include intprops.h.
34638         (__memchr): Optimize parallel detection of matching bytes. Rename local
34639         variables. Add explanatory comments.
34640
34641 2008-04-26  Bruno Haible  <bruno@clisp.org>
34642
34643         Fix module 'memchr', broken since 2000-10-28.
34644         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34645
34646 2008-04-26  Bruno Haible  <bruno@clisp.org>
34647
34648         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34649         comments.
34650
34651 2008-04-25  Eric Blake  <ebb9@byu.net>
34652
34653         Use native fstatat on cygwin 1.7.0.
34654         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34655         first.
34656
34657 2008-04-23  Eric Blake  <ebb9@byu.net>
34658
34659         Improve memchr2 performance.
34660         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34661         NUL bytes.
34662         * modules/memchr2 (Depends-on): Use intprops.h.
34663
34664 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34665
34666         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34667         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34668         <blp@cs.stanford.edu>.
34669
34670 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34671
34672         * lib/arpa_inet.in.h: New file.
34673
34674         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34675         (Makefile.am): Sed in substitute header file.
34676
34677         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34678         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34679
34680         * modules/inet_ntop (configure.ac): Use
34681         gl_ARPA_INET_MODULE_INDICATOR.
34682
34683         * modules/inet_pton (configure.ac): Use
34684         gl_ARPA_INET_MODULE_INDICATOR.
34685
34686 2008-04-22  Jim Meyering  <meyering@redhat.com>
34687
34688         * modules/verify (License): Re-license as LGPLv2+.
34689
34690 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34691
34692         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34693         parameter to void* as per POSIX standard (MinGW uses char*).
34694
34695 2008-04-21  Bruno Haible  <bruno@clisp.org>
34696
34697         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34698         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34699         Define to replacements if REPLACE_ISWCNTRL is 1.
34700         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34701         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34702         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34703         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34704         what it fixes.
34705         * doc/posix-functions/iswalpha.texi: Likewise.
34706         * doc/posix-functions/iswblank.texi: Likewise.
34707         * doc/posix-functions/iswcntrl.texi: Likewise.
34708         * doc/posix-functions/iswdigit.texi: Likewise.
34709         * doc/posix-functions/iswgraph.texi: Likewise.
34710         * doc/posix-functions/iswlower.texi: Likewise.
34711         * doc/posix-functions/iswprint.texi: Likewise.
34712         * doc/posix-functions/iswpunct.texi: Likewise.
34713         * doc/posix-functions/iswspace.texi: Likewise.
34714         * doc/posix-functions/iswupper.texi: Likewise.
34715         * doc/posix-functions/iswxdigit.texi: Likewise.
34716         Reported by Alain Guibert.
34717
34718 2008-04-21  Bruno Haible  <bruno@clisp.org>
34719
34720         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34721         Patch by Alain Guibert.
34722
34723 2008-04-21  Bruno Haible  <bruno@clisp.org>
34724
34725         Fix test failures on mingw.
34726         * tests/test-xstrtol.c (print_no_progname): New function.
34727         (main): Install it in error_print_progname hook.
34728         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34729         * tests/test-xstrtoimax.sh: Likewise.
34730         * tests/test-xstrtoumax.sh: Likewise.
34731
34732 2008-04-21  Bruno Haible  <bruno@clisp.org>
34733
34734         Fix test failure on mingw.
34735         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34736
34737 2008-04-21  Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34740         Actually assign a value.
34741
34742 2008-04-20  Bruno Haible  <bruno@clisp.org>
34743
34744         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34745         take 2.
34746         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34747         'canonicalize-lgpl' module is also used.
34748         * lib/canonicalize-lgpl.c: Undo last change.
34749         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34750
34751 2008-04-20  Bruno Haible  <bruno@clisp.org>
34752
34753         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34754         config.h. Provide _mkdir based fallback for mingw.
34755         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34756         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34757         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34758         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34759         rather than defining mkdir in config.h.
34760         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34761         (gl_SYS_STAT_H_DEFAULTS): New macro.
34762         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34763         HAVE_IO_H any more.
34764         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34765         HAVE_DECL_MKDIR and HAVE_IO_H.
34766
34767 2008-04-20  Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/isapipe.c: Port to native Windows platforms.
34770
34771 2008-04-20  Bruno Haible  <bruno@clisp.org>
34772
34773         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34774
34775 2008-04-21  Eric Blake  <ebb9@byu.net>
34776
34777         Work around preprocessors that don't handle UINTMAX_MAX.
34778         * lib/memchr2.c (memchr2): Avoid embedded #if.
34779         Reported by Alain Guibert, fix suggested by Bruno Haible.
34780
34781 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34782
34783         * doc/posix-functions/strftime.texi (strftime): Explain better
34784         Windows incompatibility.  Suggested by Micah Cowan
34785         <micah@cowan.name>.
34786
34787 2008-04-20  Bruno Haible  <bruno@clisp.org>
34788
34789         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34790         unistr/u8-mblen.
34791
34792 2008-04-20  Bruno Haible  <bruno@clisp.org>
34793
34794         Fix test failure on platforms with non-GNU iconv.
34795         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34796         (U_TO_U8): Use it, rather than u16_to_u8.
34797         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34798         units at the end of the input string.
34799         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34800
34801 2008-04-20  Bruno Haible  <bruno@clisp.org>
34802
34803         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34804         when the resulting length is 0.
34805         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34806
34807 2008-04-20  Bruno Haible  <bruno@clisp.org>
34808
34809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34810         works.
34811         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34812
34813 2008-04-20  Bruno Haible  <bruno@clisp.org>
34814
34815         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34816         * modules/tsearch-tests (configure.ac): Test for initstate function.
34817
34818 2008-04-20  Bruno Haible  <bruno@clisp.org>
34819
34820         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34821         for nlink_t if missing.
34822         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34823
34824 2008-04-19  Bruno Haible  <bruno@clisp.org>
34825
34826         Work around snprintf bug on Linux libc5.
34827         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34829         gl_SNPRINTF_SIZE1.
34830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34831         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34832         that test failed.
34833         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34834         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34835         * modules/snprintf (Files): Add m4/printf.m4.
34836         * modules/vsnprintf (Files): Likewise.
34837         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34838         * doc/posix-functions/vsnprintf.texi: Likewise.
34839
34840 2008-04-19  Bruno Haible  <bruno@clisp.org>
34841
34842         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34843         from 0.0058 to less than 10^-7.
34844
34845 2008-04-19  Bruno Haible  <bruno@clisp.org>
34846
34847         Fix rounding when a precision is given.
34848         * lib/vasnprintf.c (is_borderline): New function.
34849         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34850         9...9x.
34851         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34852         %e, %g.
34853         * tests/test-vasprintf-posix.c (test_function): Likewise.
34854         * tests/test-snprintf-posix.h (test_function): Likewise.
34855         * tests/test-sprintf-posix.h (test_function): Likewise.
34856         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34857         * tests/test-printf-posix.h (test_function): Likewise.
34858         * tests/test-printf-posix.output: Update.
34859         Reported by John Darrington <john@darrington.wattle.id.au> via
34860         Ben Pfaff <blp@cs.stanford.edu>.
34861
34862 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34863
34864         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34865         Suggested by Bruno Haible <bruno@clisp.org>.
34866
34867 2008-04-17  Bruno Haible  <bruno@clisp.org>
34868
34869         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34870         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34871         implementation.
34872         Patch by Bruce Merry <bmerry@gmail.com>.
34873
34874 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34875
34876         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34877         doesn't work under Windows.
34878
34879 2008-04-16  Bruno Haible  <bruno@clisp.org>
34880
34881         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34882         New macros.
34883         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34884         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34885         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34886         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34887         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34888         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34889         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34890         macros.
34891         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34892         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34893         Northern Sotho, Uighur.
34894
34895 2008-04-16  Bruno Haible  <bruno@clisp.org>
34896
34897         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34898         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34899         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34900         Reported by Daniel Bergström <daniel@octocode.com>.
34901
34902 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34903             Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34906         function.
34907         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34908         New functions, mostly extracted from gl_locale_name_default.
34909         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34910
34911 2008-04-16  Eric Blake  <ebb9@byu.net>
34912
34913         Adjust strtod detection to catch glibc 2.7 bug.
34914         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34915         Reported by John Gatewood Ham.
34916
34917 2008-04-16  Bruno Haible  <bruno@clisp.org>
34918
34919         Add tentative support for Linux libc5.
34920         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34921         * lib/fpurge.c (fpurge): Likewise.
34922         * lib/freadable.c (freadable): Likewise.
34923         * lib/freadahead.c (freadahead): Likewise.
34924         * lib/freading.c (freading): Likewise.
34925         * lib/freadptr.c (freadptr): Likewise.
34926         * lib/freadseek.c (freadptrinc): Likewise.
34927         * lib/fseeko.c (rpl_fseeko): Likewise.
34928         * lib/fseterr.c (fseterr): Likewise.
34929         * lib/fwritable.c (fwritable): Likewise.
34930         * lib/fwriting.c (fwriting): Likewise.
34931         Reported by Alain Guibert <alguibert+bts@free.fr>.
34932
34933 2008-04-15  Bruno Haible  <bruno@clisp.org>
34934
34935         * modules/mathl (configure.ac): Define module indicator.
34936
34937 2008-04-15  Bruno Haible  <bruno@clisp.org>
34938
34939         * lib/logl.c (logl): Remove unused variables.
34940
34941 2008-04-15  Bruno Haible  <bruno@clisp.org>
34942
34943         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34944         fails.
34945
34946 2008-04-15  Bruno Haible  <bruno@clisp.org>
34947
34948         * lib/trim.c (trim2): Fix argument of isspace() macro.
34949
34950 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34951
34952         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34953         to 0.
34954         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34955
34956 2008-04-14  Bruno Haible  <bruno@clisp.org>
34957
34958         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34959         AC_LANG_PROGRAM argument.
34960         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34961         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34963         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34964         * m4/math_h.m4 (gl_MATH_H): Likewise.
34965         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34967         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34968         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34969         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34970         * m4/regex.m4 (gl_REGEX): Likewise.
34971         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34972         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34974         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34976         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34979
34980 2008-04-14  Jim Meyering  <meyering@redhat.com>
34981
34982         test-strtod: fix typos: s/abs/fabs/
34983         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34984
34985 2008-04-13  Bruno Haible  <bruno@clisp.org>
34986
34987         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34988         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34989         module is also used and while not building the reloc-wrapper.
34990
34991 2008-04-13  Bruno Haible  <bruno@clisp.org>
34992
34993         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34994
34995 2008-04-13  Bruno Haible  <bruno@clisp.org>
34996
34997         Fix AIX compilation failure introduced on 2008-04-02.
34998         * tests/test-frexp.c (exp): Undefine before redefining.
34999         * tests/test-frexpl.c (exp): Likewise.
35000
35001 2008-04-13  Bruno Haible  <bruno@clisp.org>
35002
35003         Work around a HP-UX stdio bug.
35004         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35005         * tests/test-ftello.c (main): Likewise.
35006         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35007         * doc/posix-functions/ftello.texi: Likewise.
35008
35009 2008-04-13  Bruno Haible  <bruno@clisp.org>
35010
35011         Make test-signbit pass on HP-UX/hppa.
35012         * tests/test-signbit.c (minus_zerol): New variable.
35013         (test_signbitl): Use it.
35014
35015 2008-04-13  Bruno Haible  <bruno@clisp.org>
35016
35017         Make truncl work on OSF/1 4.0.
35018         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35019         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35020         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35022         HAVE_DECL_TRUNCL.
35023         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35024         HAVE_DECL_TRUNCL.
35025         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35026
35027 2008-04-13  Bruno Haible  <bruno@clisp.org>
35028
35029         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35030
35031 2008-04-13  Bruno Haible  <bruno@clisp.org>
35032
35033         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35034         expression, so as to avoid HP-UX 11 cc compiler bug.
35035
35036 2008-04-13  Bruno Haible  <bruno@clisp.org>
35037
35038         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35039
35040 2008-04-13  Bruno Haible  <bruno@clisp.org>
35041
35042         * lib/git-merge-changelog.c: Remove empty declaration outside of
35043         functions.
35044
35045 2008-04-13  Bruno Haible  <bruno@clisp.org>
35046
35047         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35048
35049 2008-04-13  Bruno Haible  <bruno@clisp.org>
35050
35051         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35052         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35054         also if it exists but lacks definitions of the SHUT_* macros.
35055         * modules/sys_socket (Description): Update.
35056         Reported by Elbert Pol <e.pol@chello.nl>.
35057
35058 2008-04-13  Bruno Haible  <bruno@clisp.org>
35059
35060         * lib/localcharset.c (OS2): Don't redefine if already defined.
35061         Reported by Elbert Pol <e.pol@chello.nl>.
35062
35063 2008-04-13  Bruno Haible  <bruno@clisp.org>
35064
35065         * lib/binary-io.h [__EMX__]: Include <io.h>.
35066         Reported by Elbert Pol <e.pol@chello.nl>.
35067
35068 2008-04-12  Bruno Haible  <bruno@clisp.org>
35069
35070         * lib/fpucw.h: Enable the definitions also for x86_64.
35071         Needed for NetBSD/x86_64.
35072         Reported by Thomas Klausner <tk@giga.or.at>.
35073
35074 2008-04-12  Bruno Haible  <bruno@clisp.org>
35075
35076         * tests/test-strtod.c: Include isnand.h.
35077         (main): Use isnand instead of isnan.
35078         Reported by Jim Meyering.
35079
35080 2008-04-12  Bruno Haible  <bruno@clisp.org>
35081
35082         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35083         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35084
35085 2008-04-12  Jim Meyering  <meyering@redhat.com>
35086
35087         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35088
35089 2008-04-12  Bruno Haible  <bruno@clisp.org>
35090
35091         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35092         Reported by Elbert Pol <e.pol@chello.nl>.
35093
35094 2008-04-12  Eric Blake  <ebb9@byu.net>
35095
35096         Work around Solaris 10 math.h bug.
35097         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35098         (gl_MATH_H_DEFAULTS): Set up default.
35099         * modules/math (Makefile.am): Replace new indicators.
35100         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35101         * tests/test-math.c (main): Test this.
35102         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35103         * doc/posix-headers/math.texi (math.h): Mention bug.
35104         Reported by Nelson H. F. Beebe and Jim Meyering.
35105
35106 2008-04-11  Bruno Haible  <bruno@clisp.org>
35107
35108         Adapt to future versions of Apple GCC.
35109         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35110         Reported by Peter O'Gorman <peter@pogma.com>.
35111
35112 2008-04-11  Bruno Haible  <bruno@clisp.org>
35113
35114         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35115
35116 2008-04-11  Bruno Haible  <bruno@clisp.org>
35117
35118         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35119
35120         * modules/getaddrinfo-tests (Makefile.am): Define
35121         test_getaddrinfo_LDADD.
35122
35123 2008-04-11  Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35126         (init): Fix syntax error.
35127         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35128         is declared.
35129
35130 2008-04-11  Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35133         * modules/glob (Depends-on): Add stdbool.
35134
35135 2008-04-11  Bruno Haible  <bruno@clisp.org>
35136
35137         * lib/trim.c: Include <string.h>.
35138
35139 2008-04-11  Eric Blake  <ebb9@byu.net>
35140
35141         Avoid compile failure on OS/2.
35142         * lib/regex_internal.h (internal_function): Disable optimization
35143         on OS/2 (__EMX__), where it caused compiler error.
35144         Reported by Elbert Pol.
35145
35146 2008-04-11  Bruno Haible  <bruno@clisp.org>
35147
35148         Flush the standard error stream before aborting. Needed on mingw.
35149         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35150         * tests/test-array_list.c (ASSERT): Likewise.
35151         * tests/test-array_oset.c (ASSERT): Likewise.
35152         * tests/test-avltree_list.c (ASSERT): Likewise.
35153         * tests/test-avltree_oset.c (ASSERT): Likewise.
35154         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35155         * tests/test-binary-io.c (ASSERT): Likewise.
35156         * tests/test-byteswap.c (ASSERT): Likewise.
35157         * tests/test-c-ctype.c (ASSERT): Likewise.
35158         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35159         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35160         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35161         * tests/test-c-strstr.c (ASSERT): Likewise.
35162         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35163         * tests/test-canonicalize.c (ASSERT): Likewise.
35164         * tests/test-carray_list.c (ASSERT): Likewise.
35165         * tests/test-ceilf1.c (ASSERT): Likewise.
35166         * tests/test-ceilf2.c (ASSERT): Likewise.
35167         * tests/test-ceill.c (ASSERT): Likewise.
35168         * tests/test-count-one-bits.c (ASSERT): Likewise.
35169         * tests/test-fbufmode.c (ASSERT): Likewise.
35170         * tests/test-fflush2.c (ASSERT): Likewise.
35171         * tests/test-floorf1.c (ASSERT): Likewise.
35172         * tests/test-floorf2.c (ASSERT): Likewise.
35173         * tests/test-floorl.c (ASSERT): Likewise.
35174         * tests/test-fopen.c (ASSERT): Likewise.
35175         * tests/test-fpending.c (ASSERT): Likewise.
35176         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35177         * tests/test-fpurge.c (ASSERT): Likewise.
35178         * tests/test-freadable.c (ASSERT): Likewise.
35179         * tests/test-freadahead.c (ASSERT): Likewise.
35180         * tests/test-freading.c (ASSERT): Likewise.
35181         * tests/test-freadptr.c (ASSERT): Likewise.
35182         * tests/test-freadptr2.c (ASSERT): Likewise.
35183         * tests/test-freadseek.c (ASSERT): Likewise.
35184         * tests/test-freopen.c (ASSERT): Likewise.
35185         * tests/test-frexp.c (ASSERT): Likewise.
35186         * tests/test-frexpl.c (ASSERT): Likewise.
35187         * tests/test-fseek.c (ASSERT): Likewise.
35188         * tests/test-fseeko.c (ASSERT): Likewise.
35189         * tests/test-fstrcmp.c (ASSERT): Likewise.
35190         * tests/test-ftell.c (ASSERT): Likewise.
35191         * tests/test-ftello.c (ASSERT): Likewise.
35192         * tests/test-func.c (ASSERT): Likewise.
35193         * tests/test-fwritable.c (ASSERT): Likewise.
35194         * tests/test-fwriting.c (ASSERT): Likewise.
35195         * tests/test-getdelim.c (ASSERT): Likewise.
35196         * tests/test-getline.c (ASSERT): Likewise.
35197         * tests/test-i-ring.c (ASSERT): Likewise.
35198         * tests/test-iconv-utf.c (ASSERT): Likewise.
35199         * tests/test-iconv.c (ASSERT): Likewise.
35200         * tests/test-isfinite.c (ASSERT): Likewise.
35201         * tests/test-isnand.c (ASSERT): Likewise.
35202         * tests/test-isnanf.c (ASSERT): Likewise.
35203         * tests/test-isnanl.h (ASSERT): Likewise.
35204         * tests/test-ldexpl.c (ASSERT): Likewise.
35205         * tests/test-linked_list.c (ASSERT): Likewise.
35206         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35207         * tests/test-localename.c (ASSERT): Likewise.
35208         * tests/test-lseek.c (ASSERT): Likewise.
35209         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35210         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35211         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35212         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35213         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35214         * tests/test-mbschr.c (ASSERT): Likewise.
35215         * tests/test-mbscspn.c (ASSERT): Likewise.
35216         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35217         * tests/test-mbspbrk.c (ASSERT): Likewise.
35218         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35219         * tests/test-mbsrchr.c (ASSERT): Likewise.
35220         * tests/test-mbsspn.c (ASSERT): Likewise.
35221         * tests/test-mbsstr1.c (ASSERT): Likewise.
35222         * tests/test-mbsstr2.c (ASSERT): Likewise.
35223         * tests/test-mbsstr3.c (ASSERT): Likewise.
35224         * tests/test-memchr2.c (ASSERT): Likewise.
35225         * tests/test-memmem.c (ASSERT): Likewise.
35226         * tests/test-open.c (ASSERT): Likewise.
35227         * tests/test-printf-frexp.c (ASSERT): Likewise.
35228         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35229         * tests/test-printf-posix.c (ASSERT): Likewise.
35230         * tests/test-quotearg.c (ASSERT): Likewise.
35231         * tests/test-rbtree_list.c (ASSERT): Likewise.
35232         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35233         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35234         * tests/test-round1.c (ASSERT): Likewise.
35235         * tests/test-roundf1.c (ASSERT): Likewise.
35236         * tests/test-roundl.c (ASSERT): Likewise.
35237         * tests/test-signbit.c (ASSERT): Likewise.
35238         * tests/test-sleep.c (ASSERT): Likewise.
35239         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35240         * tests/test-snprintf.c (ASSERT): Likewise.
35241         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35242         * tests/test-stat-time.c (ASSERT): Likewise.
35243         * tests/test-strcasestr.c (ASSERT): Likewise.
35244         * tests/test-strerror.c (ASSERT): Likewise.
35245         * tests/test-striconv.c (ASSERT): Likewise.
35246         * tests/test-striconveh.c (ASSERT): Likewise.
35247         * tests/test-striconveha.c (ASSERT): Likewise.
35248         * tests/test-strsignal.c (ASSERT): Likewise.
35249         * tests/test-strstr.c (ASSERT): Likewise.
35250         * tests/test-strtod.c (ASSERT): Likewise.
35251         * tests/test-trunc1.c (ASSERT): Likewise.
35252         * tests/test-trunc2.c (ASSERT): Likewise.
35253         * tests/test-truncf1.c (ASSERT): Likewise.
35254         * tests/test-truncf2.c (ASSERT): Likewise.
35255         * tests/test-truncl.c (ASSERT): Likewise.
35256         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35257         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35258         * tests/test-vasnprintf.c (ASSERT): Likewise.
35259         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35260         * tests/test-vasprintf.c (ASSERT): Likewise.
35261         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35262         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35263         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35264         * tests/test-vsnprintf.c (ASSERT): Likewise.
35265         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35266         * tests/test-wcwidth.c (ASSERT): Likewise.
35267         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35268         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35269         * tests/test-xvasprintf.c (ASSERT): Likewise.
35270         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35271         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35272         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35273         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35274         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35275         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35276         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35277         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35278         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35279         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35280         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35281         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35282         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35283         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35284         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35285         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35286         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35287         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35288         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35289         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35290         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35291         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35292         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35293         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35294         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35295         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35296         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35297         * tests/unictype/test-combining.c (ASSERT): Likewise.
35298         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35299         * tests/unictype/test-digit.c (ASSERT): Likewise.
35300         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35301         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35302         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35303         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35304         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35305         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35306         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35307         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35308         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35309         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35310         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35311         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35312         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35313         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35314         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35315         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35316         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35317         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35318         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35319         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35320         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35321         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35322         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35323         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35324         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35325         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35326         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35327         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35328         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35329         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35330         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35331         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35332         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35333         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35334         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35335         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35336         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35337         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35338         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35339         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35340         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35341         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35342         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35343         Reported by Eric Blake.
35344
35345 2008-04-11  Bruno Haible  <bruno@clisp.org>
35346
35347         * lib/wchar.in.h: Tweak comment.
35348
35349 2008-04-11  Bruno Haible  <bruno@clisp.org>
35350
35351         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35352         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35353         gl_COMMON.
35354         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35355
35356 2008-04-11  Bruno Haible  <bruno@clisp.org>
35357
35358         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35359
35360 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35361
35362         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35363         of attempting to use non-existing /dev/*random.  Based on patch
35364         from Adam Strzelecki <ono@java.pl> in
35365         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35366
35367 2008-04-08  Bruno Haible  <bruno@clisp.org>
35368
35369         Add tentative support for emx+gcc.
35370         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35371         * lib/fpurge.c (fpurge): Likewise.
35372         * lib/freadable.c (freadable): Likewise.
35373         * lib/freadahead.c (freadahead): Likewise.
35374         * lib/freading.c (freading): Likewise.
35375         * lib/freadptr.c (freadptr): Likewise.
35376         * lib/freadseek.c (freadptrinc): Likewise.
35377         * lib/fseeko.c (rpl_fseeko): Likewise.
35378         * lib/fseterr.c (fseterr): Likewise.
35379         * lib/fwritable.c (fwritable): Likewise.
35380         * lib/fwriting.c (fwriting): Likewise.
35381         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35382
35383 2008-04-09  Eric Blake  <ebb9@byu.net>
35384
35385         Avoid some autoconf warnings.
35386         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35387         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35388         * m4/afs.m4 (gl_AFS): Likewise.
35389         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35390         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35392         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35393         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35394         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35395         (AC_CHECK_DECLS_ONCE): Likewise.
35396         Rename file...
35397         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35398         gnulib-tool requires autoconf 2.59 or better.
35399         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35400
35401 2008-04-08  Eric Blake  <ebb9@byu.net>
35402
35403         Use 'git describe --match' if present (added in git 1.5.5).
35404         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35405         if possible.
35406
35407 2008-04-08  Bruno Haible  <bruno@clisp.org>
35408
35409         Add tentative support for OpenServer.
35410         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35411         _ptr, _cnt.
35412         * lib/fpurge.c (fpurge): Likewise.
35413         * lib/freadable.c (freadable): Likewise.
35414         * lib/freadahead.c (freadahead): Likewise.
35415         * lib/freading.c (freading): Likewise.
35416         * lib/freadptr.c (freadptr): Likewise.
35417         * lib/freadseek.c (freadptrinc): Likewise.
35418         * lib/fseeko.c (rpl_fseeko): Likewise.
35419         * lib/fseterr.c (fseterr): Likewise.
35420         * lib/fwritable.c (fwritable): Likewise.
35421         * lib/fwriting.c (fwriting): Likewise.
35422         Reported by Roger Cornelius <rac@tenzing.org> and
35423         Brian K. White <brian@aljex.com>.
35424
35425 2008-04-06  Jim Meyering  <meyering@redhat.com>
35426
35427         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35428
35429 2008-04-06  Bruno Haible  <bruno@clisp.org>
35430
35431         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35432         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35433         * tests/test-printf-posix.sh: Likewise.
35434         * tests/test-vfprintf-posix.sh: Likewise.
35435         * tests/test-vprintf-posix.sh: Likewise.
35436         * tests/test-xprintf-posix.sh: Likewise.
35437
35438 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35439
35440         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35441         hide error from 'ls', needed on OS/2.
35442         Report by Elbert Pol <elbert.pol@gmail.com>.
35443
35444 2008-04-04  Eric Blake  <ebb9@byu.net>
35445
35446         Make test-fseeko.c failures meaningful.
35447         * tests/test-fseeko.c: Print line number on failure.
35448         * tests/test-fseek.c: Likewise.
35449         Reported by Nelson H. F. Beebe.
35450
35451         Improve strtod bug detection check.
35452         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35453         required for Solaris 10.
35454         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35455
35456 2008-04-04  Bruno Haible  <bruno@clisp.org>
35457
35458         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35459         by m4/setenv.m4.
35460
35461 2008-04-03  Eric Blake  <ebb9@byu.net>
35462
35463         Ensure sane .version contents.
35464         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35465         version string.
35466         * build-aux/git-version-gen: Improve documentation.
35467
35468         Make GNU make output nicer.
35469         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35470         MAKECMDGOALS to enforce message for all command line targets.  Set
35471         srcdir for use in maint.mk.
35472
35473         Another maintainer tweak.
35474         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35475         a target that regenerates version.
35476
35477 2008-04-03  Jim Meyering  <meyering@redhat.com>
35478
35479         vc-list-files: don't cause coreutils "make po-check" failure
35480         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35481
35482 2008-04-03  Eric Blake  <ebb9@byu.net>
35483
35484         Allow VPATH usage of vc-list-files.
35485         * build-aux/vc-list-files (scriptversion): Add timestamp.
35486         (options): Add --help, --version, -C.
35487         (CVS): Support installed cvsu.
35488
35489 2008-04-02  Bruno Haible  <bruno@clisp.org>
35490
35491         Avoid some "statement with no effect" warnings from gcc.
35492         * tests/test-wctype.c (main): Explicitly ignore unused values.
35493         Reported by Jim Meyering.
35494
35495 2008-04-02  Jim Meyering  <meyering@redhat.com>
35496
35497         Avoid some warnings from "gcc -Wshadow".
35498         * tests/test-frexp.c (exp): Define to a different identifier.
35499         * tests/test-frexpl.c (exp): Likewise.
35500
35501 2008-04-03  Jim Meyering  <meyering@redhat.com>
35502
35503         bootstrap: remove dangling *.[ch] symlinks from lib
35504         * build-aux/bootstrap [dangling symlink removal]: Move find's
35505         -depth option to precede all others, to avoid a warning.
35506         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35507
35508 2008-04-02  Bruno Haible  <bruno@clisp.org>
35509
35510         Avoid some warnings from "gcc -Wshadow".
35511         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35512         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35513         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35514         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35515         Reported by Jim Meyering.
35516
35517 2008-04-01  Bruno Haible  <bruno@clisp.org>
35518
35519         Fix test to work on IRIX 6.5 with cc.
35520         * tests/test-math.c (numeric_equal): New function.
35521         (main): Use it.
35522
35523 2008-04-01  Bruno Haible  <bruno@clisp.org>
35524
35525         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35526
35527 2008-04-01  Bruno Haible  <bruno@clisp.org>
35528
35529         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35530         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35531         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35532         (Depends-on): Remove math.
35533
35534         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35535         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35536         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35537         (Depends-on): Remove math.
35538
35539         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35540         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35541         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35542         (Depends-on): Remove math.
35543         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35544         (Depends-on): Remove math.
35545
35546         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35547         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35548         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35549         (Depends-on): Remove math.
35550         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35551         (Depends-on): Remove math.
35552
35553         * tests/test-round1.c: Include nan.h.
35554         (main): Use NaNd instead of NAN.
35555         * modules/round-tests (Files): Add tests/nan.h.
35556
35557         * tests/test-trunc1.c: Include nan.h.
35558         (main): Use NaNd instead of NAN.
35559         * modules/trunc-tests (Files): Add tests/nan.h.
35560
35561         * tests/test-roundf1.c: Include nan.h.
35562         (main): Use NaNf instead of NAN.
35563         * modules/roundf-tests (Files): Add tests/nan.h.
35564
35565         * tests/test-truncf1.c: Include nan.h.
35566         (main): Use NaNf instead of NAN.
35567         * modules/truncf-tests (Files): Add tests/nan.h.
35568
35569         * tests/test-ceilf1.c: Include nan.h.
35570         (main): Use NaNf instead of NAN.
35571         * modules/ceilf-tests (Files): Add tests/nan.h.
35572
35573         * tests/test-floorf1.c: Include nan.h.
35574         (main): Use NaNf instead of NAN.
35575         * modules/floorf-tests (Files): Add tests/nan.h.
35576
35577         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35578         (main): Use NaNf instead of NAN.
35579         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35580
35581         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35582         (main): Use NaNd instead of NAN.
35583         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35584
35585         * tests/test-frexp.c: Include nan.h.
35586         (main): Use NaNd instead of NAN.
35587         * modules/frexp-tests (Files): Add tests/nan.h.
35588
35589         * lib/isnan.c: Don't include <math.h>.
35590         (FUNC): Don't use NAN macro.
35591         * modules/isnand-nolibm (Depends-on): Remove math.
35592         * modules/isnanf-nolibm (Depends-on): Remove math.
35593         * modules/isnanl (Depends-on): Remove math.
35594         * modules/isnanl-nolibm (Depends-on): Remove math.
35595
35596         * tests/nan.h: New file.
35597
35598 2008-04-01  Eric Blake  <ebb9@byu.net>
35599
35600         Fix typos.
35601         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35602         values to be the right type.
35603
35604         For now, cater to gnulib strtod inaccuracies.
35605         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35606         fractional results.  While not as nice from a QoI perspective, it
35607         is a quicker patch than correctly implementing decimal to binary
35608         rounding.
35609
35610 2008-03-31  Eric Blake  <ebb9@byu.net>
35611
35612         Guarantee a definition of NAN.
35613         * lib/math.in.h (NAN): Define if missing.
35614         * tests/test-math.c (main): Test it.
35615         * doc/posix-headers/math.texi (math.h): Document this.
35616         * lib/isnan.c (rpl_isnand): Use it.
35617         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35618         * tests/test-floorf1.c (NaN): Likewise.
35619         * tests/test-frexp.c (NaN): Likewise.
35620         * tests/test-isnand.c (NaN): Likewise.
35621         * tests/test-isnanf.c (NaN): Likewise.
35622         * tests/test-round1.c (NaN): Likewise.
35623         * tests/test-roundf1.c (NaN): Likewise.
35624         * tests/test-snprintf-posix.h (NaN): Likewise.
35625         * tests/test-sprintf-posix.h (NaN): Likewise.
35626         * tests/test-trunc1.c (NaN): Likewise.
35627         * tests/test-truncf1.c (NaN): Likewise.
35628         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35629         * tests/test-vasprintf-posix.c (NaN): Likewise.
35630         * modules/isnand-nolibm (Depends-on): Add math.
35631         * modules/isnanf-nolibm (Depends-on): Likewise.
35632         * modules/isnanl (Depends-on): Likewise.
35633         * modules/isnanl-nolibm (Depends-on): Likewise.
35634         * modules/snprintf-posix-tests (Depends-on): Likewise.
35635         * modules/sprintf-posix-tests (Depends-on): Likewise.
35636         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35637         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35638         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35639         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35640
35641 2008-03-31  Bruno Haible  <bruno@clisp.org>
35642
35643         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35644         * doc/posix-functions/strtod.texi: Likewise.
35645
35646 2008-03-31  Bruno Haible  <bruno@clisp.org>
35647
35648         * tests/test-strtod.c (main): Don't use C99 syntax.
35649
35650 2008-03-31  Bruno Haible  <bruno@clisp.org>
35651
35652         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35653         Reported by Eric Blake.
35654
35655 2008-03-31  Jim Meyering  <meyering@redhat.com>
35656
35657         Don't compare actual signbit return values.
35658         * tests/test-strtod.c (main): Rather, compare only their
35659         zero/non-zero nature.
35660
35661 2008-03-31  Eric Blake  <ebb9@byu.net>
35662
35663         More strtod documentation.
35664         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35665         failures as distinct bugs.
35666
35667 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35668
35669         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35670         Problem reported by Erik Benada in
35671         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35672
35673 2008-03-30  Bruno Haible  <bruno@clisp.org>
35674
35675         * tests/test-strtod.c: Add comments about which assertion fails on which
35676         platform.
35677         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35678
35679 2008-03-30  Eric Blake  <ebb9@byu.net>
35680
35681         Test signbit behavior on zeros.
35682         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35683         (test_signbitd, test_signbitl): Likewise.
35684
35685         More strtod touchups.
35686         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35687         sign of negative underflow, for now.  Use .5, not .1.
35688         * doc/posix-functions/strtod.texi (strtod): Mention these
35689         limitations.
35690         Reported by Jim Meyering.
35691
35692 2008-03-30  Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35695         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35696
35697 2008-03-30  Bruno Haible  <bruno@clisp.org>
35698
35699         Avoid failure when attempting to return empty iconv results on some
35700         platforms.
35701         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35702         allocation, don't report ENOMEM when the resulting string is empty.
35703
35704 2008-03-30  Bruno Haible  <bruno@clisp.org>
35705
35706         Fix buffer overrun.
35707         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35708         Don't consider the width for tmp_length. Check count against tmp_length
35709         before doing the padding. Ensure enough allocation during padding.
35710
35711 2008-03-30  Eric Blake  <ebb9@byu.net>
35712
35713         strtod touchups.
35714         * lib/strtod.c (strtod): Avoid compiler warnings.
35715         Reported by Jim Meyering.
35716
35717 2008-03-30  Bruno Haible  <bruno@clisp.org>
35718
35719         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35720         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35721         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35722         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35723         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35724         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35725         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35726         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35727
35728         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35729         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35730         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35731         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35732         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35733         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35734         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35735         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35736
35737         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35738         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35739         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35740         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35741         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35742         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35743         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35744         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35745
35746         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35747         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35748
35749         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35750         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35751
35752         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35753         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35754
35755         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35757         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35758
35759         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35760         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35761         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35762
35763         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35765         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35766
35767         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35769         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35770
35771         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35772         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35774         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35775         (Depends-on): Add EOVERFLOW.
35776         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35777         (Depends-on): Add EOVERFLOW.
35778         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35779         (Depends-on): Add EOVERFLOW.
35780         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35781         (Depends-on): Add EOVERFLOW.
35782         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35783         (Depends-on): Add EOVERFLOW.
35784         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35785         (Depends-on): Add EOVERFLOW.
35786         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35787         (Depends-on): Add EOVERFLOW.
35788         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35789         (Depends-on): Add EOVERFLOW.
35790
35791         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35793         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35794
35795         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35797         * modules/snprintf (Depends-on): Add EOVERFLOW.
35798
35799         * lib/poll.c (EOVERFLOW): Remove fallback.
35800         * modules/poll (Depends-on): Add EOVERFLOW.
35801
35802         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35803         * modules/getugroups (Depends-on): Add EOVERFLOW.
35804
35805         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35806         * modules/getdelim (Depends-on): Add EOVERFLOW.
35807
35808         * lib/ftell.c (EOVERFLOW): Remove fallback.
35809         * modules/ftell (Depends-on): Add EOVERFLOW.
35810
35811         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35812         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35813         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35814
35815         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35816
35817         * modules/EOVERFLOW-tests: New file.
35818         * tests/test-EOVERFLOW.c: New file.
35819
35820         * modules/EOVERFLOW: New file.
35821         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35822
35823 2008-03-30  Bruno Haible  <bruno@clisp.org>
35824
35825         Fix bug introduced on 2007-06-10.
35826         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35827         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35828
35829 2008-03-30  Bruno Haible  <bruno@clisp.org>
35830
35831         Improve freadseek's efficiency after ungetc.
35832         * lib/freadseek.c: Include freadahead.h.
35833         (freadptrinc): New function, extracted from freadseek.
35834         (freadseek): Use it in a loop. Use freadahead to determine the number
35835         of loop iterations.
35836         * modules/freadseek (Depends-on): Add freadahead.
35837         (configure.ac): Require AC_C_INLINE.
35838
35839 2008-03-30  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/freadseek.c (freadseek): Don't ignore the return value of
35842         freadptr.
35843
35844 2008-03-29  Eric Blake  <ebb9@byu.net>
35845
35846         Add hex float support.
35847         * modules/strtod (Depends-on): Add c-ctype.
35848         (Link): Mention POW_LIB.
35849         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35850         whitespace between 'e' and exponent.
35851         * tests/test-strtod.c (main): Enable hex float tests.
35852         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35853         now provides.
35854
35855         Document various strtod bugs, with some fixes.
35856         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35857         "-0x", "inf", "nan", and hex constants.
35858         * doc/posix-functions/atof.texi (atof): Likewise.
35859         * modules/stdlib (Makefile.am): Support strtod.
35860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35861         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35862         detect additional strtod bugs.
35863         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35864         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35865         bool where appropriate.  Parse 'inf' and 'nan'.
35866         * tests/test-strtod.c: New file.
35867         * modules/strtod (Depends-on): Add stdbool, stdlib.
35868         (configure.ac): Turn on module indicator.
35869         * modules/strtod-tests: New module.
35870
35871 2008-03-29  Eric Blake  <ebb9@byu.net>
35872
35873         Fix ftell on mingw.
35874         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35875         * modules/ftell-tests (Depends-on): Add binary-io.
35876         * modules/ftello-tests (Depends-on): Likewise.
35877         * tests/test-ftell.c (main): Enhance test to cover behavior after
35878         ungetc.  Enforce binary mode.
35879         * tests/test-ftello.c (main): Likewise.
35880
35881         Pass test-freadseek on cygwin.
35882         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35883         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35884         ungetc buffer.
35885
35886         * tests/test-fflush2.c (main): Fix typo.
35887
35888 2008-03-29  Bruno Haible  <bruno@clisp.org>
35889
35890         * tests/test-fflush2.c (main): Temporarily disable the contents of
35891         this test.
35892         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35893         Reported by Eric Blake.
35894
35895 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35896
35897         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35898         (GC_SHA224_DIGEST_SIZE): Add.
35899
35900         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35901         (gc_hash_digest_length): Likewise.
35902         (gc_hash_buffer): Likewise.
35903
35904 2008-03-25  Bruno Haible  <bruno@clisp.org>
35905
35906         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35907         detail which gettext release to use.
35908         Reported by Simon Josefsson.
35909
35910 2008-03-26  Jim Meyering  <meyering@redhat.com>
35911
35912         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35913         * modules/gnumakefile (clean-GNUmakefile): Also, use
35914         test ... && ... || : syntax rather than if-then ... fi.
35915
35916         gnumakefile: Don't double-quote-expand $(VPATH) value.
35917         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35918
35919 2008-03-24  Eric Blake  <ebb9@byu.net>
35920
35921         Alter GNUmakefile to install into top directory.
35922         * modules/maintainer-makefile: Split, and add dependency...
35923         * modules/gnumakefile: to this new module.
35924         * build-aux/GNUmakefile: Move...
35925         * top/GNUmakefile: ...here.
35926         * build-aux/maint.mk: Move...
35927         * top/maint.mk: ...here.
35928         * MODULES.html.sh (Support for maintaining...): Document new
35929         module.
35930
35931 2008-03-23  Bruno Haible  <bruno@clisp.org>
35932
35933         * gnulib-tool: New options --vc-files, --no-vc-files.
35934         (func_usage): Document them.
35935         (vc_files): New variable.
35936         (func_import): Consider vc_files.
35937         (func_create_testdir): Set vc_files to empty.
35938         Suggested by Jim Meyering and Karl Berry.
35939
35940 2008-03-23  Bruno Haible  <bruno@clisp.org>
35941
35942         Fix regex compilation error on HP-UX 11.
35943         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35944         * modules/regex (Files): Add m4/mbstate_t.m4.
35945         Reported by Ton Voon <ton.voon@altinity.com>.
35946
35947 2008-03-23  Bruno Haible  <bruno@clisp.org>
35948
35949         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35950
35951 2008-03-23  Eric Blake  <ebb9@byu.net>
35952             Bruno Haible  <bruno@clisp.org>
35953
35954         Install files from top/ in the destination directory.
35955         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35956         augmentation also for the files from top/.
35957         (func_import, func_create_testdir): Rewrite file names:
35958         top/filename -> filename.
35959
35960 2008-03-23  Bruno Haible  <bruno@clisp.org>
35961
35962         Tweak "gnulib --version" output.
35963         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35964
35965 2008-03-23  Bruno Haible  <bruno@clisp.org>
35966
35967         Tweak "gnulib --version" output.
35968         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35969         rather than contents of ChangeLog, when possible.
35970
35971 2008-03-21  Eric Blake  <ebb9@byu.net>
35972
35973         More --version tweaks.
35974         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35975         date of last ChangeLog entry.
35976
35977 2008-03-21  Jim Meyering  <meyering@redhat.com>
35978
35979         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35980
35981 2008-03-20  Eric Blake  <ebb9@byu.net>
35982
35983         VPATH fix.
35984         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35985
35986 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35987
35988         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35989         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35990
35991 2008-03-20  Eric Blake  <ebb9@byu.net>
35992
35993         Sync GNUmakefile with coreutils.
35994         * build-aux/GNUmakefile (have-Makefile): Rename...
35995         (_have-Makefile): ...to this, for namespace consideration.
35996         (GNUmakefile.cfg): Include, if present.
35997         (_autoreconf): Define a default.
35998         (_is-dist-target): New rule for rebuilds to pick up intra-release
35999         version.
36000         (maint-cfg.mk): Rename...
36001         (cfg.mk): ...to this.
36002
36003 2008-03-18  Jim Meyering  <meyering@redhat.com>
36004
36005         New script and module: mktempd
36006         * MODULES.html.sh (maint+release support): Add mktempd.
36007         * build-aux/mktempd: New file.
36008         * modules/mktempd: New file.
36009
36010 2008-03-15  Jim Meyering  <meyering@redhat.com>
36011
36012         Undo last change.
36013         * lib/sha1.c, lib/md5.c: 63 != ~63.
36014         Reported by Andreas Schwab.
36015
36016         sha1.c, md5.c: Hoist a redundant expression.
36017         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36018         "ctx->buflen" only once, before calling *_process_block.
36019         * lib/md5.c (md5_process_bytes): Likewise.
36020
36021 2008-03-14  Eric Blake  <ebb9@byu.net>
36022
36023         Bump copyright year in files generated by gnulib-tool.
36024         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36025         gnulib-tool, rather than hard-coding it.
36026
36027         Fix 'gnulib-tool --version' output to work with git.
36028         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36029         (startup): ...here.
36030         (func_version): Use it to invoke git-version-gen, rather than
36031         relying on CVS keyword expansion.  Modernize wording.
36032         (cvsdatestamp, last_checkin_date, version): Kill unused
36033         variables.
36034
36035 2008-03-12  Jim Meyering  <meyering@redhat.com>
36036
36037         Recognize optional cast of the argument to free.
36038         * build-aux/useless-if-before-free: Update regexps.
36039
36040         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36041
36042 2008-03-11  Bruno Haible  <bruno@clisp.org>
36043
36044         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36045         by a single package.
36046         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36047         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36048         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36049         Reported by Sam Steingold <sds@gnu.org>.
36050
36051 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36052
36053         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36054         repositories.
36055
36056 2008-03-11  Bruno Haible  <bruno@clisp.org>
36057
36058         Avoid conflicts between local macro definitions.
36059         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36060         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36061
36062 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36063             Bruno Haible  <bruno@clisp.org>
36064
36065         Make va_copy work with some version of xlc on AIX 5.1.
36066         * lib/stdarg.in.h: New file.
36067         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36068         On AIX, use a <stdarg.h> file substitute.
36069         * modules/stdarg (Files): Add lib/stdarg.in.h.
36070         (Depends-on): Add include_next.
36071         (Makefile.am): Build a stdarg.h substitute if requested.
36072         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36073
36074 2008-03-10  Bruno Haible  <bruno@clisp.org>
36075
36076         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36077         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36078         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36079
36080 2008-03-10  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/stdlib (Depends-on): Add include_next, remove
36083         absolute-header.
36084
36085 2008-03-09  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/freadahead.h (freadahead): Document more precisely.
36088         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36089         the sum of both buffer sizes.
36090         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36091         * NEWS: Document the change.
36092
36093 2008-03-09  Bruno Haible  <bruno@clisp.org>
36094
36095         Extend freadptr to return also the buffer size.
36096         * lib/freadptr.h (freadptr): Add sizep argument.
36097         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36098         (freadptr): Add sizep argument. Determine buffer size like freadahead
36099         does.
36100         * tests/test-freadptr.c: Don't include freadahead.h.
36101         (main): Adapt for new calling convention of freadptr.
36102         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36103         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36104         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36105         tests/test-freadptr2.sh.
36106         (Depends): Remove freadahead.
36107         (TESTS): Add test-freadptr2.sh.
36108         (check_PROGRAMS): Add test-freadptr2.
36109
36110 2008-03-09  Bruno Haible  <bruno@clisp.org>
36111
36112         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36113         Report and solution by Simon Josefsson.
36114
36115 2008-03-06  Bruno Haible  <bruno@clisp.org>
36116
36117         Make fflush after ungetc work on BSD platforms.
36118         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36119         * tests/test-fflush2.c: New file.
36120         * tests/test-fflush2.sh: New file.
36121         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36122         tests/test-fflush2.c.
36123         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36124         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36125
36126 2008-03-06  Eric Blake  <ebb9@byu.net>
36127
36128         Likewise for ftello.
36129         * modules/ftello (Dependencies): Add extensions.
36130         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36131
36132 2008-03-06  Bruno Haible  <bruno@clisp.org>
36133
36134         * modules/fseeko (Dependencies): Add extensions.
36135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36136         Needed on glibc systems.
36137
36138 2008-03-06  Bruno Haible  <bruno@clisp.org>
36139
36140         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36141         email address.
36142         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36143
36144 2008-03-06  Bruno Haible  <bruno@clisp.org>
36145
36146         * users.txt: Add libgnupdf.
36147
36148 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36149
36150         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36151         (Header File Substitutes, Function Substitutes,
36152         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36153         (Build robot for gnulib): Fix typo.
36154
36155 2008-03-06  Bruno Haible  <bruno@clisp.org>
36156
36157         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36158         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36159
36160 2008-03-06  Bruno Haible  <bruno@clisp.org>
36161
36162         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36163         * doc/gnulib.texi: Include it.
36164
36165 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36166
36167         * modules/func (License): Change license to unlimited; there was
36168         no LGPL parts in the module anyway.
36169
36170 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36171
36172         * modules/__func__: Renamed to modules/func.
36173         * modules/__func__-tests: Renamed to modules/func-tests.
36174         * tests/test-__func__.c: Renamed to tests/test-func.c.
36175         * m4/__func__.m4: Renamed to m4/func.m4.
36176         * doc/gnulib.texi (__func__): Section renamed to func.
36177         Suggested by Eric Blake <ebb9@byu.net>.
36178
36179 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36180
36181         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36182         about __func__.  Make example self-contained.  Suggested by Eric
36183         Blake <ebb9@byu.net>.
36184
36185         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36186         Suggested by Eric Blake <ebb9@byu.net>.
36187
36188 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36189
36190         * modules/__func__: New file.
36191         * modules/__func__-tests: New file.
36192         * tests/test-__func__.c: New file.
36193         * m4/__func__.m4: New file.
36194         * doc/gnulib.texi (__func__): Document __func__ module.
36195
36196 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36197
36198         * modules/byteswap (License): Re-license as LGPLv2+.
36199
36200 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36201
36202         * doc/Makefile: Add pdf target.
36203
36204 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36205
36206         * modules/inline (License): Use 'unlimited', since there are only
36207         *.m4 files in this module.
36208
36209 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36210             Bruno Haible  <bruno@clisp.org>
36211
36212         Add support for HP C 7.1 on OpenVMS 8.3.
36213         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36214
36215 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36216
36217         Update VMS specifics.
36218         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36219
36220 2008-03-02  Jim Meyering  <meyering@redhat.com>
36221
36222         Remove the last dependency on the "free" module.
36223         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36224         Reported by Bob Proulx.
36225
36226         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36227
36228         Remove useless "if" tests before free.  Deprecate "free" module.
36229         * doc/posix-functions/free.texi: Mention that this
36230         module is no longer useful.
36231         * modules/free (Notice): Say this module is obsolete.
36232         * modules/readutmp (Depends-on): Remove free.
36233         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36234         * lib/putenv.c (putenv): Likewise.
36235         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36236         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36237         * tests/test-c-strcasestr.c (main): Likewise.
36238         * tests/test-c-strstr.c (main): Likewise.
36239         * tests/test-mbscasestr1.c (main): Likewise.
36240         * tests/test-mbscasestr2.c (main): Likewise.
36241         * tests/test-mbsstr1.c (main): Likewise.
36242         * tests/test-mbsstr2.c (main): Likewise.
36243         * tests/test-memmem.c (main): Likewise.
36244         * tests/test-strcasestr.c (main): Likewise.
36245         * tests/test-striconv.c (main): Likewise.
36246         * tests/test-striconveh.c (main): Likewise.
36247         * tests/test-striconveha.c (main): Likewise.
36248         * tests/test-strstr.c (main): Likewise.
36249
36250         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36251
36252         bootstrap: sync from coreutils again
36253         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36254
36255 2008-03-01  Jim Meyering  <meyering@redhat.com>
36256
36257         bootstrap: sync from coreutils
36258         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36259         also when the target doesn't exist.
36260
36261 2008-03-01  Eric Blake  <ebb9@byu.net>
36262
36263         Fix bugs in last patch.
36264         * lib/memchr2.c (memchr2): Fix typo.
36265         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36266         extension.
36267         Reported by Bruce Korb.
36268
36269         New module 'memchr2'.
36270         * modules/memchr2: New file.
36271         * modules/memchr2-tests: Likewise.
36272         * lib/memchr2.h: Likewise.
36273         * lib/memchr2.c: Likewise, based on memchr.c.
36274         * tests/test-memchr2.c: New test.
36275         * MODULES.html.sh (String handling): Add memchr2.
36276
36277 2008-02-29  Bruno Haible  <bruno@clisp.org>
36278
36279         * modules/freadseek-tests: New file.
36280         * tests/test-freadseek.sh: New file.
36281         * tests/test-freadseek.c: New file.
36282
36283         New module 'freadseek'.
36284         * modules/freadseek: New file.
36285         * lib/freadseek.h: New file.
36286         * lib/freadseek.c: New file.
36287         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36288
36289 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36290
36291         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36292         wydawca.
36293
36294         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36295         program_invocation_name and program_invocation_short_name are
36296         present.
36297
36298 2008-02-28  Bruno Haible  <bruno@clisp.org>
36299
36300         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36301         * tests/test-freadptr.sh: Also test non-seekable stdin.
36302
36303 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36304
36305         * build-aux/bootstrap (source_base, m4_base)
36306         (doc_base, tests_base): New variables.
36307         (gnulib_tool_options): Do not hardcode base directories, use
36308         the above variables instead.
36309
36310 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36311
36312         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36313
36314 2008-02-28  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/freadptr-tests: New file.
36317         * tests/test-freadptr.sh: New file.
36318         * tests/test-freadptr.c: New file.
36319
36320         New module 'freadptr'.
36321         * modules/freadptr: New file.
36322         * lib/freadptr.h: New file.
36323         * lib/freadptr.c: New file.
36324         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36325
36326 2008-02-26  Karl Berry  <karl@freefriends.org>
36327
36328         Sync from Libtool:
36329         * libltdl/argz.c (argz_add, argz_count): New functions.
36330         * libltdl/argz.in.h: Declare them.
36331         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36332
36333 2008-02-22  Bruno Haible  <bruno@clisp.org>
36334
36335         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36336         is a pointer type.  Needed for HP-UX 10.
36337         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36338         * doc/posix-functions/gmtime_r.texi: Likewise.
36339         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36340
36341 2008-02-24  Bruno Haible  <bruno@clisp.org>
36342
36343         * modules/environ-tests: New file.
36344         * tests/test-environ.c: New file.
36345
36346         New module 'environ'.
36347         * modules/environ: New file.
36348         * lib/unistd.in.h (environ): New declaration.
36349         * m4/environ.m4: New file.
36350         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36351         after use.
36352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36353         HAVE_DECL_ENVIRON.
36354         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36355         HAVE_DECL_ENVIRON.
36356         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36357         wrong claim that 'environ' is missing on some systems.
36358         * modules/execute (Depends-on): Add environ.
36359         * lib/execute.c (environ): Remove fallback declaration.
36360         * modules/pipe (Depends-on): Add environ.
36361         * lib/pipe.c (environ): Remove fallback declaration.
36362         * modules/setenv (Depends-on): Add environ.
36363         * lib/setenv.c (environ): Remove fallback declaration.
36364         * modules/unsetenv (Depends-on): Add environ.
36365         * lib/unsetenv.c (environ): Remove fallback declaration.
36366         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36367         m4/environ.m4.
36368         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36369         (gl_PREREQ_UNSETENV): Likewise.
36370
36371 2008-02-24  Bruno Haible  <bruno@clisp.org>
36372
36373         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36374
36375 2008-02-20  Bob Proulx  <bob@proulx.com>
36376
36377         Enable use of older two part flavor 'git describe'.
36378         * build-aux/git-version-gen: If using the older two part flavor of
36379         git version then recreate the third part now present in the
36380         newer three part flavor of git describe.
36381
36382 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36383
36384         * lib/fts.c (fts_build): Typo correction to comment.
36385
36386 2008-02-17  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36389         generating no-op conflicts.
36390
36391 2008-02-17  Bruno Haible  <bruno@clisp.org>
36392
36393         Speed up by 10%.
36394         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36395         result_entries, rather than an index-based loop.
36396
36397 2008-02-17  Bruno Haible  <bruno@clisp.org>
36398
36399         Speed up by 25%.
36400         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36401         'hashcode_cached'.
36402         (entry_create): New function.
36403         (entry_hashcode): Use the cached hashcode if possible.
36404         (read_changelog_file, try_split_merged_entry): Use entry_create.
36405
36406 2008-02-17  Bruno Haible  <bruno@clisp.org>
36407
36408         Speed up from O(n^2) to O(n) for long ChangeLog files.
36409         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36410         (read_changelog_file): Change implementation of entries_reversed list
36411         to rbtreehash.
36412         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36413
36414 2008-02-17  Bruno Haible  <bruno@clisp.org>
36415
36416         New option --split-merged-entry.
36417         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36418         (find_paragraph_end, try_split_merged_entry): New functions.
36419         (long_options): Add option --split-merged-entry.
36420         (usage): Document option --split-merged-entry.
36421         (main): Implement option --split-merged-entry.
36422         Reported by Eric Blake.
36423
36424 2008-02-17  Bruno Haible  <bruno@clisp.org>
36425
36426         * lib/git-merge-changelog.c: Include c-strstr.h.
36427         (main): Support the "git pull --rebase" situation.
36428         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36429         Reported by Eric Blake.
36430
36431 2008-02-16  Eric Blake  <ebb9@byu.net>
36432
36433         Avoid doubling \ in common case of "c-maybe" quoting style.
36434         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36435         eliding outer quotes.
36436         * lib/quotearg.h: Document this.
36437         * tests/test-quotearg.c (result_strings, inputs, results_g)
36438         (flag_results, locale_results): Test it by adding a new string to
36439         each test group.
36440         (compare_strings): Test new string.
36441
36442 2008-02-13  Eric Blake  <ebb9@byu.net>
36443
36444         Avoid trigraph quoting in default output.
36445         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36446         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36447         unless explicitly requested.
36448         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36449
36450 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36451
36452         Don't rely on signed integer overflowing to negative value.
36453         * lib/getugroups.c (getugroups): Include <limits.h>.
36454         Instead, compare against INT_MAX, and increment only if the test passes.
36455
36456 2008-02-13  Jim Meyering  <meyering@redhat.com>
36457         and Eric Blake  <ebb9@byu.net>
36458
36459         Avoid shadowing warning and compile errors on Linux.
36460         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36461         forwarding macros on Linux.
36462         (dcgettext): Define a stub, for Linux.
36463         (results_g, main): Avoid warnings.
36464
36465 2008-02-12  Eric Blake  <ebb9@byu.net>
36466
36467         Silence warning in last patch.
36468         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36469
36470         Quotearg part 4: add tests, fix c-maybe colon quoting.
36471         * lib/quotearg.h: Improve documentation.
36472         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36473         escapes when adding outer quotes.  When quoting trigraphs, use
36474         valid C notation.  When quoting NUL, omit extra characters if next
36475         character is not digit.  Alter prototype.
36476         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36477         callers.
36478         * modules/quotearg-tests: New module.
36479         * tests/test-quotearg.c: New test.
36480
36481 2008-02-07  Eric Blake  <ebb9@byu.net>
36482
36483         Quotearg part 3: add flag to control outer quote elision.
36484         * lib/quotearg.h (c_maybe_quoting_style): New style.
36485         (enum quoting_flags): Better documentation of flags.
36486         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36487         c-maybe style.
36488         (quotearg_buffer_restyled): Handle new flag to elide outer
36489         quotes.
36490
36491         Quotearg part 2: add flag that can control NUL elision.
36492         * lib/quotearg.h (set_quoting_flags): New prototype.
36493         * lib/quotearg.c (struct quoting_options): Add flag field.
36494         (set_quoting_flags): New function.
36495         (quotearg_buffer_restyled): Add flags parameter.
36496         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36497         (quotearg_n_options): Set the flag, since length cannot be
36498         returned.
36499         (quoting_options_from_style): Default flags correctly.
36500
36501         Quotearg part 1: more wrappers, restore quotearg_char state.
36502         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36503         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36504         (quotearg_colon_mem): New wrappers.
36505         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36506         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36507         functions.
36508         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36509         (quotearg_colon_mem): New functions.
36510
36511 2008-02-11  Bruno Haible  <bruno@clisp.org>
36512
36513         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36514         library in the current directory: it does not work with parallel make.
36515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36516
36517 2008-02-11  Bruno Haible  <bruno@clisp.org>
36518
36519         * .gitattributes: New file.
36520
36521 2008-02-11  Jim Meyering  <meyering@redhat.com>
36522
36523         useless-if-before-free: Fix reversed exit values.
36524         * build-aux/useless-if-before-free: Use correct values
36525         for EXIT_MATCH and EXIT_NO_MATCH.
36526
36527         * build-aux/useless-if-before-free: Close stdout carefully.
36528
36529 2008-02-10  Bruno Haible  <bruno@clisp.org>
36530
36531         New module 'git-merge-changelog'.
36532         * modules/git-merge-changelog: New file.
36533         * lib/git-merge-changelog.c: New file.
36534
36535 2008-02-10  Jim Meyering  <meyering@redhat.com>
36536
36537         useless-if-before-free: New option: --list (-l).
36538
36539         useless-if-before-free: Don't exit immediately upon open failure.
36540         * build-aux/useless-if-before-free: Exit 2 for errors.
36541         Upon failure to open a file, don't exit immediately.
36542         Rather, just warn and continue with any remaining files.
36543
36544 2008-02-10  Bruno Haible  <bruno@clisp.org>
36545
36546         New abstract list operation 'node_set_value'.
36547         * lib/gl_list.h (gl_list_node_set_value): New function.
36548         (struct gl_list_implementation): New field node_set_value.
36549         * lib/gl_list.c (gl_list_node_set_value): New function.
36550         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36551         (gl_array_list_implementation): Update.
36552         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36553         (gl_carray_list_implementation): Update.
36554         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36555         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36556         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36557         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36558         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36559         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36560         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36561         Update.
36562         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36563         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36564         (gl_sublist_list_implementation): Update.
36565
36566 2008-02-10  Bruno Haible  <bruno@clisp.org>
36567
36568         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36569         Needed when ELEMENT is #defined to 'some_type *'.
36570
36571 2008-02-10  Jim Meyering  <meyering@redhat.com>
36572
36573         New script and module: useless-if-before-free
36574         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36575         * build-aux/useless-if-before-free: New file.
36576         * modules/useless-if-before-free: New file.
36577
36578         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36579
36580         xstrtol_error: Fix typo.
36581         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36582         s/exit_failure/exit_status/.
36583
36584 2008-02-09  Jim Meyering  <meyering@redhat.com>
36585
36586         New script and module: gitlog-to-changelog
36587         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36588         * modules/gitlog-to-changelog: New file.
36589         * build-aux/gitlog-to-changelog: New file.
36590
36591 2008-02-08  Jim Meyering  <meyering@redhat.com>
36592
36593         Avoid two "parameter unused" warnings.
36594         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36595         Mark "st" as used.
36596
36597         Use "git COMMAND", not "git-COMMAND".
36598         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36599         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36600         * build-aux/git-version-gen: Use "git status", not "git-status".
36601
36602 2008-02-07  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36605         Avoids a crash on Windows Vista.
36606         Reported by Adam Strzelecki <ono@java.pl> via
36607         Simon Josefsson <simon@josefsson.org>.
36608
36609 2008-02-06  Bruno Haible  <bruno@clisp.org>
36610
36611         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36612         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36613         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36615         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36617         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36618         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36626         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36627         left-adjust flag.
36628         * tests/test-snprintf-posix.h (test_function): Likewise.
36629         * tests/test-sprintf-posix.h (test_function): Likewise.
36630         * tests/test-vasprintf-posix.c (test_function): Likewise.
36631         * doc/posix-functions/fprintf.texi: Update.
36632         * doc/posix-functions/printf.texi: Update.
36633         * doc/posix-functions/snprintf.texi: Update.
36634         * doc/posix-functions/sprintf.texi: Update.
36635         * doc/posix-functions/vfprintf.texi: Update.
36636         * doc/posix-functions/vprintf.texi: Update.
36637         * doc/posix-functions/vsnprintf.texi: Update.
36638         * doc/posix-functions/vsprintf.texi: Update.
36639         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36640
36641 2008-02-06  Bruno Haible  <bruno@clisp.org>
36642
36643         Fix bug introduced on 2008-01-26.
36644         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36645
36646 2008-02-06  Bruno Haible  <bruno@clisp.org>
36647
36648         Fix bug introduced on 2007-06-10.
36649         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36650         !NEED_PRINTF_FLAG_ZERO.
36651
36652 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36653
36654         getloadavg: use libperfstat on AIX5
36655         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36656
36657 2008-02-03  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/diffseq.h: Add comments about required #includes.
36660         Reported by Michael Biggs <gnulib@doubleplum.net>.
36661
36662 2008-02-01  Bruno Haible  <bruno@clisp.org>
36663
36664         * users.txt: Add gnuit.
36665
36666 2008-01-31  Bruno Haible  <bruno@clisp.org>
36667
36668         * lib/md4.c (set_uint32): Mark as inline.
36669         * lib/md5.c (set_uint32): Likewise.
36670         * lib/sha1.c (set_uint32): Likewise.
36671         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36672         * m4/md5.m4 (gl_MD5): Likewise.
36673         * m4/sha1.m4 (gl_SHA1): Likewise.
36674
36675 2008-01-31  Jim Meyering  <meyering@redhat.com>
36676
36677         Use "sizeof VAR", rather than a literal "4".
36678         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36679         * lib/md4.c (md4_read_ctx): Likewise.
36680         * lib/sha1.c (sha1_read_ctx): Likewise.
36681
36682 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36683
36684         * tests/test-sha1.c: New file, based on test-md5.c.
36685
36686         * modules/crypto/sha1-tests: New file.
36687
36688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36689
36690         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36691
36692 2008-01-31  Jim Meyering  <meyering@redhat.com>
36693
36694         Prefer "sizeof v" over the equivalent "4".
36695         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36696         * lib/md5.c (set_uint32): Likewise.
36697         * lib/sha1.c (set_uint32): Likewise.
36698
36699 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36700
36701         * lib/sha1.c (set_uint32): Mark function as static.
36702
36703 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36704
36705         md2: clarify comments to say that alignment is not required.
36706         * lib/md2.h: Remove warning about alignment in comment.
36707         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36708         never been required.
36709
36710 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36711
36712         md4: adapt alignment constraint fix from sha1.
36713         * lib/md4.c (set_uint32): New function, from sha1.c
36714         (md4_read_ctx): Use it.
36715         (md4_finish_ctx): Doc fix.
36716         * lib/md4.h: Doc fix.
36717
36718 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36719
36720         md5: adapt alignment constraint fix from sha1.
36721         * lib/md5.c (set_uint32): New function, from sha1.c
36722         (md5_read_ctx): Use it.
36723         (md5_finish_ctx): Doc fix.
36724         * lib/md5.h: Doc fix.
36725
36726 2008-01-30  Peter Palfrader  <weasel@debian.org>
36727
36728         sha1: remove the result buffer alignment constraint
36729         * lib/sha1.c (set_uint32): New function.
36730         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36731         constraint.
36732         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36733         * lib/sha1.h: Likewise.
36734
36735 2008-01-30  Andreas Schwab  <schwab@suse.de>
36736             Bruno Haible  <bruno@clisp.org>
36737
36738         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36739         correct definition of LDBL_MIN_EXP.
36740
36741 2008-01-30  Karl Berry  <karl@gnu.org>
36742
36743         * config/srclist-update: try to preserve x bit on updates.
36744         * config/srclistvars.sh: update for karl.
36745
36746 2008-01-29  Jim Meyering  <meyering@redhat.com>
36747
36748         vasnprintf.c: Avoid warning about unused label
36749         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36750         "overflow" label definition and associated code with the
36751         same cpp condition that guards the sole use of that label.
36752
36753 2008-01-26  Bruno Haible  <bruno@clisp.org>
36754
36755         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36756         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36757         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36758         * lib/isnanl-nolibm.h (isnanl): Likewise.
36759         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36760
36761 2008-01-26  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36764         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36765
36766 2008-01-26  Bruno Haible  <bruno@clisp.org>
36767
36768         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36769         GCC >= 4.0 built-in.
36770         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36771
36772 2008-01-26  Bruno Haible  <bruno@clisp.org>
36773
36774         Rename isnan, applicable to 'double' only, to isnand.
36775         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36776         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36777         (configure.ac): Update.
36778         (Include): Replace "isnan.h" with "isnand.h".
36779         * m4/isnand.m4: Renamed from m4/isnan.m4.
36780         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36781         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36782         instead of isnan.c.
36783         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36784         instead of HAVE_ISNAN_IN_LIBC.
36785         (isnand): Renamed from isnan.
36786         * lib/isnand.c: New file.
36787         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36788         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36789         (Makefile.am): Update.
36790         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36791         Include isnand.h instead of isnan.h.
36792         (main): Test isnand instead of isnan.
36793         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36794         isnan-nolibm.
36795         * modules/frexp (Depends-on): Likewise.
36796         * modules/frexp-tests (Depends-on): Likewise.
36797         * modules/frexp-nolibm (Depends-on): Likewise.
36798         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36799         * modules/isfinite (Depends-on): Likewise.
36800         * modules/round-tests (Depends-on): Likewise.
36801         * modules/signbit (Depends-on): Likewise.
36802         * modules/signbit-tests (Depends-on): Likewise.
36803         * modules/snprintf-posix (Depends-on): Likewise.
36804         * modules/sprintf-posix (Depends-on): Likewise.
36805         * modules/trunc-tests (Depends-on): Likewise.
36806         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36808         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36809         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36810         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36811         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36812         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36813         * modules/vasnprintf-posix (Depends-on): Likewise.
36814         * modules/vasprintf-posix (Depends-on): Likewise.
36815         * modules/vfprintf-posix (Depends-on): Likewise.
36816         * modules/vsnprintf-posix (Depends-on): Likewise.
36817         * modules/vsprintf-posix (Depends-on): Likewise.
36818         * lib/frexp.c: Include isnand.h instead of isnan.h.
36819         (ISNAN): Set to isnand instead of isnan.
36820         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36821         (gl_isfinited): Use isnand instead of isnan.
36822         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36823         (gl_signbitd): Use isnand instead of isnan.
36824         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36825         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36826         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36827         (main): Use isnand instead of isnan.
36828         * tests/test-round1.c: Include isnand.h.
36829         (main): Use isnand instead of isnan.
36830         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36831         (ISNAN): Set to isnand instead of isnan.
36832         * tests/test-trunc1.c: Include isnand.h.
36833         (main): Use isnand instead of isnan.
36834         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36835         (equal): Use isnand instead of isnan.
36836         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36837         isnand-nolibm.
36838         * NEWS: Mention the change.
36839
36840 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36841             Bruno Haible  <bruno@clisp.org>
36842
36843         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36844         the GCC builtins for signbits are present and set
36845         REPLACE_SIGNBIT_USING_GCC if so.
36846         * lib/math.in.h (signbit): Define using GCC builtins if
36847         REPLACE_SIGNBIT_USING_GCC is set.
36848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36849         REPLACE_SIGNBIT_USING_GCC.
36850         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36851
36852 2008-01-25  Jim Meyering  <meyering@redhat.com>
36853
36854         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36855         * lib/poll.c: Include <config.h>, not "config.h".
36856         * tests/test-getaddrinfo.c: Likewise.
36857
36858 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36859
36860         * modules/sockets-tests: New file.
36861
36862 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36863
36864         * modules/sockets: New module, can be used to call WSA_Startup and
36865         WSA_Cleanup when needed.
36866
36867         * lib/sockets.h, lib/sockets.c: New files.
36868
36869         * m4/sockets.m4: New file.
36870
36871         * tests/test-sockets.c: New file.
36872
36873 2008-01-19  Bruno Haible  <bruno@clisp.org>
36874
36875         * doc/posix-headers: Renamed from doc/headers.
36876         * doc/posix-functions: Renamed from doc/functions.
36877         * doc/gnulib.texi: Update.
36878
36879 2008-01-19  Bruno Haible  <bruno@clisp.org>
36880
36881         * doc/glibc-functions/strcasestr.texi: Include contents of
36882         doc/functions/strcasestr.texi, fixing the list of platforms.
36883         * doc/functions/strcasestr.texi: Remove file.
36884
36885 2008-01-19  Bruno Haible  <bruno@clisp.org>
36886
36887         * doc/glibc-functions/memmem.texi: Include contents of
36888         doc/functions/memmem.texi.
36889         * doc/functions/memmem.texi: Remove file.
36890
36891 2008-01-18  Bruno Haible  <bruno@clisp.org>
36892
36893         * doc/glibc-functions/*.texi: New files.
36894         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36895         to use the new files.
36896
36897 2008-01-17  Bruno Haible  <bruno@clisp.org>
36898
36899         * tests/test-gethostname.c (main): Fix printf statement.
36900
36901 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36902
36903         * modules/gethostname-tests: New file.
36904
36905         * tests/test-gethostname.c: New file.
36906
36907 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36908
36909         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36910         used by the UNAME case.  Reported by Bruno Haible
36911         <bruno@clisp.org>.
36912
36913 2008-01-17  Eric Blake  <ebb9@byu.net>
36914
36915         Convert c-strcasestr to be more efficient.
36916         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36917         (Depends-on): Add c-strcase, remove malloca, strnlen.
36918         * tests/test-c-strcasestr.c (main): Enhance test.
36919         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36920
36921 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36922
36923         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36924         Use it in creating po/Makevars.
36925
36926 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36927
36928         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36929         Applications that requires it should initialize libgcrypt
36930         manually.
36931
36932 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36933
36934         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36935
36936 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36937
36938         Fix problem with getdate on mingw32 reported by Simon Josefsson
36939         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36940         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36941         tzname", when deciding whether to declare tzname.
36942         * lib/strftime.c (tzname): Likewise.
36943
36944 2008-01-15  Bruno Haible  <bruno@clisp.org>
36945
36946         Work around a MacOS X 10.5 bug in frexpl().
36947         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36948         * doc/functions/frexpl.texi: Document the bug.
36949         Reported by Elias Pipping <pipping@gentoo.org>.
36950
36951 2008-01-14  Eric Blake  <ebb9@byu.net>
36952
36953         Touch up previous patch.
36954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36955         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36956
36957         Convert strcasestr module to use Two-Way algorithm.
36958         * modules/strcasestr-simple: New module, based on the old
36959         strcasestr, but with Two-Way rather than KMP.
36960         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36961         * lib/string.in.h (rpl_strcasestr): Declare.
36962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36963         performance.
36964         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36965         * modules/string (Makefile.am): Support strcasestr.
36966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36967         * modules/strcasestr-tests (Depends-on): Check for alarm.
36968         * tests/test-strcasestr.c: Augment test.
36969         * lib/str-two-way.h: Clean up stray macro.
36970         * NEWS: Document new module.
36971         * MODULES.html.sh (string handling): Likewise.
36972         * doc/functions/strcasestr.texi: New file.
36973         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36974         here, since it is not a POSIX function.
36975
36976 2008-01-14  Colin Watson  <cjwatson@debian.org>
36977             Bruno Haible  <bruno@clisp.org>
36978
36979         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36980         works fine; if not, set REPLACE_STRSIGNAL.
36981         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36983         REPLACE_STRSIGNAL.
36984         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36985         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36986         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36987
36988 2008-01-14  Bruno Haible  <bruno@clisp.org>
36989
36990         * modules/strsignal (Include): Change to <string.h>.
36991
36992 2008-01-14  Colin Watson  <cjwatson@debian.org>
36993
36994         * modules/argp (Notice): Add a notice recommending to change
36995         XGETTEXT_OPTIONS.
36996         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36997
36998 2008-01-13  Colin Watson  <cjwatson@debian.org>
36999
37000         * modules/strsignal-tests: New file.
37001         * tests/test-strsignal.c: New file.
37002
37003         * lib/strsignal.c: New file, from glibc with modifications.
37004         * lib/siglist.h: New file, from glibc with modifications.
37005         * lib/string.in.h (strsignal): New declaration.
37006         * m4/strsignal.m4: New file.
37007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37008         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37009         * modules/strsignal: New file.
37010         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37011         HAVE_DECL_STRSIGNAL.
37012
37013 2008-01-13  Bruno Haible  <bruno@clisp.org>
37014
37015         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37016         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37017         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37018         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37019
37020 2008-01-13  Bruno Haible  <bruno@clisp.org>
37021
37022         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37023         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37024         * lib/argp.h (__attribute__): Likewise.
37025         * lib/c-stack.c (__attribute__): Likewise.
37026         * lib/error.h (__attribute__): Likewise.
37027         * lib/fts.c (__attribute__): Likewise.
37028         * lib/openat.h (__attribute__): Likewise.
37029         * lib/stdio.in.h (__attribute__): Likewise.
37030         * lib/string.in.h (__attribute__): Likewise.
37031         * lib/utimens.c (__attribute__): Likewise.
37032         * lib/vasnprintf.h (__attribute__): Likewise.
37033         * lib/xalloc.h (__attribute__): Likewise.
37034         * lib/xprintf.h (__attribute__): Likewise.
37035         * lib/xstrtol.h (__attribute__): Likewise.
37036         * lib/xvasprintf.h (__attribute__): Likewise.
37037
37038 2008-01-12  Bruno Haible  <bruno@clisp.org>
37039
37040         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37041         * doc/glibc-headers/a.out.texi: New file.
37042         * doc/glibc-headers/aliases.texi: New file.
37043         * doc/glibc-headers/alloca.texi: New file.
37044         * doc/glibc-headers/ar.texi: New file.
37045         * doc/glibc-headers/argp.texi: New file.
37046         * doc/glibc-headers/argz.texi: New file.
37047         * doc/glibc-headers/byteswap.texi: New file.
37048         * doc/glibc-headers/crypt.texi: New file.
37049         * doc/glibc-headers/endian.texi: New file.
37050         * doc/glibc-headers/envz.texi: New file.
37051         * doc/glibc-headers/err.texi: New file.
37052         * doc/glibc-headers/error.texi: New file.
37053         * doc/glibc-headers/execinfo.texi: New file.
37054         * doc/glibc-headers/fpu_control.texi: New file.
37055         * doc/glibc-headers/fstab.texi: New file.
37056         * doc/glibc-headers/fts.texi: New file.
37057         * doc/glibc-headers/getopt.texi: New file.
37058         * doc/glibc-headers/ieee754.texi: New file.
37059         * doc/glibc-headers/ifaddrs.texi: New file.
37060         * doc/glibc-headers/libintl.texi: New file.
37061         * doc/glibc-headers/mcheck.texi: New file.
37062         * doc/glibc-headers/mntent.texi: New file.
37063         * doc/glibc-headers/obstack.texi: New file.
37064         * doc/glibc-headers/paths.texi: New file.
37065         * doc/glibc-headers/printf.texi: New file.
37066         * doc/glibc-headers/pty.texi: New file.
37067         * doc/glibc-headers/resolv.texi: New file.
37068         * doc/glibc-headers/shadow.texi: New file.
37069         * doc/glibc-headers/sysexits.texi: New file.
37070         * doc/glibc-headers/ttyent.texi: New file.
37071
37072 2008-01-12  Jim Meyering  <meyering@redhat.com>
37073
37074         announce-gen: emit Gnulib's git-based version string.
37075         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37076         New option --gnulib-version=V, where V is expected to be
37077         the output of running git describe in the gnulib directory.
37078         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37079         not useful, and plan to stop publishing an xdelta file with each
37080         coreutils release.
37081
37082         * build-aux/announce-gen: Also check for lzma-compressed files.
37083
37084 2008-01-11  Bruno Haible  <bruno@clisp.org>
37085
37086         * tests/test-memmem.c (main): Increase maximum allowed time.
37087         * tests/test-strstr.c (main): Likewise.
37088
37089 2008-01-11  Bruno Haible  <bruno@clisp.org>
37090
37091         * doc/functions/memmem.texi: Add more precisions about platforms.
37092         * doc/functions/strstr.texi: Likewise.
37093
37094 2008-01-10  Eric Blake  <ebb9@byu.net>
37095
37096         * m4/strstr.m4: Delete cruft from copy-n-paste.
37097         Reported by Bruno Haible.
37098
37099 2008-01-10  Bruno Haible  <bruno@clisp.org>
37100
37101         Make c-strstr rely on strstr.
37102         * lib/c-strstr.c: Don't include str-kmp.h.
37103         (c_strstr): Define in terms of strstr.
37104         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37105         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37106
37107 2008-01-10  Bruno Haible  <bruno@clisp.org>
37108
37109         * doc/gnulib.texi (String Functions in C Locale): New section.
37110         * doc/c-ctype.texi: New file.
37111         * doc/c-strcase.texi: New file.
37112         * doc/c-strcaseeq.texi: New file.
37113         * doc/c-strcasestr.texi: New file.
37114         * doc/c-strstr.texi: New file.
37115         * doc/c-strtod.texi: New file.
37116         * doc/c-strtold.texi: New file.
37117
37118 2008-01-10  Eric Blake  <ebb9@byu.net>
37119
37120         * lib/relocatable.h: Fix a comment.
37121
37122 2008-01-10  Eric Blake  <ebb9@byu.net>
37123
37124         Share two-way algorithm.
37125         * lib/str-two-way.h: New file, merged from...
37126         * lib/memmem.c: ...here...
37127         * lib/strstr.c: ...and here.
37128         * modules/memmem (Files): Use it.
37129         * modules/strstr (Files): Likewise.
37130
37131         Avoid quadratic strstr implementations.
37132         * lib/strstr.c: New file.
37133         * m4/strstr.m4: Likewise.
37134         * modules/strstr: Likewise.
37135         * modules/strstr-tests: Likewise.
37136         * tests/test-strstr.c: Likewise.
37137         * lib/string.in.h (rpl_strstr): Declare.
37138         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37140         * modules/string (Makefile.am): Likewise.
37141         * MODULES.html.sh (string handling): Mention new module.
37142         * doc/functions/strstr.texi (strstr): Document the bug.
37143
37144 2008-01-10  Bruno Haible  <bruno@clisp.org>
37145
37146         * lib/relocatable.h (relocate): State whether result is freshly
37147         allocated or not.
37148         * lib/relocatable.c (relocate): Return a freshly allocated string
37149         instead of a pointer to a privately held string.
37150         Reported by Sylvain Beucler <beuc@gnu.org>.
37151
37152 2008-01-10  Colin Watson  <cjwatson@debian.org>
37153
37154         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37155         s/S_ISNLK/S_ISLNK/.
37156
37157 2008-01-09  Bruno Haible  <bruno@clisp.org>
37158
37159         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37160         and other files.
37161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37162         if it's only a guess.
37163         * modules/memmem: Simplify by depending on memmem-simple.
37164
37165 2008-01-09  Bruno Haible  <bruno@clisp.org>
37166
37167         Work around OpenBSD 4.0 tdelete() bug.
37168         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37169         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37170         macros and don't redefine the enum values.
37171         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37172         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37173         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37174
37175 2008-01-09  Bruno Haible  <bruno@clisp.org>
37176
37177         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37178         (main): Don't perform the tests if setlocale did not install a UTF-8
37179         locale. Needed on OpenBSD 4.0.
37180         * modules/wcwidth-tests (Depends-on): Add localcharset.
37181
37182 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37183
37184         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37185         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37186         * NEWS: announce this.
37187         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37188
37189 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37190         and Eric Blake  <ebb9@byu.net>
37191
37192         Add memmem-simple module.
37193         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37194         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37195         * modules/memmem-simple: New file.
37196         * modules/memmem (Description): Tweak.
37197         * MODULES.html.sh (string handling): Mention new module.
37198         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37199         addressed by memmem-simple.
37200         * NEWS: Document the difference.
37201
37202 2008-01-09  Eric Blake  <ebb9@byu.net>
37203
37204         Give gcc some memmem optimization hints.
37205         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37206         (strcasestr): Declare as pure.
37207         * modules/memmem (Maintainer): Claim my implementation.
37208
37209 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37210
37211         Support AIX 6.1 and higher.
37212         * build-aux/config.libpath: Likewise.
37213         * build-aux/config.rpath: Likewise.
37214
37215 2008-01-08  Jim Meyering  <meyering@redhat.com>
37216             Bruno Haible  <bruno@clisp.org>
37217
37218         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37219         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37220         Reported by Peter Fales in
37221         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37222
37223 2008-01-08  Bruno Haible  <bruno@clisp.org>
37224
37225         * modules/unictype/category-of (Depends-on): Add
37226         unictype/category-none.
37227         * modules/unictype/category-and-tests (Depends-on): Add
37228         unictype/category-{L,N,Lu,Nd}.
37229         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37230         * modules/unictype/category-or-tests (Depends-on): Add
37231         unictype/category-{L,N}.
37232         * modules/unictype/category-name-tests (Depends-on): Add
37233         unictype/category-{Z,Nl}.
37234         Reported by Simon Josefsson.
37235
37236 2008-01-08  Bruno Haible  <bruno@clisp.org>
37237
37238         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37239         convention better.
37240         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37241         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37242         Reported by Peter Miller <millerp@canb.auug.org.au>.
37243
37244 2008-01-08  Eric Blake  <ebb9@byu.net>
37245
37246         Rewrite memmem to guarantee linear complexity without malloc.
37247         * lib/memmem.c (memmem): Use Two-Way rather than
37248         Knuth-Morris-Pratt, to allow O(1) space usage.
37249         (critical_factorization, two_way_short_needle)
37250         (two_way_long_needle): New functions.
37251         (knuth_morris_pratt): Delete.
37252         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37253         Add stdint.
37254         * tests/test-memmem.c (main): Add tests for periodic needle and
37255         sublinear performance.
37256         * doc/functions/memmem.texi (memmem): Document other deficiencies
37257         in cygwin and older glibc.
37258
37259 2008-01-08  Bruno Haible  <bruno@clisp.org>
37260
37261         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37262         augmentation.
37263
37264 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37265
37266         Add a configure time option: --disable-acl.
37267         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37268         AC_ARG_ENABLE(acl).
37269
37270 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37271
37272         * tests/test-localename.c: Don't include obsolete "setenv.h".
37273
37274         * modules/localename-tests (Depends-on): Need unsetenv.
37275
37276 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37277
37278         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37279
37280 2008-01-06  Colin Watson  <cjwatson@debian.org>
37281
37282         * users.txt: Add man-db.
37283
37284 2008-01-07  Bruno Haible  <bruno@clisp.org>
37285
37286         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37287         previous section name.
37288
37289 2008-01-07  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/progname.c (set_program_name): Don't strip off a leading
37292         "lt-" prefix outside a .libs directory.
37293         Suggested by Paul Eggert.
37294
37295 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37296             Bruno Haible  <bruno@clisp.org>
37297
37298         Improve memory cleanup in 'relocatable' module.
37299         * lib/relocatable.h (compute_curr_prefix): Change return type to
37300         'char *'.
37301         * lib/relocatable.c (compute_curr_prefix): Change return type to
37302         'char *'. Free curr_installdir after use.
37303         (relocate): Free curr_prefix_better after use.
37304         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37305
37306 2008-01-01  Bruno Haible  <bruno@clisp.org>
37307
37308         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37309         failure on older glibc systems.
37310         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37311
37312 2008-01-05  Eric Blake  <ebb9@byu.net>
37313
37314         Avoid quadratic system memmem.
37315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37316         Reported by Ralf Wildenhues.
37317
37318         Fix memmem test for mingw.
37319         * modules/memmem-tests (configure.ac): Check for alarm.
37320         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37321         it.
37322         * doc/functions/memmem.texi: New file.
37323         * doc/gnulib.texi (Function Substitutes): Add memmem.
37324         Reported by Bruno Haible.
37325
37326 2008-01-04  Bruno Haible  <bruno@clisp.org>
37327
37328         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37329         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37330         gl_HEADER_STRING_H_DEFAULTS.
37331
37332 2008-01-04  Eric Blake  <ebb9@byu.net>
37333
37334         Shorten duration of memmem test.
37335         * tests/test-memmem.c (main): Use alarm to declare failure if test
37336         is taking too long.
37337         Reported by Ralf Wildenhues.
37338
37339 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37340
37341         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37342         string, needed by strerror.
37343
37344 2008-01-03  Colin Watson  <cjwatson@debian.org>
37345             Bruno Haible  <bruno@clisp.org>
37346
37347         * doc/gnulib-tool.texi (Localization): New section.
37348
37349 2008-01-02  Bruno Haible  <bruno@clisp.org>
37350
37351         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37352         variables to 'unsigned char *' type.
37353         Reported by Paul Eggert.
37354
37355 2008-01-02  Jim Meyering  <jim@meyering.net>
37356
37357         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37358
37359 2007-12-31  Jim Meyering  <jim@meyering.net>
37360
37361         Avoid use of private FTS type name.
37362         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37363
37364 2007-12-30  Karl Berry  <karl@gnu.org>
37365
37366         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37367         work around defect in Texinfo and/or the standalone Info browser.
37368
37369 2007-12-30  Bruno Haible  <bruno@clisp.org>
37370
37371         Unify 5 copies of the KMP code.
37372         * lib/str-kmp.h: New file.
37373         * lib/c-strcasestr.c: Include str-kmp.h.
37374         (knuth_morris_pratt): Remove function.
37375         (c_strcasestr): Update.
37376         * lib/c-strstr.c: Include str-kmp.h.
37377         (knuth_morris_pratt): Remove function.
37378         (c_strcasestr): Update.
37379         * lib/mbscasestr.c: Include str-kmp.h.
37380         (knuth_morris_pratt_unibyte): Remove function.
37381         * lib/mbsstr.c: Include str-kmp.h.
37382         (knuth_morris_pratt_unibyte): Remove function.
37383         * lib/strcasestr.c: Include str-kmp.h.
37384         (knuth_morris_pratt): Remove function.
37385         (strcasestr): Update.
37386         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37387         * modules/c-strstr (Files): Likewise.
37388         * modules/mbscasestr (Files): Likewise.
37389         * modules/mbsstr (Files): Likewise.
37390         * modules/strcasestr (Files): Likewise.
37391         Suggested by Paul Eggert.
37392
37393 2007-12-30  Bruno Haible  <bruno@clisp.org>
37394
37395         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37396         defined.
37397
37398 2007-12-30  Bruno Haible  <bruno@clisp.org>
37399
37400         * lib/xmalloca.h: Include xalloc.h.
37401         (xnmalloca): New macro.
37402
37403 2007-12-30  Bruno Haible  <bruno@clisp.org>
37404
37405         * lib/malloca.h (nmalloca): New macro.
37406         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37407         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37408         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37409         knuth_morris_pratt_multibyte): Likewise.
37410         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37411         knuth_morris_pratt_multibyte): Likewise.
37412         * lib/memmem.c (knuth_morris_pratt): Likewise.
37413         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37414
37415 2007-12-25  Bruno Haible  <bruno@clisp.org>
37416
37417         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37418         * lib/glob.c: Don't include openat.h.
37419         (link_exists2_p): Add back the code that deals with the
37420         !GLOB_ALTDIRFUNC case.
37421         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37422         let it do the filename concatenation.
37423         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37424         * modules/glob (Depends-on): Remove openat.
37425
37426 2007-12-31  Bruno Haible  <bruno@clisp.org>
37427
37428         * modules/dirfd (License): Change to LGPLv2+.
37429         Approved by Jim Meyering.
37430
37431 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37432
37433         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37434         when multiplying M by sizeof (size_t).
37435
37436 2007-12-10  Martin Lambers  <marlam@marlam.de>
37437
37438         Override getpagesize on mingw.
37439         * lib/getpagesize.c: New file.
37440         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37441         * modules/getpagesize (Files): Add lib/getpagesize.c.
37442         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37444         REPLACE_GETPAGESIZE.
37445         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37446
37447 2007-12-25  Bruno Haible  <bruno@clisp.org>
37448
37449         * modules/localcharset (Notice): New field.
37450         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37451         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37452
37453 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37454             Bruno Haible  <bruno@clisp.org>
37455
37456         Avoid using the syntax symbol() in formatted documentation.
37457         * MODULES.html.sh (func_module): When replacing symbol() with a
37458         hyperlink, remove the parentheses. Show an error if some remain.
37459         Recognize and render the '...' syntax.
37460         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37461         Rework. Add paragraph about GCC's inlining.
37462         * doc/alloca.texi: Likewise.
37463         * doc/error.texi: Remove parentheses from symbol reference.
37464         * doc/gnulib-intro.texi: Likewise.
37465         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37466         * modules/fnmatch (Description): Reword to say "the ... function".
37467         * modules/full-read (Description): Likewise.
37468         * modules/full-write (Description): Likewise.
37469         * modules/safe-read (Description): Likewise.
37470         * modules/safe-write (Description): Likewise.
37471         * modules/strchrnul (Description): Likewise.
37472         * modules/trim (Description): Likewise.
37473         * modules/error (Description): Remove parentheses from symbol
37474         references.
37475         * modules/verror (Description): Likewise.
37476         Reported by Karl Berry.
37477
37478 2007-12-25  Bruno Haible  <bruno@clisp.org>
37479
37480         Fixup after 2007-10-16 commit.
37481         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37482
37483 2007-12-24  Bruno Haible  <bruno@clisp.org>
37484
37485         Make --enable-relocatable work with DESTDIR.
37486         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37487         to compute installdir from destprog.
37488         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37489         also set the RELOC_DESTDIR variable.
37490         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37491
37492 2007-12-24  Bruno Haible  <bruno@clisp.org>
37493
37494         Fix link error due to xalloc_die().
37495         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37496         of xreadlink.
37497         * lib/relocwrapper.c: Update comments.
37498         * build-aux/install-reloc: Remove xreadlink.c from file list.
37499         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37500         xreadlink.c.
37501         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37502
37503 2007-12-24  Bruno Haible  <bruno@clisp.org>
37504
37505         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37506         * lib/setenv.h: Remove file.
37507         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37508         lib/setenv.h.
37509         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37510         (Depends-on): Add stdlib.
37511         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37512         gl_FUNC_UNSETENV.
37513         (Include): Replace setenv.h with <stdlib.h>.
37514         * modules/unsetenv: New file.
37515         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37516         * lib/unsetenv.c: Include <stdlib.h> first.
37517         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37518         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37519         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37520         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37521         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37522         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37524         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37525         * doc/functions/unsetenv.texi: Update.
37526         * modules/xsetenv (Depends-on): Add unsetenv.
37527         * modules/getdate (Depends-on): Likewise.
37528         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37529         * lib/xsetenv.c: Don't include setenv.h.
37530         * lib/getdate.y: Likewise.
37531         * lib/relocwrapper.c: Likewise.
37532         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37533         (Depends-on): Add stdlib.
37534         * NEWS: Mention the changes.
37535         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37536
37537 2007-12-23  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37540         indentation.
37541
37542 2007-12-23  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/c-strcasestr.c: Add more comments.
37545         * lib/c-strstr.c: Likewise.
37546         * lib/mbscasestr.c: Likewise.
37547         * lib/mbsstr.c: Likewise.
37548         * lib/strcasestr.c: Likewise.
37549         * lib/memmem.c: Likewise.
37550
37551 2007-12-23  Bruno Haible  <bruno@clisp.org>
37552
37553         * tests/test-memmem.c: Include <string.h> first.
37554
37555 2007-12-22  Bruno Haible  <bruno@clisp.org>
37556
37557         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37558         the contents of $testsbase.
37559         Reported by Ralf Wildenhues.
37560
37561 2007-12-22  Bruno Haible  <bruno@clisp.org>
37562
37563         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37564         two variables local_ldadd_before, local_ldadd_last.
37565
37566 2007-12-20  Eric Blake  <ebb9@byu.net>
37567
37568         Work around circular library issue when cross-compiling.
37569         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37570         that progname.o does not need to pull in rpl_memcmp.
37571
37572 2007-12-19  Eric Blake  <ebb9@byu.net>
37573
37574         Fix memmem to avoid O(n^2) worst-case complexity.
37575         * lib/memmem.c (knuth_morris_pratt): New function.
37576         (memmem): Use it if first few naive iterations fail.
37577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37578         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37579         * modules/memchr (License): Likewise.
37580         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37581         malloca.
37582         * tests/test-memmem.c: Rewrite, borrowing ideas from
37583         test-mbsstr1.c; the old version wouldn't even compile!
37584         * modules/memmem-tests: New file.
37585         * lib/string.in.h (rpl_memmem): Add declaration.
37586         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37588         REPLACE_MEMMEM.
37589
37590 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37591
37592         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37593         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37594         before any system include files, and undef after them all.  This
37595         should fix a problem on VMS reported by John E. Malmberg in
37596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37597
37598 2007-12-17  Eric Blake  <ebb9@byu.net>
37599
37600         Revert addition of verify, for BSD/OS.
37601         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37602         can't handle large files, for the sake of obsolete platforms.
37603         * modules/fseeko (Depends-on): Remove verify.
37604         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37605         * doc/functions/ftello.texi (ftello): Likewise.
37606         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37607         Reported by Larry Jones.
37608
37609 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37610
37611         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37612         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37613
37614 2007-12-17  Jim Meyering  <meyering@redhat.com>
37615
37616         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37617         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37618         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37619         * modules/getcwd (Depends-on): Add openat.
37620         Reported by Petr Salinger.
37621
37622 2007-12-17  Bruno Haible  <bruno@clisp.org>
37623
37624         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37625         avoid a segmentation fault of the configure test on x86_64 systems.
37626
37627 2007-12-15  Jim Meyering  <meyering@redhat.com>
37628
37629         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37630
37631 2007-12-13  Eric Blake  <ebb9@byu.net>
37632
37633         Another fseek test.
37634         * tests/test-fseek.c (main): Also test ungetc handling.
37635         * tests/test-fseeko.c (main): Likewise.
37636         * modules/fseeko (Depends-on): Add verify.
37637         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37638         large.
37639         Reported by Larry Jones.
37640
37641         Fix fseeko on mingw.
37642         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37643         seek.
37644
37645         Beef up fseek tests.
37646         * tests/test-fseek.c (main): Also test eof handling.
37647         * tests/test-fseeko.c (main): Likewise.
37648         Reported by Larry Jones.
37649
37650 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37651
37652         Fix fseeko on BSD-based platforms.
37653         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37654         successful seek.
37655
37656 2007-12-12  Eric Blake  <ebb9@byu.net>
37657
37658         Allow circular dependency of separate libtests.a
37659         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37660         when use_libtests.
37661
37662 2007-12-11  Eric Blake  <ebb9@byu.net>
37663
37664         Fix bug with -0.0L in previous patch.
37665         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37666         * tests/test-isnan.c (main): Also test on zeroes.
37667         * tests/test-isnanf.c (main): Likewise.
37668         * tests/test-isnanl.h (main): Likewise.
37669
37670         Detect pseudo-denormals on x86 even when cross-compiling.
37671         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37672         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37673         invalid bit patterns that happen to satisfy ==.
37674
37675         Avoid link failures with separate libtests.a.
37676         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37677         last, to satisfy circular dependencies.
37678
37679 2007-12-11  Eric Blake  <ebb9@byu.net>
37680         and Bruno Haible  <bruno@clisp.org>
37681
37682         Fix OpenBSD 4.0 <float.h> handling of long double.
37683         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37684         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37685         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37686
37687 2007-12-11  Jim Meyering  <meyering@redhat.com>
37688
37689         * users.txt: Add libvirt.
37690
37691         Support versions of autoconf prior to 2.59c.
37692         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37693         if it is not already defined.
37694
37695 2007-12-09  Bruno Haible  <bruno@clisp.org>
37696
37697         Let 'gnulib-tool --import' collect sources needed for the tests in
37698         tests/ rather than in lib/.
37699         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37700         argument. If true, add rules to generate libtests.a, and put libtests.a
37701         into $(LDADD). Consider source files in subdirectories and set
37702         uses_subdirs.
37703         (func_emit_initmacro_start, func_emit_initmacro_end,
37704         func_emit_initmacro_done): Pass all arguments explicitly.
37705         (func_import): Determine two module lists main_modules,
37706         testsrelated_modules. Determine use_libtests. Determine two variables
37707         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37708         instead of just sed_transform_lib_file. Determine two variables
37709         main_files and testsrelated_files. Compute 'files' as the union of
37710         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37711         func_add_or_update. In the generated gnulib-comp.m4, collect the
37712         object files for tests/ in different variables than those for lib/.
37713         Substitute LIBTESTS_LIBDEPS.
37714         (func_create_testdir): Combine the uses_subdirs results from
37715         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37716
37717 2007-12-09  Bruno Haible  <bruno@clisp.org>
37718
37719         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37720         the build-aux directory.
37721
37722 2007-12-09  Bruno Haible  <bruno@clisp.org>
37723
37724         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37725         introduced on 2006-09-09.
37726
37727 2007-12-07  Jim Meyering  <meyering@redhat.com>
37728
37729         Let these macros work also with autoconf-2.59.
37730         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37731         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37732         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37733
37734 2007-12-06  Jim Meyering  <meyering@redhat.com>
37735
37736         Avoid a configure-time syntax error in gl_FUNC_ACL.
37737         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37738         function in each branch, before testing the cache variable.
37739
37740 2007-12-04  Eric Blake  <ebb9@byu.net>
37741
37742         Make scripts executable.
37743         * build-aux/config.guess: Add execute permissions.
37744         * build-aux/config.sub: Likewise.
37745         * build-aux/gendocs.sh: Likewise.
37746
37747         Fix frexp on mingw.
37748         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37749         cross-compiling.
37750         * doc/functions/frexp.texi (frexp): Document the bug.
37751
37752         Make cygwin fseeko check more reliable.
37753         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37754         version numbers, rather than unrelated feature check.
37755         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37756         * doc/functions/ftello.texi (ftello): Likewise.
37757         Reported by Bruno Haible.
37758
37759         * m4/strerror.m4: Bump version number.
37760
37761 2007-12-03  Bruno Haible  <bruno@clisp.org>
37762
37763         * doc/functions/mprotect.texi: Mention the mingw problem.
37764
37765 2007-12-03  Eric Blake  <ebb9@byu.net>
37766
37767         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37768         REPLACE_STRERROR is initialized before this macro.
37769
37770 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37771
37772         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37773         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37774         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37775         put -lsec in even for programs other than 'ls'.  This fixes a problem
37776         for gettext reported by Bruno Haible in
37777         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37778         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37779         Add support for Solaris 10.  This isn't efficient, but should get the
37780         job done for now.
37781
37782 2007-12-03  James Youngman  <jay@gnu.org>
37783
37784         * doc/regexprops-generic.texi: change "an close-group" to "a
37785         close-group" and "illegal" to "not allowed".
37786
37787 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37788
37789         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37790         pr_byname.h. Needed for the rare case when the maintainer has done
37791         "make maintainer-clean" in the source directory and then attempts a
37792         build outside the source directory.
37793         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37794         scripts_byname.h.
37795
37796 2007-12-02  Martin Lambers <marlam@marlam.de>
37797             Bruno Haible  <bruno@clisp.org>
37798
37799         * lib/getpagesize.h: Remove file.
37800         * lib/unistd.in.h: Include declaration of getpagesize here.
37801         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37802         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37803         HAVE_SYS_PARAM_H.
37804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37805         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37806         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37807         (Depends-on): Add unistd.
37808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37809         (Include): Use <unistd.h> instead of getpagesize.h.
37810         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37811         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37812         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37813         gl_GETPAGESIZE invocation, already handled by module dependency.
37814         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37815
37816 2007-12-02  Bruno Haible  <bruno@clisp.org>
37817
37818         * modules/strings-tests: New file.
37819         * tests/test-strings.c: New file.
37820
37821         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37822         * lib/strings.in.h: New file.
37823         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37824         * m4/strings_h.m4: New file.
37825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37826         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37827         * modules/strings: New file.
37828         * modules/string (Makefile.am): Update.
37829         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37830         Reported by Karl Berry.
37831
37832 2007-12-01  Eric Blake  <ebb9@byu.net>
37833
37834         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37835         accomodate fix in cygwin 1.5.25.
37836
37837 2007-12-01  Jim Meyering  <meyering@redhat.com>
37838
37839         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37840         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37841         that would inhibit utf8-optimization of a regexp containing line-
37842         or buffer-anchors, e.g., `^', `$'.
37843
37844 2007-11-30  Bruno Haible  <bruno@clisp.org>
37845
37846         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37847         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37848         glthread_recursive_lock_init.
37849         * lib/lock.c (glthread_recursive_lock_init)
37850         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37851         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37852
37853 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37854
37855         New function qset_acl, like set_acl but with syscall semantics.
37856         * lib/acl.h (qset_acl): New decl.
37857         * lib/acl.c (qset_acl): New function.
37858         (set_acl): Use new function.  Use more-consistent diagnostics.
37859
37860 2007-11-28  Jim Meyering  <meyering@redhat.com>
37861
37862         * modules/physmem (License): Change from GPL to LGPLv2+.
37863
37864 2007-11-26  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37867         'long double' type has excess precision.
37868         Reported by Jim Meyering in
37869         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37870
37871 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37872
37873         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37874         Sync from <http://gnu.org/licenses>.
37875         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37876         with license text from same location.
37877         * doc/maintain.texi, doc/standards.texi:  Sync from
37878         <http://savannah.gnu.org/projects/gnustandards>.
37879
37880 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37881         and Jim Meyering  <meyering@redhat.com>
37882
37883         Adjust getdate' grammar to accept a slightly more regular language.
37884         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37885         Before, the former was rejected.
37886         * lib/getdate.y (digits_to_date_time): New function, factored
37887         out of ...
37888         (number): ...here.  Just call digits_to_date_time.
37889         (hybrid): New non-terminal to handle an <unsigned number,
37890         signed relative offset> sequence consistently.
37891
37892 2007-11-18  Jim Meyering  <meyering@redhat.com>
37893
37894         Pull my changes from coreutils:
37895         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37896         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37897         use of $gnulib_tool_option_extras, so that it's separated from the
37898         preceding argument.
37899
37900         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37901         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37902         parent destination directories before copying a file into place.
37903
37904 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37905
37906         bootstrap: work also with 4-argument variant of AC_INIT
37907         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37908
37909 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37910
37911         Port test-getaddrinfo to Solaris.
37912         Problem reported by Bruno Haible in
37913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37914         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37915         explanation of setting 'hints'.
37916         Don't reject an implementation merely because it returns EAI_SERVICE.
37917         (EAI_SERVICE): Define to 0 if not defined.
37918
37919 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37920
37921         The license of gnu-make and posix-shell is now "GPLed build tool".
37922         * modules/gnu-make (License): Likewise.
37923         * modules/posix-shell (License): Likewise.
37924
37925         New module posix-shell, for determining a POSIX shell
37926         or perhaps something that is close enough to a POSIX shell.
37927         * m4/posix-shell.m4: New file.
37928         * modules/posix-shell: New file.
37929
37930         * MODULES.html.sh: Mention new module.
37931
37932         New module gnu-make, for determining whether we're using GNU Make.
37933         * m4/gnu-make.m4: New file.
37934         * modules/gnu-make: New file.
37935         * MODULES.html.sh: Mention new module.
37936
37937 2007-11-14  Jim Meyering  <meyering@redhat.com>
37938
37939         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37940         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37941         use this macro to create a function _definition_.
37942         Remove useless "#undef ARGMATCH_DIE".
37943
37944 2007-11-14  Bruno Haible  <bruno@clisp.org>
37945
37946         * lib/config.charset: Update for OpenBSD 4.1.
37947         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37948
37949 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37950
37951         Document 64-bit #if problems in stdint.texi.
37952         * doc/headers/stdint.texi (stdint.h): Mention problems with
37953         64-bit-#if, and how to work around them.
37954
37955         Don't insist on 'long long int' support in the preprocessor.  It
37956         breaks too many things.  For example, PRIdMAX still uses a 'long
37957         long int' format with the latest Sun compiler, even though
37958         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37959         preprocessor problem.  This causes the latest coreutils to dump
37960         core on Solaris 10 sparc with the Sun C compiler.
37961         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37962         the troublesome expressions at configure-time, not at #if-time.
37963         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37964         preprocessor.
37965         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37966         compile-time C checks, done at 'configure'-time.
37967         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37968         * modules/inttypes (Makefile): Substitute the new symbols that
37969         gl_INTTYPES_H now generates.
37970         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37971
37972 2007-11-12  Bruno Haible  <bruno@clisp.org>
37973
37974         Tests for Unicode character classification functions.
37975
37976         * modules/unictype/bidicategory-byname-tests: New file.
37977         * modules/unictype/bidicategory-name-tests: New file.
37978         * modules/unictype/bidicategory-of-tests: New file.
37979         * modules/unictype/bidicategory-test-tests: New file.
37980         * modules/unictype/block-list-tests: New file.
37981         * modules/unictype/block-of-tests: New file.
37982         * modules/unictype/block-test-tests: New file.
37983         * modules/unictype/category-C-tests: New file.
37984         * modules/unictype/category-Cc-tests: New file.
37985         * modules/unictype/category-Cf-tests: New file.
37986         * modules/unictype/category-Cn-tests: New file.
37987         * modules/unictype/category-Co-tests: New file.
37988         * modules/unictype/category-Cs-tests: New file.
37989         * modules/unictype/category-L-tests: New file.
37990         * modules/unictype/category-Ll-tests: New file.
37991         * modules/unictype/category-Lm-tests: New file.
37992         * modules/unictype/category-Lo-tests: New file.
37993         * modules/unictype/category-Lt-tests: New file.
37994         * modules/unictype/category-Lu-tests: New file.
37995         * modules/unictype/category-M-tests: New file.
37996         * modules/unictype/category-Mc-tests: New file.
37997         * modules/unictype/category-Me-tests: New file.
37998         * modules/unictype/category-Mn-tests: New file.
37999         * modules/unictype/category-N-tests: New file.
38000         * modules/unictype/category-Nd-tests: New file.
38001         * modules/unictype/category-Nl-tests: New file.
38002         * modules/unictype/category-No-tests: New file.
38003         * modules/unictype/category-P-tests: New file.
38004         * modules/unictype/category-Pc-tests: New file.
38005         * modules/unictype/category-Pd-tests: New file.
38006         * modules/unictype/category-Pe-tests: New file.
38007         * modules/unictype/category-Pf-tests: New file.
38008         * modules/unictype/category-Pi-tests: New file.
38009         * modules/unictype/category-Po-tests: New file.
38010         * modules/unictype/category-Ps-tests: New file.
38011         * modules/unictype/category-S-tests: New file.
38012         * modules/unictype/category-Sc-tests: New file.
38013         * modules/unictype/category-Sk-tests: New file.
38014         * modules/unictype/category-Sm-tests: New file.
38015         * modules/unictype/category-So-tests: New file.
38016         * modules/unictype/category-Z-tests: New file.
38017         * modules/unictype/category-Zl-tests: New file.
38018         * modules/unictype/category-Zp-tests: New file.
38019         * modules/unictype/category-Zs-tests: New file.
38020         * modules/unictype/category-and-not-tests: New file.
38021         * modules/unictype/category-and-tests: New file.
38022         * modules/unictype/category-byname-tests: New file.
38023         * modules/unictype/category-name-tests: New file.
38024         * modules/unictype/category-none-tests: New file.
38025         * modules/unictype/category-of-tests: New file.
38026         * modules/unictype/category-or-tests: New file.
38027         * modules/unictype/category-test-withtable-tests: New file.
38028         * modules/unictype/combining-class-tests: New file.
38029         * modules/unictype/ctype-alnum-tests: New file.
38030         * modules/unictype/ctype-alpha-tests: New file.
38031         * modules/unictype/ctype-blank-tests: New file.
38032         * modules/unictype/ctype-cntrl-tests: New file.
38033         * modules/unictype/ctype-digit-tests: New file.
38034         * modules/unictype/ctype-graph-tests: New file.
38035         * modules/unictype/ctype-lower-tests: New file.
38036         * modules/unictype/ctype-print-tests: New file.
38037         * modules/unictype/ctype-punct-tests: New file.
38038         * modules/unictype/ctype-space-tests: New file.
38039         * modules/unictype/ctype-upper-tests: New file.
38040         * modules/unictype/ctype-xdigit-tests: New file.
38041         * modules/unictype/decimal-digit-tests: New file.
38042         * modules/unictype/digit-tests: New file.
38043         * modules/unictype/mirror-tests: New file.
38044         * modules/unictype/numeric-tests: New file.
38045         * modules/unictype/property-alphabetic-tests: New file.
38046         * modules/unictype/property-ascii-hex-digit-tests: New file.
38047         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38048         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38049         * modules/unictype/property-bidi-block-separator-tests: New file.
38050         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38051         * modules/unictype/property-bidi-common-separator-tests: New file.
38052         * modules/unictype/property-bidi-control-tests: New file.
38053         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38054         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38055         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38056         * modules/unictype/property-bidi-european-digit-tests: New file.
38057         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38058         * modules/unictype/property-bidi-left-to-right-tests: New file.
38059         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38060         * modules/unictype/property-bidi-other-neutral-tests: New file.
38061         * modules/unictype/property-bidi-pdf-tests: New file.
38062         * modules/unictype/property-bidi-segment-separator-tests: New file.
38063         * modules/unictype/property-bidi-whitespace-tests: New file.
38064         * modules/unictype/property-byname-tests: New file.
38065         * modules/unictype/property-combining-tests: New file.
38066         * modules/unictype/property-composite-tests: New file.
38067         * modules/unictype/property-currency-symbol-tests: New file.
38068         * modules/unictype/property-dash-tests: New file.
38069         * modules/unictype/property-decimal-digit-tests: New file.
38070         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38071         * modules/unictype/property-deprecated-tests: New file.
38072         * modules/unictype/property-diacritic-tests: New file.
38073         * modules/unictype/property-extender-tests: New file.
38074         * modules/unictype/property-format-control-tests: New file.
38075         * modules/unictype/property-grapheme-base-tests: New file.
38076         * modules/unictype/property-grapheme-extend-tests: New file.
38077         * modules/unictype/property-grapheme-link-tests: New file.
38078         * modules/unictype/property-hex-digit-tests: New file.
38079         * modules/unictype/property-hyphen-tests: New file.
38080         * modules/unictype/property-id-continue-tests: New file.
38081         * modules/unictype/property-id-start-tests: New file.
38082         * modules/unictype/property-ideographic-tests: New file.
38083         * modules/unictype/property-ids-binary-operator-tests: New file.
38084         * modules/unictype/property-ids-trinary-operator-tests: New file.
38085         * modules/unictype/property-ignorable-control-tests: New file.
38086         * modules/unictype/property-iso-control-tests: New file.
38087         * modules/unictype/property-join-control-tests: New file.
38088         * modules/unictype/property-left-of-pair-tests: New file.
38089         * modules/unictype/property-line-separator-tests: New file.
38090         * modules/unictype/property-logical-order-exception-tests: New file.
38091         * modules/unictype/property-lowercase-tests: New file.
38092         * modules/unictype/property-math-tests: New file.
38093         * modules/unictype/property-non-break-tests: New file.
38094         * modules/unictype/property-not-a-character-tests: New file.
38095         * modules/unictype/property-numeric-tests: New file.
38096         * modules/unictype/property-other-alphabetic-tests: New file.
38097         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38098         * modules/unictype/property-other-grapheme-extend-tests: New file.
38099         * modules/unictype/property-other-id-continue-tests: New file.
38100         * modules/unictype/property-other-id-start-tests: New file.
38101         * modules/unictype/property-other-lowercase-tests: New file.
38102         * modules/unictype/property-other-math-tests: New file.
38103         * modules/unictype/property-other-uppercase-tests: New file.
38104         * modules/unictype/property-paired-punctuation-tests: New file.
38105         * modules/unictype/property-paragraph-separator-tests: New file.
38106         * modules/unictype/property-pattern-syntax-tests: New file.
38107         * modules/unictype/property-pattern-white-space-tests: New file.
38108         * modules/unictype/property-private-use-tests: New file.
38109         * modules/unictype/property-punctuation-tests: New file.
38110         * modules/unictype/property-quotation-mark-tests: New file.
38111         * modules/unictype/property-radical-tests: New file.
38112         * modules/unictype/property-sentence-terminal-tests: New file.
38113         * modules/unictype/property-soft-dotted-tests: New file.
38114         * modules/unictype/property-space-tests: New file.
38115         * modules/unictype/property-terminal-punctuation-tests: New file.
38116         * modules/unictype/property-test-tests: New file.
38117         * modules/unictype/property-titlecase-tests: New file.
38118         * modules/unictype/property-unassigned-code-value-tests: New file.
38119         * modules/unictype/property-unified-ideograph-tests: New file.
38120         * modules/unictype/property-uppercase-tests: New file.
38121         * modules/unictype/property-variation-selector-tests: New file.
38122         * modules/unictype/property-white-space-tests: New file.
38123         * modules/unictype/property-xid-continue-tests: New file.
38124         * modules/unictype/property-xid-start-tests: New file.
38125         * modules/unictype/property-zero-width-tests: New file.
38126         * modules/unictype/scripts-tests: New file.
38127         * modules/unictype/syntax-c-ident-tests: New file.
38128         * modules/unictype/syntax-c-whitespace-tests: New file.
38129         * modules/unictype/syntax-java-ident-tests: New file.
38130         * modules/unictype/syntax-java-whitespace-tests: New file.
38131         * tests/unictype/test-bidi_byname.c: New file.
38132         * tests/unictype/test-bidi_name.c: New file.
38133         * tests/unictype/test-bidi_of.c: New file.
38134         * tests/unictype/test-bidi_test.c: New file.
38135         * tests/unictype/test-block_list.c: New file.
38136         * tests/unictype/test-block_of.c: New file.
38137         * tests/unictype/test-block_test.c: New file.
38138         * tests/unictype/test-categ_and.c: New file.
38139         * tests/unictype/test-categ_and_not.c: New file.
38140         * tests/unictype/test-categ_byname.c: New file.
38141         * tests/unictype/test-categ_name.c: New file.
38142         * tests/unictype/test-categ_none.c: New file.
38143         * tests/unictype/test-categ_of.c: New file.
38144         * tests/unictype/test-categ_or.c: New file.
38145         * tests/unictype/test-categ_test_withtable.c: New file.
38146         * tests/unictype/test-combining.c: New file.
38147         * tests/unictype/test-decdigit.c: New file.
38148         * tests/unictype/test-digit.c: New file.
38149         * tests/unictype/test-mirror.c: New file.
38150         * tests/unictype/test-numeric.c: New file.
38151         * tests/unictype/test-pr_byname.c: New file.
38152         * tests/unictype/test-pr_test.c: New file.
38153         * tests/unictype/test-predicate-part1.h: New file.
38154         * tests/unictype/test-predicate-part2.h: New file.
38155         * tests/unictype/test-scripts.c: New file.
38156         * tests/unictype/test-sy_c_ident.c: New file.
38157         * tests/unictype/test-sy_java_ident.c: New file.
38158
38159         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38160         for Unicode 5.0.0.
38161         * tests/unictype/test-categ_Cc.c: Likewise.
38162         * tests/unictype/test-categ_Cf.c: Likewise.
38163         * tests/unictype/test-categ_Cn.c: Likewise.
38164         * tests/unictype/test-categ_Co.c: Likewise.
38165         * tests/unictype/test-categ_Cs.c: Likewise.
38166         * tests/unictype/test-categ_L.c: Likewise.
38167         * tests/unictype/test-categ_Ll.c: Likewise.
38168         * tests/unictype/test-categ_Lm.c: Likewise.
38169         * tests/unictype/test-categ_Lo.c: Likewise.
38170         * tests/unictype/test-categ_Lt.c: Likewise.
38171         * tests/unictype/test-categ_Lu.c: Likewise.
38172         * tests/unictype/test-categ_M.c: Likewise.
38173         * tests/unictype/test-categ_Mc.c: Likewise.
38174         * tests/unictype/test-categ_Me.c: Likewise.
38175         * tests/unictype/test-categ_Mn.c: Likewise.
38176         * tests/unictype/test-categ_N.c: Likewise.
38177         * tests/unictype/test-categ_Nd.c: Likewise.
38178         * tests/unictype/test-categ_Nl.c: Likewise.
38179         * tests/unictype/test-categ_No.c: Likewise.
38180         * tests/unictype/test-categ_P.c: Likewise.
38181         * tests/unictype/test-categ_Pc.c: Likewise.
38182         * tests/unictype/test-categ_Pd.c: Likewise.
38183         * tests/unictype/test-categ_Pe.c: Likewise.
38184         * tests/unictype/test-categ_Pf.c: Likewise.
38185         * tests/unictype/test-categ_Pi.c: Likewise.
38186         * tests/unictype/test-categ_Po.c: Likewise.
38187         * tests/unictype/test-categ_Ps.c: Likewise.
38188         * tests/unictype/test-categ_S.c: Likewise.
38189         * tests/unictype/test-categ_Sc.c: Likewise.
38190         * tests/unictype/test-categ_Sk.c: Likewise.
38191         * tests/unictype/test-categ_Sm.c: Likewise.
38192         * tests/unictype/test-categ_So.c: Likewise.
38193         * tests/unictype/test-categ_Z.c: Likewise.
38194         * tests/unictype/test-categ_Zl.c: Likewise.
38195         * tests/unictype/test-categ_Zp.c: Likewise.
38196         * tests/unictype/test-categ_Zs.c: Likewise.
38197         * tests/unictype/test-ctype_alnum.c: Likewise.
38198         * tests/unictype/test-ctype_alpha.c: Likewise.
38199         * tests/unictype/test-ctype_blank.c: Likewise.
38200         * tests/unictype/test-ctype_cntrl.c: Likewise.
38201         * tests/unictype/test-ctype_digit.c: Likewise.
38202         * tests/unictype/test-ctype_graph.c: Likewise.
38203         * tests/unictype/test-ctype_lower.c: Likewise.
38204         * tests/unictype/test-ctype_print.c: Likewise.
38205         * tests/unictype/test-ctype_punct.c: Likewise.
38206         * tests/unictype/test-ctype_space.c: Likewise.
38207         * tests/unictype/test-ctype_upper.c: Likewise.
38208         * tests/unictype/test-ctype_xdigit.c: Likewise.
38209         * tests/unictype/test-decdigit.h: Likewise.
38210         * tests/unictype/test-digit.h: Likewise.
38211         * tests/unictype/test-numeric.h: Likewise.
38212         * tests/unictype/test-pr_alphabetic.c: Likewise.
38213         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38214         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38215         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38216         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38217         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38218         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38219         * tests/unictype/test-pr_bidi_control.c: Likewise.
38220         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38221         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38222         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38223         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38224         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38225         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38226         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38227         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38228         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38229         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38230         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38231         * tests/unictype/test-pr_combining.c: Likewise.
38232         * tests/unictype/test-pr_composite.c: Likewise.
38233         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38234         * tests/unictype/test-pr_dash.c: Likewise.
38235         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38236         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38237         * tests/unictype/test-pr_deprecated.c: Likewise.
38238         * tests/unictype/test-pr_diacritic.c: Likewise.
38239         * tests/unictype/test-pr_extender.c: Likewise.
38240         * tests/unictype/test-pr_format_control.c: Likewise.
38241         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38242         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38243         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38244         * tests/unictype/test-pr_hex_digit.c: Likewise.
38245         * tests/unictype/test-pr_hyphen.c: Likewise.
38246         * tests/unictype/test-pr_id_continue.c: Likewise.
38247         * tests/unictype/test-pr_id_start.c: Likewise.
38248         * tests/unictype/test-pr_ideographic.c: Likewise.
38249         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38250         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38251         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38252         * tests/unictype/test-pr_iso_control.c: Likewise.
38253         * tests/unictype/test-pr_join_control.c: Likewise.
38254         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38255         * tests/unictype/test-pr_line_separator.c: Likewise.
38256         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38257         * tests/unictype/test-pr_lowercase.c: Likewise.
38258         * tests/unictype/test-pr_math.c: Likewise.
38259         * tests/unictype/test-pr_non_break.c: Likewise.
38260         * tests/unictype/test-pr_not_a_character.c: Likewise.
38261         * tests/unictype/test-pr_numeric.c: Likewise.
38262         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38263         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38264         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38265         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38266         * tests/unictype/test-pr_other_id_start.c: Likewise.
38267         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38268         * tests/unictype/test-pr_other_math.c: Likewise.
38269         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38270         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38271         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38272         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38273         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38274         * tests/unictype/test-pr_private_use.c: Likewise.
38275         * tests/unictype/test-pr_punctuation.c: Likewise.
38276         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38277         * tests/unictype/test-pr_radical.c: Likewise.
38278         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38279         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38280         * tests/unictype/test-pr_space.c: Likewise.
38281         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38282         * tests/unictype/test-pr_titlecase.c: Likewise.
38283         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38284         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38285         * tests/unictype/test-pr_uppercase.c: Likewise.
38286         * tests/unictype/test-pr_variation_selector.c: Likewise.
38287         * tests/unictype/test-pr_white_space.c: Likewise.
38288         * tests/unictype/test-pr_xid_continue.c: Likewise.
38289         * tests/unictype/test-pr_xid_start.c: Likewise.
38290         * tests/unictype/test-pr_zero_width.c: Likewise.
38291         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38292         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38293
38294 2007-11-12  Bruno Haible  <bruno@clisp.org>
38295
38296         Unicode character classification functions.
38297         * lib/unictype.h: New file.
38298         * modules/unictype/base: New file.
38299         * modules/unictype/category-L: New file.
38300         * modules/unictype/category-Lu: New file.
38301         * modules/unictype/category-Ll: New file.
38302         * modules/unictype/category-Lt: New file.
38303         * modules/unictype/category-Lm: New file.
38304         * modules/unictype/category-Lo: New file.
38305         * modules/unictype/category-M: New file.
38306         * modules/unictype/category-Mn: New file.
38307         * modules/unictype/category-Mc: New file.
38308         * modules/unictype/category-Me: New file.
38309         * modules/unictype/category-N: New file.
38310         * modules/unictype/category-Nd: New file.
38311         * modules/unictype/category-Nl: New file.
38312         * modules/unictype/category-No: New file.
38313         * modules/unictype/category-P: New file.
38314         * modules/unictype/category-Pc: New file.
38315         * modules/unictype/category-Pd: New file.
38316         * modules/unictype/category-Ps: New file.
38317         * modules/unictype/category-Pe: New file.
38318         * modules/unictype/category-Pi: New file.
38319         * modules/unictype/category-Pf: New file.
38320         * modules/unictype/category-Po: New file.
38321         * modules/unictype/category-S: New file.
38322         * modules/unictype/category-Sm: New file.
38323         * modules/unictype/category-Sc: New file.
38324         * modules/unictype/category-Sk: New file.
38325         * modules/unictype/category-So: New file.
38326         * modules/unictype/category-Z: New file.
38327         * modules/unictype/category-Zs: New file.
38328         * modules/unictype/category-Zl: New file.
38329         * modules/unictype/category-Zp: New file.
38330         * modules/unictype/category-C: New file.
38331         * modules/unictype/category-Cc: New file.
38332         * modules/unictype/category-Cf: New file.
38333         * modules/unictype/category-Cs: New file.
38334         * modules/unictype/category-Co: New file.
38335         * modules/unictype/category-Cn: New file.
38336         * modules/unictype/category-or: New file.
38337         * modules/unictype/category-of: New file.
38338         * modules/unictype/category-test: New file.
38339         * modules/unictype/category-test-withtable: New file.
38340         * modules/unictype/category-byname: New file.
38341         * modules/unictype/category-none: New file.
38342         * modules/unictype/category-and: New file.
38343         * modules/unictype/category-and-not: New file.
38344         * modules/unictype/category-name: New file.
38345         * modules/unictype/combining-class: New file.
38346         * modules/unictype/category-all: New file.
38347         * modules/unictype/bidicategory-all: New file.
38348         * modules/unictype/bidicategory-byname: New file.
38349         * modules/unictype/bidicategory-name: New file.
38350         * modules/unictype/bidicategory-of: New file.
38351         * modules/unictype/bidicategory-test: New file.
38352         * modules/unictype/decimal-digit: New file.
38353         * modules/unictype/digit: New file.
38354         * modules/unictype/numeric: New file.
38355         * modules/unictype/mirror: New file.
38356         * modules/unictype/property-white-space: New file.
38357         * modules/unictype/property-alphabetic: New file.
38358         * modules/unictype/property-other-alphabetic: New file.
38359         * modules/unictype/property-not-a-character: New file.
38360         * modules/unictype/property-default-ignorable-code-point: New file.
38361         * modules/unictype/property-other-default-ignorable-code-point: New
38362         file.
38363         * modules/unictype/property-deprecated: New file.
38364         * modules/unictype/property-logical-order-exception: New file.
38365         * modules/unictype/property-variation-selector: New file.
38366         * modules/unictype/property-private-use: New file.
38367         * modules/unictype/property-unassigned-code-value: New file.
38368         * modules/unictype/property-uppercase: New file.
38369         * modules/unictype/property-other-uppercase: New file.
38370         * modules/unictype/property-lowercase: New file.
38371         * modules/unictype/property-other-lowercase: New file.
38372         * modules/unictype/property-titlecase: New file.
38373         * modules/unictype/property-soft-dotted: New file.
38374         * modules/unictype/property-id-start: New file.
38375         * modules/unictype/property-other-id-start: New file.
38376         * modules/unictype/property-id-continue: New file.
38377         * modules/unictype/property-other-id-continue: New file.
38378         * modules/unictype/property-xid-start: New file.
38379         * modules/unictype/property-xid-continue: New file.
38380         * modules/unictype/property-pattern-white-space: New file.
38381         * modules/unictype/property-pattern-syntax: New file.
38382         * modules/unictype/property-join-control: New file.
38383         * modules/unictype/property-grapheme-base: New file.
38384         * modules/unictype/property-grapheme-extend: New file.
38385         * modules/unictype/property-other-grapheme-extend: New file.
38386         * modules/unictype/property-grapheme-link: New file.
38387         * modules/unictype/property-bidi-control: New file.
38388         * modules/unictype/property-bidi-left-to-right: New file.
38389         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38390         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38391         * modules/unictype/property-bidi-european-digit: New file.
38392         * modules/unictype/property-bidi-eur-num-separator: New file.
38393         * modules/unictype/property-bidi-eur-num-terminator: New file.
38394         * modules/unictype/property-bidi-arabic-digit: New file.
38395         * modules/unictype/property-bidi-common-separator: New file.
38396         * modules/unictype/property-bidi-block-separator: New file.
38397         * modules/unictype/property-bidi-segment-separator: New file.
38398         * modules/unictype/property-bidi-whitespace: New file.
38399         * modules/unictype/property-bidi-non-spacing-mark: New file.
38400         * modules/unictype/property-bidi-boundary-neutral: New file.
38401         * modules/unictype/property-bidi-pdf: New file.
38402         * modules/unictype/property-bidi-embedding-or-override: New file.
38403         * modules/unictype/property-bidi-other-neutral: New file.
38404         * modules/unictype/property-hex-digit: New file.
38405         * modules/unictype/property-ascii-hex-digit: New file.
38406         * modules/unictype/property-ideographic: New file.
38407         * modules/unictype/property-unified-ideograph: New file.
38408         * modules/unictype/property-radical: New file.
38409         * modules/unictype/property-ids-binary-operator: New file.
38410         * modules/unictype/property-ids-trinary-operator: New file.
38411         * modules/unictype/property-zero-width: New file.
38412         * modules/unictype/property-space: New file.
38413         * modules/unictype/property-non-break: New file.
38414         * modules/unictype/property-iso-control: New file.
38415         * modules/unictype/property-format-control: New file.
38416         * modules/unictype/property-dash: New file.
38417         * modules/unictype/property-hyphen: New file.
38418         * modules/unictype/property-punctuation: New file.
38419         * modules/unictype/property-line-separator: New file.
38420         * modules/unictype/property-paragraph-separator: New file.
38421         * modules/unictype/property-quotation-mark: New file.
38422         * modules/unictype/property-sentence-terminal: New file.
38423         * modules/unictype/property-terminal-punctuation: New file.
38424         * modules/unictype/property-currency-symbol: New file.
38425         * modules/unictype/property-math: New file.
38426         * modules/unictype/property-other-math: New file.
38427         * modules/unictype/property-paired-punctuation: New file.
38428         * modules/unictype/property-left-of-pair: New file.
38429         * modules/unictype/property-combining: New file.
38430         * modules/unictype/property-composite: New file.
38431         * modules/unictype/property-decimal-digit: New file.
38432         * modules/unictype/property-numeric: New file.
38433         * modules/unictype/property-diacritic: New file.
38434         * modules/unictype/property-extender: New file.
38435         * modules/unictype/property-ignorable-control: New file.
38436         * modules/unictype/property-test: New file.
38437         * modules/unictype/property-byname: New file.
38438         * modules/unictype/property-all: New file.
38439         * modules/unictype/scripts: New file.
38440         * modules/unictype/scripts-all: New file.
38441         * modules/unictype/block-of: New file.
38442         * modules/unictype/block-test: New file.
38443         * modules/unictype/block-list: New file.
38444         * modules/unictype/block-all: New file.
38445         * modules/unictype/syntax-c-whitespace: New file.
38446         * modules/unictype/syntax-java-whitespace: New file.
38447         * modules/unictype/syntax-c-ident: New file.
38448         * modules/unictype/syntax-java-ident: New file.
38449         * modules/unictype/ctype-alnum: New file.
38450         * modules/unictype/ctype-alpha: New file.
38451         * modules/unictype/ctype-cntrl: New file.
38452         * modules/unictype/ctype-digit: New file.
38453         * modules/unictype/ctype-graph: New file.
38454         * modules/unictype/ctype-lower: New file.
38455         * modules/unictype/ctype-print: New file.
38456         * modules/unictype/ctype-punct: New file.
38457         * modules/unictype/ctype-space: New file.
38458         * modules/unictype/ctype-upper: New file.
38459         * modules/unictype/ctype-xdigit: New file.
38460         * modules/unictype/ctype-blank: New file.
38461         * lib/unictype/bidi_byname.c: New file.
38462         * lib/unictype/bidi_name.c: New file.
38463         * lib/unictype/bidi_of.c: New file.
38464         * lib/unictype/bidi_test.c: New file.
38465         * lib/unictype/bitmap.h: New file.
38466         * lib/unictype/block_test.c: New file.
38467         * lib/unictype/blocks.c: New file.
38468         * lib/unictype/categ_C.c: New file.
38469         * lib/unictype/categ_Cc.c: New file.
38470         * lib/unictype/categ_Cf.c: New file.
38471         * lib/unictype/categ_Cn.c: New file.
38472         * lib/unictype/categ_Co.c: New file.
38473         * lib/unictype/categ_Cs.c: New file.
38474         * lib/unictype/categ_L.c: New file.
38475         * lib/unictype/categ_Ll.c: New file.
38476         * lib/unictype/categ_Lm.c: New file.
38477         * lib/unictype/categ_Lo.c: New file.
38478         * lib/unictype/categ_Lt.c: New file.
38479         * lib/unictype/categ_Lu.c: New file.
38480         * lib/unictype/categ_M.c: New file.
38481         * lib/unictype/categ_Mc.c: New file.
38482         * lib/unictype/categ_Me.c: New file.
38483         * lib/unictype/categ_Mn.c: New file.
38484         * lib/unictype/categ_N.c: New file.
38485         * lib/unictype/categ_Nd.c: New file.
38486         * lib/unictype/categ_Nl.c: New file.
38487         * lib/unictype/categ_No.c: New file.
38488         * lib/unictype/categ_P.c: New file.
38489         * lib/unictype/categ_Pc.c: New file.
38490         * lib/unictype/categ_Pd.c: New file.
38491         * lib/unictype/categ_Pe.c: New file.
38492         * lib/unictype/categ_Pf.c: New file.
38493         * lib/unictype/categ_Pi.c: New file.
38494         * lib/unictype/categ_Po.c: New file.
38495         * lib/unictype/categ_Ps.c: New file.
38496         * lib/unictype/categ_S.c: New file.
38497         * lib/unictype/categ_Sc.c: New file.
38498         * lib/unictype/categ_Sk.c: New file.
38499         * lib/unictype/categ_Sm.c: New file.
38500         * lib/unictype/categ_So.c: New file.
38501         * lib/unictype/categ_Z.c: New file.
38502         * lib/unictype/categ_Zl.c: New file.
38503         * lib/unictype/categ_Zp.c: New file.
38504         * lib/unictype/categ_Zs.c: New file.
38505         * lib/unictype/categ_and.c: New file.
38506         * lib/unictype/categ_and_not.c: New file.
38507         * lib/unictype/categ_byname.c: New file.
38508         * lib/unictype/categ_name.c: New file.
38509         * lib/unictype/categ_none.c: New file.
38510         * lib/unictype/categ_of.c: New file.
38511         * lib/unictype/categ_or.c: New file.
38512         * lib/unictype/categ_test.c: New file.
38513         * lib/unictype/combining.c: New file.
38514         * lib/unictype/ctype_alnum.c: New file.
38515         * lib/unictype/ctype_alpha.c: New file.
38516         * lib/unictype/ctype_blank.c: New file.
38517         * lib/unictype/ctype_cntrl.c: New file.
38518         * lib/unictype/ctype_digit.c: New file.
38519         * lib/unictype/ctype_graph.c: New file.
38520         * lib/unictype/ctype_lower.c: New file.
38521         * lib/unictype/ctype_print.c: New file.
38522         * lib/unictype/ctype_punct.c: New file.
38523         * lib/unictype/ctype_space.c: New file.
38524         * lib/unictype/ctype_upper.c: New file.
38525         * lib/unictype/ctype_xdigit.c: New file.
38526         * lib/unictype/decdigit.c: New file.
38527         * lib/unictype/digit.c: New file.
38528         * lib/unictype/identsyntaxmap.h: New file.
38529         * lib/unictype/mirror.c: New file.
38530         * lib/unictype/numeric.c: New file.
38531         * lib/unictype/pr_alphabetic.c: New file.
38532         * lib/unictype/pr_ascii_hex_digit.c: New file.
38533         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38534         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38535         * lib/unictype/pr_bidi_block_separator.c: New file.
38536         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38537         * lib/unictype/pr_bidi_common_separator.c: New file.
38538         * lib/unictype/pr_bidi_control.c: New file.
38539         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38540         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38541         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38542         * lib/unictype/pr_bidi_european_digit.c: New file.
38543         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38544         * lib/unictype/pr_bidi_left_to_right.c: New file.
38545         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38546         * lib/unictype/pr_bidi_other_neutral.c: New file.
38547         * lib/unictype/pr_bidi_pdf.c: New file.
38548         * lib/unictype/pr_bidi_segment_separator.c: New file.
38549         * lib/unictype/pr_bidi_whitespace.c: New file.
38550         * lib/unictype/pr_byname.c: New file.
38551         * lib/unictype/pr_byname.gperf: New file.
38552         * lib/unictype/pr_combining.c: New file.
38553         * lib/unictype/pr_composite.c: New file.
38554         * lib/unictype/pr_currency_symbol.c: New file.
38555         * lib/unictype/pr_dash.c: New file.
38556         * lib/unictype/pr_decimal_digit.c: New file.
38557         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38558         * lib/unictype/pr_deprecated.c: New file.
38559         * lib/unictype/pr_diacritic.c: New file.
38560         * lib/unictype/pr_extender.c: New file.
38561         * lib/unictype/pr_format_control.c: New file.
38562         * lib/unictype/pr_grapheme_base.c: New file.
38563         * lib/unictype/pr_grapheme_extend.c: New file.
38564         * lib/unictype/pr_grapheme_link.c: New file.
38565         * lib/unictype/pr_hex_digit.c: New file.
38566         * lib/unictype/pr_hyphen.c: New file.
38567         * lib/unictype/pr_id_continue.c: New file.
38568         * lib/unictype/pr_id_start.c: New file.
38569         * lib/unictype/pr_ideographic.c: New file.
38570         * lib/unictype/pr_ids_binary_operator.c: New file.
38571         * lib/unictype/pr_ids_trinary_operator.c: New file.
38572         * lib/unictype/pr_ignorable_control.c: New file.
38573         * lib/unictype/pr_iso_control.c: New file.
38574         * lib/unictype/pr_join_control.c: New file.
38575         * lib/unictype/pr_left_of_pair.c: New file.
38576         * lib/unictype/pr_line_separator.c: New file.
38577         * lib/unictype/pr_logical_order_exception.c: New file.
38578         * lib/unictype/pr_lowercase.c: New file.
38579         * lib/unictype/pr_math.c: New file.
38580         * lib/unictype/pr_non_break.c: New file.
38581         * lib/unictype/pr_not_a_character.c: New file.
38582         * lib/unictype/pr_numeric.c: New file.
38583         * lib/unictype/pr_other_alphabetic.c: New file.
38584         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38585         * lib/unictype/pr_other_grapheme_extend.c: New file.
38586         * lib/unictype/pr_other_id_continue.c: New file.
38587         * lib/unictype/pr_other_id_start.c: New file.
38588         * lib/unictype/pr_other_lowercase.c: New file.
38589         * lib/unictype/pr_other_math.c: New file.
38590         * lib/unictype/pr_other_uppercase.c: New file.
38591         * lib/unictype/pr_paired_punctuation.c: New file.
38592         * lib/unictype/pr_paragraph_separator.c: New file.
38593         * lib/unictype/pr_pattern_syntax.c: New file.
38594         * lib/unictype/pr_pattern_white_space.c: New file.
38595         * lib/unictype/pr_private_use.c: New file.
38596         * lib/unictype/pr_punctuation.c: New file.
38597         * lib/unictype/pr_quotation_mark.c: New file.
38598         * lib/unictype/pr_radical.c: New file.
38599         * lib/unictype/pr_sentence_terminal.c: New file.
38600         * lib/unictype/pr_soft_dotted.c: New file.
38601         * lib/unictype/pr_space.c: New file.
38602         * lib/unictype/pr_terminal_punctuation.c: New file.
38603         * lib/unictype/pr_test.c: New file.
38604         * lib/unictype/pr_titlecase.c: New file.
38605         * lib/unictype/pr_unassigned_code_value.c: New file.
38606         * lib/unictype/pr_unified_ideograph.c: New file.
38607         * lib/unictype/pr_uppercase.c: New file.
38608         * lib/unictype/pr_variation_selector.c: New file.
38609         * lib/unictype/pr_white_space.c: New file.
38610         * lib/unictype/pr_xid_continue.c: New file.
38611         * lib/unictype/pr_xid_start.c: New file.
38612         * lib/unictype/pr_zero_width.c: New file.
38613         * lib/unictype/scripts.c: New file.
38614         * lib/unictype/sy_c_ident.c: New file.
38615         * lib/unictype/sy_c_whitespace.c: New file.
38616         * lib/unictype/sy_java_ident.c: New file.
38617         * lib/unictype/sy_java_whitespace.c: New file.
38618
38619         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38620         Unicode 5.0.0.
38621         * lib/unictype/blocks.h: Likewise.
38622         * lib/unictype/categ_C.h: Likewise.
38623         * lib/unictype/categ_Cc.h: Likewise.
38624         * lib/unictype/categ_Cf.h: Likewise.
38625         * lib/unictype/categ_Cn.h: Likewise.
38626         * lib/unictype/categ_Co.h: Likewise.
38627         * lib/unictype/categ_Cs.h: Likewise.
38628         * lib/unictype/categ_L.h: Likewise.
38629         * lib/unictype/categ_Ll.h: Likewise.
38630         * lib/unictype/categ_Lm.h: Likewise.
38631         * lib/unictype/categ_Lo.h: Likewise.
38632         * lib/unictype/categ_Lt.h: Likewise.
38633         * lib/unictype/categ_Lu.h: Likewise.
38634         * lib/unictype/categ_M.h: Likewise.
38635         * lib/unictype/categ_Mc.h: Likewise.
38636         * lib/unictype/categ_Me.h: Likewise.
38637         * lib/unictype/categ_Mn.h: Likewise.
38638         * lib/unictype/categ_N.h: Likewise.
38639         * lib/unictype/categ_Nd.h: Likewise.
38640         * lib/unictype/categ_Nl.h: Likewise.
38641         * lib/unictype/categ_No.h: Likewise.
38642         * lib/unictype/categ_P.h: Likewise.
38643         * lib/unictype/categ_Pc.h: Likewise.
38644         * lib/unictype/categ_Pd.h: Likewise.
38645         * lib/unictype/categ_Pe.h: Likewise.
38646         * lib/unictype/categ_Pf.h: Likewise.
38647         * lib/unictype/categ_Pi.h: Likewise.
38648         * lib/unictype/categ_Po.h: Likewise.
38649         * lib/unictype/categ_Ps.h: Likewise.
38650         * lib/unictype/categ_S.h: Likewise.
38651         * lib/unictype/categ_Sc.h: Likewise.
38652         * lib/unictype/categ_Sk.h: Likewise.
38653         * lib/unictype/categ_Sm.h: Likewise.
38654         * lib/unictype/categ_So.h: Likewise.
38655         * lib/unictype/categ_Z.h: Likewise.
38656         * lib/unictype/categ_Zl.h: Likewise.
38657         * lib/unictype/categ_Zp.h: Likewise.
38658         * lib/unictype/categ_Zs.h: Likewise.
38659         * lib/unictype/categ_of.h: Likewise.
38660         * lib/unictype/combining.h: Likewise.
38661         * lib/unictype/ctype_alnum.h: Likewise.
38662         * lib/unictype/ctype_alpha.h: Likewise.
38663         * lib/unictype/ctype_blank.h: Likewise.
38664         * lib/unictype/ctype_cntrl.h: Likewise.
38665         * lib/unictype/ctype_digit.h: Likewise.
38666         * lib/unictype/ctype_graph.h: Likewise.
38667         * lib/unictype/ctype_lower.h: Likewise.
38668         * lib/unictype/ctype_print.h: Likewise.
38669         * lib/unictype/ctype_punct.h: Likewise.
38670         * lib/unictype/ctype_space.h: Likewise.
38671         * lib/unictype/ctype_upper.h: Likewise.
38672         * lib/unictype/ctype_xdigit.h: Likewise.
38673         * lib/unictype/decdigit.h: Likewise.
38674         * lib/unictype/digit.h: Likewise.
38675         * lib/unictype/mirror.h: Likewise.
38676         * lib/unictype/numeric.h: Likewise.
38677         * lib/unictype/pr_alphabetic.h: Likewise.
38678         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38679         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38680         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38681         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38682         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38683         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38684         * lib/unictype/pr_bidi_control.h: Likewise.
38685         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38686         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38687         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38688         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38689         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38690         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38691         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38692         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38693         * lib/unictype/pr_bidi_pdf.h: Likewise.
38694         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38695         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38696         * lib/unictype/pr_combining.h: Likewise.
38697         * lib/unictype/pr_composite.h: Likewise.
38698         * lib/unictype/pr_currency_symbol.h: Likewise.
38699         * lib/unictype/pr_dash.h: Likewise.
38700         * lib/unictype/pr_decimal_digit.h: Likewise.
38701         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38702         * lib/unictype/pr_deprecated.h: Likewise.
38703         * lib/unictype/pr_diacritic.h: Likewise.
38704         * lib/unictype/pr_extender.h: Likewise.
38705         * lib/unictype/pr_format_control.h: Likewise.
38706         * lib/unictype/pr_grapheme_base.h: Likewise.
38707         * lib/unictype/pr_grapheme_extend.h: Likewise.
38708         * lib/unictype/pr_grapheme_link.h: Likewise.
38709         * lib/unictype/pr_hex_digit.h: Likewise.
38710         * lib/unictype/pr_hyphen.h: Likewise.
38711         * lib/unictype/pr_id_continue.h: Likewise.
38712         * lib/unictype/pr_id_start.h: Likewise.
38713         * lib/unictype/pr_ideographic.h: Likewise.
38714         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38715         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38716         * lib/unictype/pr_ignorable_control.h: Likewise.
38717         * lib/unictype/pr_iso_control.h: Likewise.
38718         * lib/unictype/pr_join_control.h: Likewise.
38719         * lib/unictype/pr_left_of_pair.h: Likewise.
38720         * lib/unictype/pr_line_separator.h: Likewise.
38721         * lib/unictype/pr_logical_order_exception.h: Likewise.
38722         * lib/unictype/pr_lowercase.h: Likewise.
38723         * lib/unictype/pr_math.h: Likewise.
38724         * lib/unictype/pr_non_break.h: Likewise.
38725         * lib/unictype/pr_not_a_character.h: Likewise.
38726         * lib/unictype/pr_numeric.h: Likewise.
38727         * lib/unictype/pr_other_alphabetic.h: Likewise.
38728         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38729         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38730         * lib/unictype/pr_other_id_continue.h: Likewise.
38731         * lib/unictype/pr_other_id_start.h: Likewise.
38732         * lib/unictype/pr_other_lowercase.h: Likewise.
38733         * lib/unictype/pr_other_math.h: Likewise.
38734         * lib/unictype/pr_other_uppercase.h: Likewise.
38735         * lib/unictype/pr_paired_punctuation.h: Likewise.
38736         * lib/unictype/pr_paragraph_separator.h: Likewise.
38737         * lib/unictype/pr_pattern_syntax.h: Likewise.
38738         * lib/unictype/pr_pattern_white_space.h: Likewise.
38739         * lib/unictype/pr_private_use.h: Likewise.
38740         * lib/unictype/pr_punctuation.h: Likewise.
38741         * lib/unictype/pr_quotation_mark.h: Likewise.
38742         * lib/unictype/pr_radical.h: Likewise.
38743         * lib/unictype/pr_sentence_terminal.h: Likewise.
38744         * lib/unictype/pr_soft_dotted.h: Likewise.
38745         * lib/unictype/pr_space.h: Likewise.
38746         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38747         * lib/unictype/pr_titlecase.h: Likewise.
38748         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38749         * lib/unictype/pr_unified_ideograph.h: Likewise.
38750         * lib/unictype/pr_uppercase.h: Likewise.
38751         * lib/unictype/pr_variation_selector.h: Likewise.
38752         * lib/unictype/pr_white_space.h: Likewise.
38753         * lib/unictype/pr_xid_continue.h: Likewise.
38754         * lib/unictype/pr_xid_start.h: Likewise.
38755         * lib/unictype/pr_zero_width.h: Likewise.
38756         * lib/unictype/scripts.h: Likewise.
38757         * lib/unictype/scripts_byname.gperf: Likewise.
38758         * lib/unictype/sy_c_ident.h: Likewise.
38759         * lib/unictype/sy_c_whitespace.h: Likewise.
38760         * lib/unictype/sy_java_ident.h: Likewise.
38761         * lib/unictype/sy_java_whitespace.h: Likewise.
38762
38763         * lib/unictype/Makefile: New file.
38764         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38765         glibc.
38766         * lib/unictype/3level.h: New file, copied from glibc.
38767         * lib/unictype/3levelbit.h: New file.
38768
38769 2007-11-11  Bruno Haible  <bruno@clisp.org>
38770
38771         * modules/gperf: New file.
38772         * modules/iconv_open (Depends-on): Add it.
38773         (Makefile.am): Remove the GPERF definition.
38774
38775 2007-11-11  Bruno Haible  <bruno@clisp.org>
38776
38777         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38778         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38779
38780 2007-11-11  Bruno Haible  <bruno@clisp.org>
38781
38782         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38783         (usage): Remove function.
38784
38785 2007-11-11  Bruno Haible  <bruno@clisp.org>
38786
38787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38788         gl_FUNC_CEILF_LIBS.
38789         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38790         gl_FUNC_CEIL_LIBS.
38791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38792         gl_FUNC_CEILL_LIBS.
38793         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38794         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38795         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38796
38797 2007-11-11  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38800         roundf were declared but do not exist on functions.
38801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38802         roundl were declared but do not exist on functions.
38803         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38804         HAVE_FLOORL_AND_CEILL, respectively.
38805         Needed for Sun C on Solaris 10.
38806
38807 2007-11-11  Bruno Haible  <bruno@clisp.org>
38808
38809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38810         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38811         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38812         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38814         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38815         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38816         HAVE_DECL_ROUNDF.
38817         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38818         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38820         of HAVE_DECL_ROUND*.
38821         * modules/math (Makefile.am): Update.
38822
38823 2007-11-10  Bruno Haible  <bruno@clisp.org>
38824
38825         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38826         ptrdiff_t as m4/intl.m4.
38827
38828 2007-11-10  Jim Meyering  <meyering@redhat.com>
38829
38830         Avoid link failure for the argmatch test.
38831         * tests/test-argmatch.c (usage): Define function to avoid a link
38832         failure: argmatch_die requires a usage function.
38833
38834 2007-11-09  Bruno Haible  <bruno@clisp.org>
38835
38836         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38837         * doc/functions/vsnprintf.texi: Likewise.
38838         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38839         with a size argument < 2.
38840
38841 2007-11-09  Bruno Haible  <bruno@clisp.org>
38842
38843         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38844         buffer. Fixes an inefficiency introduced on 2007-11-03.
38845
38846 2007-11-09  Bruno Haible  <bruno@clisp.org>
38847
38848         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38849         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38850
38851 2007-11-08  Jim Meyering  <meyering@redhat.com>
38852
38853         Change cache variable name prefix "jm_" to "gl_" everywhere.
38854         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38855         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38856         * m4/uptime.m4: s/gl_/jm_/
38857
38858 2007-11-07  Bruno Haible  <bruno@clisp.org>
38859
38860         Update to GNU gettext 0.17.
38861         * m4/intl.m4: Update to GNU gettext 0.17.
38862         * m4/po.m4: Likewise.
38863         * modules/gettext (Files): Remove m4/ulonglong.m4.
38864         (configure.ac): Require gettext infrastructure from version 0.17.
38865
38866 2007-11-06  Bruno Haible  <bruno@clisp.org>
38867
38868         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38869         symbolic values are not defined in a public header.
38870         * lib/freadable.c (freadable) [QNX]: Likewise.
38871         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38872         * lib/freading.c (freading) [QNX]: Likewise.
38873         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38874         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38875         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38876         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38877         Reported by Alain Magloire.
38878
38879         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38880
38881 2007-11-05  Bruno Haible  <bruno@clisp.org>
38882
38883         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38884         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38885         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38886         Reported by Eric Blake.
38887
38888 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38889             Bruno Haible  <bruno@clisp.org>
38890
38891         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38892         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38893         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38894         (malloc): Undefine also before including <stdlib.h>.
38895         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38896         Needed on OSF/1 4.0.
38897
38898 2007-11-05  Jim Meyering  <meyering@redhat.com>
38899
38900         git-version-gen: sync from coreutils.
38901         * build-aux/git-version-gen: Add comments.
38902         Change the first '-' to '.' in the snapshot version string,
38903         e.g., 6.9-377-08144 -> 6.9.377-08144
38904         Remove first parameter.
38905         Don't declare a version "-dirty" merely because a time
38906         stamp has changed.
38907
38908 2007-11-04  Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/lock.h: Protect all macro definitions containing an 'if'
38911         statement through a "do { ... } while (0)".
38912         * lib/tls.h: Likewise.
38913
38914 2007-11-04  Bruno Haible  <bruno@clisp.org>
38915
38916         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38917
38918 2007-11-04  Bruno Haible  <bruno@clisp.org>
38919
38920         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38921         * modules/fprintf-posix (Depends-on): Add nocrash.
38922         * modules/snprintf-posix (Depends-on): Likewise.
38923         * modules/sprintf-posix (Depends-on): Likewise.
38924         * modules/vasnprintf-posix (Depends-on): Likewise.
38925         * modules/vasprintf-posix (Depends-on): Likewise.
38926         * modules/vfprintf-posix (Depends-on): Likewise.
38927         * modules/vsnprintf-posix (Depends-on): Likewise.
38928         * modules/vsprintf-posix (Depends-on): Likewise.
38929         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38930         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38931         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38932         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38933         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38934         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38935         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38936
38937 2007-11-04  Bruno Haible  <bruno@clisp.org>
38938
38939         * modules/nocrash: New file.
38940         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38941         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38942
38943 2007-11-04  Bruno Haible  <bruno@clisp.org>
38944
38945         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38946         precision handling.
38947         * tests/test-vasprintf-posix.c (test_function): Likewise.
38948         * tests/test-snprintf-posix.h (test_function): Likewise.
38949         * tests/test-sprintf-posix.h (test_function): Likewise.
38950
38951         Fix *printf behaviour for large precisions on mingw and BeOS.
38952         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38953         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38955         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38957         gl_PRINTF_PRECISION and test its result. Invoke
38958         gl_PREREQ_VASNPRINTF_PRECISION.
38959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38960         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38961         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38962         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38963         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38964         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38965         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38966         * doc/functions/fprintf.texi: Update.
38967         * doc/functions/printf.texi: Update.
38968         * doc/functions/snprintf.texi: Update.
38969         * doc/functions/sprintf.texi: Update.
38970         * doc/functions/vfprintf.texi: Update.
38971         * doc/functions/vprintf.texi: Update.
38972         * doc/functions/vsnprintf.texi: Update.
38973         * doc/functions/vsprintf.texi: Update.
38974
38975 2007-11-04  Bruno Haible  <bruno@clisp.org>
38976
38977         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38978
38979 2007-11-04  Bruno Haible  <bruno@clisp.org>
38980
38981         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38982         Reported by Sylvain Beucler <beuc@gnu.org>.
38983
38984 2007-11-03  Bruno Haible  <bruno@clisp.org>
38985
38986         * tests/test-fprintf-posix2.sh: New file.
38987         * tests/test-fprintf-posix2.c: New file.
38988         * modules/fprintf-posix-tests (Files): Add them.
38989         (TESTS): Add test-fprintf-posix2.sh.
38990         (configure.ac): Check for getrlimit and setrlimit.
38991         (check_PROGRAMS): Add test-fprintf-posix2.
38992
38993         * tests/test-printf-posix2.sh: New file.
38994         * tests/test-printf-posix2.c: New file.
38995         * modules/printf-posix-tests (Files): Add them.
38996         (TESTS): Add test-printf-posix2.sh.
38997         (configure.ac): Check for getrlimit and setrlimit.
38998         (check_PROGRAMS): Add test-printf-posix2.
38999
39000         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39001         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39002         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39003         (decode_double): New function, copied from decode_long_double.
39004         (scale10_round_decimal_decoded): New function, extracted from
39005         scale10_round_decimal_long_double.
39006         (scale10_round_decimal_long_double): Use it.
39007         (scale10_round_decimal_double): New function.
39008         (floorlog10): New function.
39009         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39011         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39013         gl_PRINTF_ENOMEM and test its result. Invoke
39014         gl_PREREQ_VASNPRINTF_ENOMEM.
39015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39017         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39018         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39019         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39021         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39022         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39023         * modules/snprintf-posix (Depends-on): Likewise.
39024         * modules/sprintf-posix (Depends-on): Likewise.
39025         * modules/vasnprintf-posix (Depends-on): Likewise.
39026         * modules/vasprintf-posix (Depends-on): Likewise.
39027         * modules/vfprintf-posix (Depends-on): Likewise.
39028         * modules/vsnprintf-posix (Depends-on): Likewise.
39029         * modules/vsprintf-posix (Depends-on): Likewise.
39030         * doc/functions/fprintf.texi: Update.
39031         * doc/functions/printf.texi: Update.
39032         * doc/functions/snprintf.texi: Update.
39033         * doc/functions/sprintf.texi: Update.
39034         * doc/functions/vfprintf.texi: Update.
39035         * doc/functions/vprintf.texi: Update.
39036         * doc/functions/vsnprintf.texi: Update.
39037         * doc/functions/vsprintf.texi: Update.
39038
39039 2007-11-03  Bruno Haible  <bruno@clisp.org>
39040
39041         * modules/frexp-nolibm-tests: New file.
39042
39043         * modules/frexp-nolibm: New file.
39044         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39045
39046 2007-11-03  Bruno Haible  <bruno@clisp.org>
39047
39048         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39049         value is C99 compliant.
39050         Needed for OSF/1 5.1.
39051
39052 2007-11-03  Bruno Haible  <bruno@clisp.org>
39053
39054         Fix out-of-memory handling of vasnprintf.
39055         * lib/printf-parse.c: Include <errno.h>.
39056         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39057         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39058         is already set.
39059
39060 2007-11-02  Eric Blake  <ebb9@byu.net>
39061
39062         Fix tests on cygwin.
39063         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39064
39065 2007-11-01  Bruno Haible  <bruno@clisp.org>
39066
39067         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39068         warning.
39069         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39070         needed for POSIX compatibility.
39071
39072 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39073
39074         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39075         for compatibility with GNU.
39076
39077 2007-11-01  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39080         (putenv): Renamed from rpl_putenv. Change argument type from
39081         'const char *' to 'char *'.
39082         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39083         of defining putenv in config.h, just set REPLACE_PUTENV.
39084         * modules/putenv (Depends-on): Add stdlib.
39085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39086         (Include): Use <stdlib.h>.
39087         * lib/stdlib.in.h (putenv): New declaration.
39088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39089         REPLACE_PUTENV.
39090         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39091         REPLACE_PUTENV.
39092         Needed for MacOS X 10.5.0.
39093         Reported by Peter O'Gorman <peter@pogma.com>.
39094
39095 2007-11-01  Jim Meyering  <meyering@redhat.com>
39096
39097         Treat an empty date string exactly like "0".
39098         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39099         if the remaining date string (to be parsed) is empty, use "0".
39100         Reported by Mischa Molhoek and discussed in this thread:
39101         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39102
39103 2007-10-31  Bruno Haible  <bruno@clisp.org>
39104
39105         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39106         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39107         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39108         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39109         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39110         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39111
39112 2007-10-31  Bruno Haible  <bruno@clisp.org>
39113
39114         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39115         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39116         (AC_TYPE_LONG_LONG_INT): Use it.
39117         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39118         it as well.
39119         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39120         to m4/longlong.m4.
39121         * modules/stdint (Files): Remove m4/ulonglong.m4.
39122         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39123         m4/ulonglong.m4.
39124         * modules/strtoumax (Files): Likewise.
39125
39126 2007-10-30  Bruno Haible  <bruno@clisp.org>
39127
39128         * modules/xvasprintf-posix: New file.
39129         Suggested by Eric Blake.
39130
39131 2007-10-30  Bruno Haible  <bruno@clisp.org>
39132
39133         * modules/xprintf-posix-tests: New file.
39134         * tests/test-xprintf-posix.sh: New file.
39135         * tests/test-xprintf-posix.c: New file.
39136         * tests/test-xfprintf-posix.c: New file.
39137
39138         * modules/xprintf-posix: New file.
39139
39140 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39141
39142         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39143         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39144         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39145
39146 2007-10-29  Bruno Haible  <bruno@clisp.org>
39147
39148         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39149         contain the special marker '_cv_'.
39150         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39151         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39152         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39153         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39154         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39155         Reported by Ralf Wildenhues.
39156
39157 2007-10-29  Bruno Haible  <bruno@clisp.org>
39158
39159         * gnulib-tool (func_import): When --lgpl is not specified, set
39160         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39161         GPLv3.
39162         Reported by Simon Josefsson.
39163
39164 2007-10-28  Bruno Haible  <bruno@clisp.org>
39165
39166         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39167         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39168         HAVE_DECL_ISFINITE.
39169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39170         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39171         HAVE_DECL_ISFINITE.
39172
39173 2007-10-28  Bruno Haible  <bruno@clisp.org>
39174
39175         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39176         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39177
39178 2007-10-28  Bruno Haible  <bruno@clisp.org>
39179
39180         Fix link errors with Sun C 5.0 on Solaris 10.
39181         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39182         function is declared but not present in the compiler's libm.
39183         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39184         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39185         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39186         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39187         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39188         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39189         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39191         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39192         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39193         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39194         HAVE_DECL_FLOORL.
39195
39196 2007-10-28  Bruno Haible  <bruno@clisp.org>
39197
39198         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39199         gl_FUNC_FLOORL. Cache the result.
39200         (gl_FUNC_FLOORL): Use it.
39201         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39202         gl_FUNC_CEILL. Cache the result.
39203         (gl_FUNC_CEILL): Use it.
39204
39205         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39206         gl_FUNC_FLOOR. Cache the result.
39207         (gl_FUNC_FLOOR): Use it.
39208         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39209         gl_FUNC_CEIL. Cache the result.
39210         (gl_FUNC_CEIL): Use it.
39211
39212         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39213         gl_FUNC_FLOORF. Cache the result.
39214         (gl_FUNC_FLOORF): Use it.
39215         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39216         gl_FUNC_CEILF. Cache the result.
39217         (gl_FUNC_CEILF): Use it.
39218
39219 2007-10-28  Bruno Haible  <bruno@clisp.org>
39220
39221         * gnulib-tool: Allow specifying the LGPL version number through
39222         --lgpl=2 or --lgpl=3.
39223         (func_usage): Document --lgpl with argument.
39224         Handle --lgpl=... arguments.
39225         (func_import): Recognize also gl_LGPL calls with an argument. When
39226         --lgpl=2 is used and the module's license is just LGPL, report an
39227         error. Set sed_transform_lib_file according to the lgpl variable. In
39228         the generated files, use --lgpl or gl_LGPL invocations with argument,
39229         if necessary.
39230         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39231         an LGPv2+ license.
39232         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39233         gl_LGPL macro.
39234
39235 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39236             Bruno Haible  <bruno@clisp.org>
39237
39238         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39239         (u16_uctomb_aux): Likewise.
39240         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39241         !HAVE_INLINE.
39242         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39243
39244 2007-10-28  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39247         Invoke AM_GETTEXT_OPTION if it exists.
39248         * modules/vasprintf: Likewise.
39249         * modules/verror: Likewise.
39250         * modules/xprintf: Likewise.
39251         * modules/xvasprintf: Likewise.
39252
39253 2007-10-27  Ben Pfaff  <blp@gnu.org>
39254
39255         * lib/math.in.h: Define isfinite macro and prototypes for
39256         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39257         implementations.
39258         * m4/math_h.m4: New substitutions for isfinite module.
39259         * lib/isfinite.c: New file.
39260         * m4/isfinite.m4: New file.
39261         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39262         * modules/isfinite: New file.
39263         * modules/isfinite-tests: New file.
39264         * tests/tests-isfinite.c: New file.
39265         * doc/functions/isfinite.texi: Mention isfinite module.
39266         * MODULES.html.sh: Mention new module.
39267
39268 2007-10-27  Ben Pfaff  <blp@gnu.org>
39269
39270         Ralf Wildenhues reported that Tru64 4.0D declares the round
39271         functions but does not have definitions.
39272         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39273         cannot be found in any library, set the output variable to
39274         "missing" instead of "".
39275         * m4/round.m4: Also use our substitute if we cannot find round in
39276         any library, even if it is declared.
39277         * m4/roundf.m4: Likewise for roundf.
39278         * m4/roundl.m4: Likewise for roundl.
39279         * lib/math.in.h: Undefine roundf, round, roundl before defining
39280         their replacements, to allow for hypothetical systems where these
39281         may be defined as macros but not available in libraries.
39282
39283 2007-10-27  Bruno Haible  <bruno@clisp.org>
39284
39285         * doc/gnulib.texi: Invoke @firstparagraphindent.
39286         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39287         changes in gnulib.
39288         (Source changes): New section.
39289
39290 2007-10-26  Bruno Haible  <bruno@clisp.org>
39291
39292         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39293         borrowed from autoconf.
39294
39295 2007-10-26  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39298         strerror returned the empty string. Needed on HP-UX 11.00.
39299
39300 2007-10-24  Micah Cowan  <micah@cowan.name>
39301
39302         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39303         * build-aux/bootstrap: Remove support for now-unnecessary option,
39304         --cvs-user, and envvars CVS_USER, CVS_RSH.
39305
39306 2007-10-24  Jim Meyering  <meyering@redhat.com>
39307
39308         Avoid diagnostics from sha1sum when there is no cached checksum.
39309         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39310         if the po.s1 file hasn't been created yet.
39311
39312         * build-aux/bootstrap: Sync from coreutils:
39313         2007-10-24  Jim Meyering  <meyering@redhat.com>
39314         Get gnulib from the git repository, not from an obsolete cvs one.
39315         * build-aux/bootstrap: Suggestion from Micah Cowan.
39316         2007-10-04  Jim Meyering  <jim@meyering.net>
39317         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39318         (update_po_files): Work also when there are no .po files in po/.
39319
39320 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39321
39322         * README: Append ".git" to git and cg examples.
39323         Problem reported by Benoit Sigoure.
39324
39325 2007-10-23  Micah Cowan  <micah@cowan.name>
39326
39327         * users.txt: Add wget.
39328
39329 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39330
39331         Fix linking of some unistdio tests on FreeBSD.
39332         * modules/unistdio/u16-vsnprintf-tests
39333         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39334         * modules/unistdio/u16-vsprintf-tests
39335         (test_u16_vsnprintf1_LDADD): Likewise.
39336         * modules/unistdio/u32-vsnprintf-tests
39337         (test_u32_vsnprintf1_LDADD): Likewise.
39338         * modules/unistdio/u32-vsprintf-tests
39339         (test_u32_vsprintf1_LDADD): Likewise.
39340         * modules/unistdio/u8-vsnprintf-tests
39341         (test_u8_vsnprintf1_LDADD): Likewise.
39342         * modules/unistdio/u8-vsprintf-tests
39343         (test_u8_vsprintf1_LDADD): Likewise.
39344         * modules/unistdio/ulc-vsnprintf-tests
39345         (test_ulc_vsnprintf1_LDADD): Likewise.
39346         * modules/unistdio/ulc-vsprintf-tests
39347         (test_ulc_vsprintf1_LDADD): Likewise.
39348
39349         Fix linking of some uniconv tests on FreeBSD.
39350         * modules/uniconv/u16-conv-from-enc-tests
39351         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39352         * modules/uniconv/u16-conv-to-enc-tests
39353         (test_u16_conv_to_enc_LDADD): Likewise.
39354         * modules/uniconv/u16-strconv-from-enc-tests
39355         (test_u16_strconv_from_enc_LDADD): Likewise.
39356         * modules/uniconv/u16-strconv-to-enc-tests
39357         (test_u16_strconv_to_enc_LDADD): Likewise.
39358         * modules/uniconv/u32-conv-from-enc-tests
39359         (test_u32_conv_from_enc_LDADD): Likewise.
39360         * modules/uniconv/u32-conv-to-enc-tests
39361         (test_u32_conv_to_enc_LDADD): Likewise.
39362         * modules/uniconv/u32-strconv-from-enc-tests
39363         (test_u32_strconv_from_enc_LDADD): Likewise.
39364         * modules/uniconv/u32-strconv-to-enc-tests
39365         (test_u32_strconv_to_enc_LDADD): Likewise.
39366         * modules/uniconv/u8-conv-from-enc-tests
39367         (test_u8_conv_from_enc_LDADD): Likewise.
39368         * modules/uniconv/u8-conv-to-enc-tests
39369         (test_u8_conv_to_enc_LDADD): Likewise.
39370         * modules/uniconv/u8-strconv-from-enc-tests
39371         (test_u8_strconv_from_enc_LDADD): Likewise.
39372         * modules/uniconv/u8-strconv-to-enc-tests
39373         (test_u8_strconv_to_enc_LDADD): Likewise.
39374
39375 2007-10-22  Bruno Haible  <bruno@clisp.org>
39376
39377         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39378         size.
39379
39380 2007-10-22  Eric Blake  <ebb9@byu.net>
39381
39382         Tweak x*printf documentation.
39383         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39384         variable name and comments.
39385         Suggested by Bruno Haible.
39386
39387 2007-10-22  Bruno Haible  <bruno@clisp.org>
39388
39389         * lib/acl.c (copy_acl): Fix file name in comment.
39390
39391 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39392
39393         Fix Tru64 problem with stdbool.h.
39394         * lib/stdbool.in.h (false, true):
39395         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39396         Don't declare as an enum in this situation; it runs afoul of Tru64.
39397         Problem reported by Steven M. Schweda in
39398         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39399
39400 2007-10-22  Eric Blake  <ebb9@byu.net>
39401
39402         Also wrap vf?printf.
39403         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39404         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39405         (xvprintf, xvfprintf): New functions.
39406
39407 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39408
39409         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39410         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39411
39412         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39413         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39414
39415 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39416
39417         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39418         by Bruno Haible.
39419
39420 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39421
39422         * lib/getloadavg.c
39423         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39424         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39425
39426         * tests/test-i-ring.c: Work for C89.
39427
39428 2007-10-22  Bruno Haible  <bruno@clisp.org>
39429
39430         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39431         -1u, in preprocessor expression, so that we don't test for the bug
39432         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39434
39435 2007-10-22  Eric Blake  <ebb9@byu.net>
39436
39437         * tests/test-yesno.sh: Silence stderr during test.
39438
39439 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39440
39441         * modules/crypto/gc-camellia: New file.
39442
39443         * m4/gc-camellia.m4: New file.
39444
39445         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39446
39447         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39448
39449 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39450
39451         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39452         --help to stdout.  Reported by sms@antinode.org (Steven
39453         M. Schweda).
39454
39455 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39456
39457         * users.txt: Fix link to libksba.
39458
39459 2007-10-21  Ben Pfaff  <blp@gnu.org>
39460
39461         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39462         round.c roundf implementation that depends on floorf and ceilf to
39463         be tested unconditionally.
39464
39465 2007-10-21  Ben Pfaff  <blp@gnu.org>
39466
39467         * m4/check-libm-func.m4: Removed.
39468         * m4/check-math-lib.m4: New file.
39469         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39470         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39471         definition and lack of AC_LIBOBJ([roundf]).
39472         * m4/roundl.m4: Ditto, and similarly for roundl.
39473         * modules/round: Reference new m4 file.
39474         * modules/roundf: Ditto.
39475         * modules/roundl: Ditto.
39476         * tests/test-round2.c (main): Use ROUND instead of round.
39477         Bug report from Bruno Haible.
39478
39479 2007-10-21  Bruno Haible  <bruno@clisp.org>
39480
39481         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39482         context.
39483
39484 2007-10-21  Bruno Haible  <bruno@clisp.org>
39485
39486         * tests/test-wcwidth.c (main): Allow negative result for some control
39487         characters.
39488
39489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39490         Needed on OSF/1 5.1.
39491
39492 2007-10-21  Bruno Haible  <bruno@clisp.org>
39493
39494         * tests/test-floorf1.c: Include isnanf.h.
39495         (main): Use isnanf() instead of isnan().
39496         * tests/test-ceilf1.c: Include isnanf.h.
39497         (main): Use isnanf() instead of isnan().
39498         * tests/test-truncf1.c: Include isnanf.h.
39499         (main): Use isnanf() instead of isnan().
39500         * tests/test-roundf1.c: Include isnanf.h.
39501         (main): Use isnanf() instead of isnan().
39502
39503 2007-10-21  Eric Blake  <ebb9@byu.net>
39504
39505         * users.txt: Update URL for m4.
39506
39507 2007-10-21  Bruno Haible  <bruno@clisp.org>
39508
39509         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39510
39511 2007-10-21  Bruno Haible  <bruno@clisp.org>
39512
39513         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39514         Git's management files if the CVS files are not present.
39515
39516 2007-10-20  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39519         gcc-3.4.x.
39520
39521 2007-10-20  Ben Pfaff  <blp@gnu.org>
39522
39523         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39524         implementations.
39525         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39526         * lib/round.c: New file.
39527         * lib/roundf.c: New file.
39528         * lib/roundl.c: New file.
39529         * m4/round.m4: New file.
39530         * m4/roundf.m4: New file.
39531         * m4/roundl.m4: New file.
39532         * m4/check-libm-func-m4: New file.
39533         * modules/math: Replace round, roundf, roundl related @VARS@ in
39534         math.in.h.
39535         * modules/round: New file.
39536         * modules/round-tests: New file.
39537         * modules/roundf: New file.
39538         * modules/roundf-tests: New file.
39539         * modules/roundl: New file.
39540         * modules/roundl-tests: New file.
39541         * tests/test-round1.c: New file.
39542         * tests/test-round2.c: New file.
39543         * tests/test-roundf1.c: New file.
39544         * tests/test-roundf2.c: New file.
39545         * tests/test-roundl.c: New file.
39546         * doc/functions/round.texi: Mention round module.
39547         * doc/functions/roundf.texi: Mention roundf module.
39548         * doc/functions/roundl.texi: Mention roundl module.
39549         * MODULES.html.sh: Mention new modules.
39550         Thanks to Bruno Haible for suggestions.
39551
39552 2007-10-20  Jim Meyering  <meyering@redhat.com>
39553
39554         * lib/xprintf.c: Include <config.h> unconditionally.
39555
39556         Change xprintf's license to GPL.
39557         * modules/xprintf (License): s/LGPL/GPL/, since this module
39558         depends on modules (exit and exitfail) which are GPL.
39559         Suggestion from Bruno Haible.
39560
39561         xprintf fixes.
39562         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39563         Use a clearer diagnostic.
39564         Patch from Bruno Haible.
39565
39566 2007-10-20  Bruno Haible  <bruno@clisp.org>
39567
39568         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39569         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39570         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39571
39572 2007-10-20  Bruno Haible  <bruno@clisp.org>
39573
39574         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39575         precision in the comparison result > x - 1 or similar.
39576         * tests/test-ceilf2.c (correct_result_p): Likewise.
39577         * tests/test-truncf2.c (correct_result_p): Likewise.
39578         * tests/test-trunc2.c (correct_result_p): Likewise.
39579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39580
39581 2007-10-20  Bruno Haible  <bruno@clisp.org>
39582
39583         * modules/ceil: New file.
39584         * m4/ceil.m4: New file.
39585         * doc/functions/ceil.texi: Mention the 'ceil' module.
39586
39587 2007-10-20  Bruno Haible  <bruno@clisp.org>
39588
39589         * modules/floor: New file.
39590         * m4/floor.m4: New file.
39591         * doc/functions/floor.texi: Mention the 'floor' module.
39592
39593 2007-10-20  Bruno Haible  <bruno@clisp.org>
39594
39595         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39596         of %a.
39597         * modules/floorf-tests (Depends-on): Likewise.
39598         * modules/truncf-tests (Depends-on): Likewise.
39599         * modules/trunc-tests (Depends-on): Likewise.
39600         Reported by Ben Pfaff.
39601
39602 2007-10-19  Jim Meyering  <meyering@redhat.com>
39603
39604         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39605         Don't bother testing specific errno values.  Just test ferror.
39606
39607         New module: xprintf
39608         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39609
39610 2007-10-19  Bruno Haible  <bruno@clisp.org>
39611
39612         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39613         syntax.
39614         * modules/javaexec (Makefile.am): Likewise.
39615         * modules/relocatable-prog (Makefile.am): Likewise.
39616         Suggested by Jim Meyering.
39617
39618 2007-10-18  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39621         Reported by Jim Meyering.
39622
39623 2007-10-18  Eric Blake  <ebb9@byu.net>
39624
39625         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39626
39627 2007-10-18  Bruno Haible  <bruno@clisp.org>
39628
39629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39630         the format string into writable memory. Needed in Fortify conditions.
39631
39632 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39633             Bruno Haible  <bruno@clisp.org>
39634
39635         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39636         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39637         * modules/trim (Depends-on): Add mbchar.
39638         (configure.ac): Add gl_FUNC_MBRTOWC.
39639         (Makefile.am): Augment lib_SOURCES.
39640
39641 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39642
39643         Modify glob.c to use fstatat and dirfd, to simplify it.
39644         Suggested by Eric Blake.
39645         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39646         Don't include <stdbool.h>; not used.
39647         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39648         (link_exists_p): Simplify implementation, since we can now assume
39649         dirfd and fstatat.
39650         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39651
39652 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39653
39654         * gnulib-tool (func_get_dependencies): Fix sed script to
39655         match only tests.
39656
39657 2007-10-17  Bruno Haible  <bruno@clisp.org>
39658
39659         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39660         allow locale names without encoding suffix.
39661         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39662         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39663
39664 2007-10-16  Bruno Haible  <bruno@clisp.org>
39665
39666         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39667         * lib/getgroups.c (getgroups): Likewise.
39668         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39669
39670 2007-10-16  Bruno Haible  <bruno@clisp.org>
39671
39672         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39673         * modules/malloc-posix (License): Likewise.
39674         * modules/realloc-posix (License): Likewise.
39675         * modules/calloc-posix (License): Likewise.
39676         * modules/intprops (License): Change from GPL to LGPL, with
39677         Paul Eggert's approval.
39678
39679 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39680
39681         Merge glibc changes into lib/glob.c.
39682
39683         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39684         2007-10-15 04:59:03 UTC.  Here are the changes:
39685
39686         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39687
39688         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39689
39690         * lib/glob.c: Add some branch prediction throughout.
39691
39692         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39693
39694         [BZ #5103]
39695         * lib/glob.c (glob): Recognize patterns starting \/.
39696
39697         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39698
39699         [BZ #3996]
39700         * lib/glob.c (attribute_hidden): Define if not defined.
39701         (glob): Unescape dirname, filename or username when needed and not
39702         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39703         is NULL.  Handle unescaped [ in pattern without closing ].
39704         Don't pass GLOB_CHECK down to recursive glob for directories.
39705         (__glob_pattern_type): New function.
39706         (__glob_pattern_p): Implement using __glob_pattern_type.
39707         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39708         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39709         Remove unreachable code.
39710
39711         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39712
39713         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39714         explain why there are no leaks.
39715
39716         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39717
39718         [BZ #3253]
39719         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39720         time, rather allocate increasingly bigger arrays of pointers, if
39721         possible with alloca, if too large with malloc.
39722
39723 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39724
39725         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39726         Problem reported by H.Merijn Brand in
39727         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39728         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39729         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39730
39731 2007-10-15  Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39734         with explicit rpl_ prefix.
39735         * lib/fopen.c (fopen): Likewise.
39736         * lib/freopen.c (freopen): Likewise.
39737         * lib/iconv.c (iconv): Likewise.
39738         * lib/iconv_close.c (iconv_close): Likewise.
39739
39740 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39741
39742         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39743
39744 2007-10-15  Bruno Haible  <bruno@clisp.org>
39745
39746         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39747         <stddef.h> instead of <stdlib.h> since we only need NULL.
39748         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39749
39750 2007-10-15  Bruno Haible  <bruno@clisp.org>
39751
39752         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39753         Replace paragraph talking about LIBOBJS.
39754         Reported by Colin Watson <cjwatson@debian.org>.
39755
39756 2007-10-15  Bruno Haible  <bruno@clisp.org>
39757
39758         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39759         <stdlib.h> before using NULL.
39760
39761 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39762
39763         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39764         Reported by Albert Chin <china@thewrittenword.com>.
39765
39766 2007-10-14  Bruno Haible  <bruno@clisp.org>
39767
39768         * modules/iconv_open-utf-tests: New file.
39769         * tests/test-iconv-utf.c: New file.
39770
39771         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39772         * modules/iconv_open-utf: New file.
39773         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39774         (iconv, iconv_close): New declarations.
39775         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39776         be defined.
39777         (iconv_open): Add special handling of conversion between UTF-8 and
39778         UTF-{16,32}{BE,LE}.
39779         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39780         * lib/iconv_close.c: New file.
39781         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39782         gl_FUNC_ICONV_OPEN.
39783         (gl_FUNC_ICONV_OPEN): Use it.
39784         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39785         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39786         and REPLACE_ICONV_UTF.
39787         * modules/iconv_open (Depends-on): Add c-strcase.
39788         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39789         ICONV_CONST.
39790         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39791
39792 2007-10-13  Albert Chin  <china@thewrittenword.com>
39793             Bruno Haible  <bruno@clisp.org>
39794
39795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39796         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39797
39798 2007-10-13  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39801         defined, use the ISO C99 inline semantics.
39802         * lib/argp.h (ARGP_EI): Likewise.
39803
39804 2007-10-13  Bruno Haible  <bruno@clisp.org>
39805
39806         Handle 'inline' change in gcc 4.3.0.
39807         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39808         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39809         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39810         argp_fmtstream_point): Disable 'extern' declaration if the function
39811         definition is going to be provided inline.
39812         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39813         semantics, not the ISO C99 inline semantics.
39814         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39815         'extern' declaration if the function definition is going to be provided
39816         inline.
39817         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39818         the GNU C inline semantics, not the ISO C99 inline semantics. With
39819         GCC 4.2, avoid a warning.
39820
39821 2007-10-13  Bruno Haible  <bruno@clisp.org>
39822
39823         * lib/freading.h (freading): Enable the use of __freading for
39824         glibc >= 2.7.
39825         * lib/freading.c (freading): Likewise.
39826
39827 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39830         "warning: C99 inline functions are not supported; using GNU89".
39831
39832 2007-10-12  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39835         of 2.
39836         * tests/test-ceilf2.c: New file.
39837         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39838
39839         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39840         * modules/ceilf-tests: Update.
39841
39842 2007-10-12  Bruno Haible  <bruno@clisp.org>
39843
39844         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39845         of 2.
39846         * tests/test-floorf2.c: New file.
39847         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39848
39849         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39850         * modules/floorf-tests: Update.
39851
39852 2007-10-12  Bruno Haible  <bruno@clisp.org>
39853
39854         * tests/test-trunc2.c: New file.
39855         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39856
39857         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39858         * modules/trunc-tests: Update.
39859
39860 2007-10-12  Bruno Haible  <bruno@clisp.org>
39861
39862         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39863         of 2.
39864         * tests/test-truncf2.c: New file.
39865         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39866
39867         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39868         * modules/truncf-tests: Update.
39869
39870 2007-10-11  Eric Blake  <ebb9@byu.net>
39871
39872         Don't claim strerror is broken on Interix.
39873         * doc/functions/strerror.texi (strerror): Known broken systems are
39874         now Solaris 8, and not Interix.
39875         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39876         Interix on cross-compile.
39877         Reported by Martin Koeppe in
39878         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39879
39880 2007-10-11  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/i-ring-tests: New file.
39883         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39884         instead of assert.
39885
39886 2007-10-11  Bruno Haible  <bruno@clisp.org>
39887
39888         * modules/filenamecat-tests: New file.
39889         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39890         * lib/filenamecat.c: Remove test code.
39891
39892 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39893
39894         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39895
39896         * lib/strerror.c: Include <string.h> always, to test interface,
39897         and to remove the need for the dummy.
39898         Include intprops.h to compute width instead of doing it ourselves
39899         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39900         (strerror): Define it to return NULL if there's no system strerror.
39901         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39902         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39903         ancient pre-strerror Unix systems well any more.  Saying "unknown
39904         system error" is enough.
39905         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39906         simpler strerror.c implementation.
39907         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39908         Simplify the tests to reflect the simpler strerror implementation.
39909         * modules/strerror (Depends-on): Add intprops.
39910
39911 2007-10-09  Eric Blake  <ebb9@byu.net>
39912
39913         Silence test-fpending.
39914         * modules/fpending-tests (Files): Add wrapper script.
39915         * tests/test-fpending.sh: New file.
39916
39917 2007-10-09  Bruno Haible  <bruno@clisp.org>
39918
39919         * MODULES.html.sh (func_module): Don't create a hyperlink for
39920         function names like 'printf_frexp'.
39921         (Misc): Add crc, memxor.
39922         (Characteristics of floating types): New section.
39923         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39924         isnanf-nolibm, signbit, trunc, truncf, truncl.
39925         (Enhancements for ISO C 99 functions): New subsection Input/output.
39926         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39927         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39928         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39929         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39930         (Enhancements for POSIX:2001 functions): Add chdir-long.
39931         (File system functions): Add areadlink, chdir-safer, read-file.
39932         Remove cycle-check.
39933         (File system as inode set): New section.
39934         (Date and time): Add gethrxtime.
39935         (Multithreading): Add openmp.
39936         (Internationalization functions): Add localename.
39937         (Unicode string functions): Add unistr/u*-mbsnlen.
39938         (Support for maintaining and releasing projects): Add git-version-gen.
39939         (Lone files): Remove directories.
39940
39941 2007-10-08  Ben Pfaff  <blp@gnu.org>
39942
39943         * lib/xmalloca.h: Fix typo in comment.
39944
39945 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39946
39947         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39948         when avoiding problems with integer overflow.  Use a portable test
39949         instead.
39950
39951 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39952
39953         * modules/dummy (License): Change to LGPLv2+.
39954         * modules/float (License): Likewise
39955         * modules/realloc (License): Likewise
39956         * modules/stdlib (License): Likewise
39957
39958 2007-10-07  Bruno Haible  <bruno@clisp.org>
39959
39960         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39961         * floor.c (TWO_MANT_DIG): Likewise.
39962         * ceil.c (TWO_MANT_DIG): Likewise.
39963         Reported by Ben Pfaff.
39964
39965 2007-10-07  Bruno Haible  <bruno@clisp.org>
39966
39967         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39968         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39969         * lib/frexp.c (FUNC): Likewise.
39970         * lib/printf-frexp.h (printf_frexp): Likewise.
39971         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39972         * lib/printf-frexp.c (FUNC): Likewise.
39973         Suggested by Jim Meyering.
39974
39975 2007-10-07  Jim Meyering  <meyering@redhat.com>
39976
39977         Make xnanosleep's integer overflow test more robust.
39978         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39979         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39980
39981 2007-10-07  Bruno Haible  <bruno@clisp.org>
39982
39983         * NEWS: Mention the license change.
39984
39985         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39986         abbreviations in the modules files.
39987
39988         Change copyright notice from GPLv2+ to GPLv3+.
39989         * README: Change copyright notice.
39990         * MODULES.html.sh: Likewise.
39991         * build-aux/bootstrap.conf: Likewise.
39992         * build-aux/config.libpath: Likewise.
39993         * build-aux/csharpcomp.sh.in: Likewise.
39994         * build-aux/csharpexec.sh.in: Likewise.
39995         * build-aux/install-reloc: Likewise.
39996         * build-aux/javacomp.sh.in: Likewise.
39997         * build-aux/javaexec.sh.in: Likewise.
39998         * build-aux/ldd.sh.in: Likewise.
39999         * build-aux/reloc-ldflags: Likewise.
40000         * build-aux/relocatable.sh.in: Likewise.
40001         * build-aux/x-to-1.in: Likewise.
40002         * check-module: Likewise.
40003         * config/srclistvars.sh: Likewise.
40004         * gnulib-tool: Likewise.
40005         * lib/acl-internal.h: Likewise.
40006         * lib/acl.c: Likewise.
40007         * lib/acl.h: Likewise.
40008         * lib/acl_entries.c: Likewise.
40009         * lib/areadlink-with-size.c: Likewise.
40010         * lib/areadlink.c: Likewise.
40011         * lib/areadlink.h: Likewise.
40012         * lib/argmatch.c: Likewise.
40013         * lib/argmatch.h: Likewise.
40014         * lib/argp-ba.c: Likewise.
40015         * lib/argp-eexst.c: Likewise.
40016         * lib/argp-fmtstream.c: Likewise.
40017         * lib/argp-fmtstream.h: Likewise.
40018         * lib/argp-fs-xinl.c: Likewise.
40019         * lib/argp-help.c: Likewise.
40020         * lib/argp-namefrob.h: Likewise.
40021         * lib/argp-parse.c: Likewise.
40022         * lib/argp-pin.c: Likewise.
40023         * lib/argp-pv.c: Likewise.
40024         * lib/argp-pvh.c: Likewise.
40025         * lib/argp-xinl.c: Likewise.
40026         * lib/argp.h: Likewise.
40027         * lib/at-func.c: Likewise.
40028         * lib/atanl.c: Likewise.
40029         * lib/backupfile.c: Likewise.
40030         * lib/backupfile.h: Likewise.
40031         * lib/basename.c: Likewise.
40032         * lib/binary-io.h: Likewise.
40033         * lib/byteswap.in.h: Likewise.
40034         * lib/c-stack.c: Likewise.
40035         * lib/c-stack.h: Likewise.
40036         * lib/c-strcasestr.c: Likewise.
40037         * lib/c-strcasestr.h: Likewise.
40038         * lib/c-strstr.c: Likewise.
40039         * lib/c-strstr.h: Likewise.
40040         * lib/c-strtod.c: Likewise.
40041         * lib/calloc.c: Likewise.
40042         * lib/canon-host.c: Likewise.
40043         * lib/canon-host.h: Likewise.
40044         * lib/canonicalize-lgpl.c: Likewise.
40045         * lib/canonicalize.c: Likewise.
40046         * lib/canonicalize.h: Likewise.
40047         * lib/ceil.c: Likewise.
40048         * lib/ceilf.c: Likewise.
40049         * lib/ceill.c: Likewise.
40050         * lib/chdir-long.c: Likewise.
40051         * lib/chdir-long.h: Likewise.
40052         * lib/chdir-safer.c: Likewise.
40053         * lib/chdir-safer.h: Likewise.
40054         * lib/chown.c: Likewise.
40055         * lib/classpath.c: Likewise.
40056         * lib/classpath.h: Likewise.
40057         * lib/clean-temp.c: Likewise.
40058         * lib/clean-temp.h: Likewise.
40059         * lib/cloexec.c: Likewise.
40060         * lib/close-stream.c: Likewise.
40061         * lib/closein.c: Likewise.
40062         * lib/closein.h: Likewise.
40063         * lib/closeout.c: Likewise.
40064         * lib/closeout.h: Likewise.
40065         * lib/concat-filename.c: Likewise.
40066         * lib/copy-file.c: Likewise.
40067         * lib/copy-file.h: Likewise.
40068         * lib/count-one-bits.h: Likewise.
40069         * lib/crc.c: Likewise.
40070         * lib/crc.h: Likewise.
40071         * lib/creat-safer.c: Likewise.
40072         * lib/csharpcomp.c: Likewise.
40073         * lib/csharpcomp.h: Likewise.
40074         * lib/csharpexec.c: Likewise.
40075         * lib/csharpexec.h: Likewise.
40076         * lib/cycle-check.c: Likewise.
40077         * lib/cycle-check.h: Likewise.
40078         * lib/diacrit.c: Likewise.
40079         * lib/diacrit.h: Likewise.
40080         * lib/diffseq.h: Likewise.
40081         * lib/dirchownmod.c: Likewise.
40082         * lib/dirent.in.h: Likewise.
40083         * lib/dirfd.c: Likewise.
40084         * lib/dirfd.h: Likewise.
40085         * lib/dirname.c: Likewise.
40086         * lib/dirname.h: Likewise.
40087         * lib/dummy.c: Likewise.
40088         * lib/dup-safer.c: Likewise.
40089         * lib/dup2.c: Likewise.
40090         * lib/eealloc.h: Likewise.
40091         * lib/error.c: Likewise.
40092         * lib/error.h: Likewise.
40093         * lib/euidaccess.c: Likewise.
40094         * lib/exclude.c: Likewise.
40095         * lib/exclude.h: Likewise.
40096         * lib/execute.c: Likewise.
40097         * lib/execute.h: Likewise.
40098         * lib/exitfail.c: Likewise.
40099         * lib/exitfail.h: Likewise.
40100         * lib/expl.c: Likewise.
40101         * lib/fatal-signal.c: Likewise.
40102         * lib/fatal-signal.h: Likewise.
40103         * lib/fbufmode.c: Likewise.
40104         * lib/fbufmode.h: Likewise.
40105         * lib/fchdir.c: Likewise.
40106         * lib/fchmodat.c: Likewise.
40107         * lib/fchownat.c: Likewise.
40108         * lib/fcntl--.h: Likewise.
40109         * lib/fcntl-safer.h: Likewise.
40110         * lib/fcntl.in.h: Likewise.
40111         * lib/fd-safer.c: Likewise.
40112         * lib/fflush.c: Likewise.
40113         * lib/file-has-acl.c: Likewise.
40114         * lib/file-set.c: Likewise.
40115         * lib/file-type.c: Likewise.
40116         * lib/file-type.h: Likewise.
40117         * lib/fileblocks.c: Likewise.
40118         * lib/filemode.c: Likewise.
40119         * lib/filemode.h: Likewise.
40120         * lib/filename.h: Likewise.
40121         * lib/filenamecat.c: Likewise.
40122         * lib/filenamecat.h: Likewise.
40123         * lib/findprog.c: Likewise.
40124         * lib/findprog.h: Likewise.
40125         * lib/float.in.h: Likewise.
40126         * lib/floor.c: Likewise.
40127         * lib/floorf.c: Likewise.
40128         * lib/floorl.c: Likewise.
40129         * lib/fopen-safer.c: Likewise.
40130         * lib/fopen.c: Likewise.
40131         * lib/fpending.c: Likewise.
40132         * lib/fpending.h: Likewise.
40133         * lib/fprintf.c: Likewise.
40134         * lib/fprintftime.h: Likewise.
40135         * lib/fpucw.h: Likewise.
40136         * lib/fpurge.c: Likewise.
40137         * lib/fpurge.h: Likewise.
40138         * lib/freadable.c: Likewise.
40139         * lib/freadable.h: Likewise.
40140         * lib/freadahead.c: Likewise.
40141         * lib/freadahead.h: Likewise.
40142         * lib/freading.c: Likewise.
40143         * lib/freading.h: Likewise.
40144         * lib/free.c: Likewise.
40145         * lib/freopen.c: Likewise.
40146         * lib/frexp.c: Likewise.
40147         * lib/frexpl.c: Likewise.
40148         * lib/fseek.c: Likewise.
40149         * lib/fseterr.c: Likewise.
40150         * lib/fseterr.h: Likewise.
40151         * lib/fstatat.c: Likewise.
40152         * lib/fstrcmp.c: Likewise.
40153         * lib/fstrcmp.h: Likewise.
40154         * lib/fsusage.c: Likewise.
40155         * lib/fsusage.h: Likewise.
40156         * lib/ftell.c: Likewise.
40157         * lib/ftello.c: Likewise.
40158         * lib/fts-cycle.c: Likewise.
40159         * lib/fts.c: Likewise.
40160         * lib/fts_.h: Likewise.
40161         * lib/full-read.c: Likewise.
40162         * lib/full-read.h: Likewise.
40163         * lib/full-write.c: Likewise.
40164         * lib/full-write.h: Likewise.
40165         * lib/fwritable.c: Likewise.
40166         * lib/fwritable.h: Likewise.
40167         * lib/fwriteerror.c: Likewise.
40168         * lib/fwriteerror.h: Likewise.
40169         * lib/fwriting.c: Likewise.
40170         * lib/fwriting.h: Likewise.
40171         * lib/gcd.c: Likewise.
40172         * lib/gcd.h: Likewise.
40173         * lib/getcwd.c: Likewise.
40174         * lib/getdate.h: Likewise.
40175         * lib/getdate.y: Likewise.
40176         * lib/getdomainname.c: Likewise.
40177         * lib/getdomainname.h: Likewise.
40178         * lib/getgroups.c: Likewise.
40179         * lib/gethostname.c: Likewise.
40180         * lib/gethrxtime.c: Likewise.
40181         * lib/gethrxtime.h: Likewise.
40182         * lib/getloadavg.c: Likewise.
40183         * lib/getndelim2.c: Likewise.
40184         * lib/getndelim2.h: Likewise.
40185         * lib/getnline.c: Likewise.
40186         * lib/getnline.h: Likewise.
40187         * lib/getopt.c: Likewise.
40188         * lib/getopt.in.h: Likewise.
40189         * lib/getopt1.c: Likewise.
40190         * lib/getopt_int.h: Likewise.
40191         * lib/getpagesize.h: Likewise.
40192         * lib/getsubopt.c: Likewise.
40193         * lib/gettime.c: Likewise.
40194         * lib/getugroups.c: Likewise.
40195         * lib/getugroups.h: Likewise.
40196         * lib/getusershell.c: Likewise.
40197         * lib/gl_anyavltree_list1.h: Likewise.
40198         * lib/gl_anyavltree_list2.h: Likewise.
40199         * lib/gl_anyhash_list1.h: Likewise.
40200         * lib/gl_anyhash_list2.h: Likewise.
40201         * lib/gl_anylinked_list1.h: Likewise.
40202         * lib/gl_anylinked_list2.h: Likewise.
40203         * lib/gl_anyrbtree_list1.h: Likewise.
40204         * lib/gl_anyrbtree_list2.h: Likewise.
40205         * lib/gl_anytree_list1.h: Likewise.
40206         * lib/gl_anytree_list2.h: Likewise.
40207         * lib/gl_anytree_oset.h: Likewise.
40208         * lib/gl_anytreehash_list1.h: Likewise.
40209         * lib/gl_anytreehash_list2.h: Likewise.
40210         * lib/gl_array_list.c: Likewise.
40211         * lib/gl_array_list.h: Likewise.
40212         * lib/gl_array_oset.c: Likewise.
40213         * lib/gl_array_oset.h: Likewise.
40214         * lib/gl_avltree_list.c: Likewise.
40215         * lib/gl_avltree_list.h: Likewise.
40216         * lib/gl_avltree_oset.c: Likewise.
40217         * lib/gl_avltree_oset.h: Likewise.
40218         * lib/gl_avltreehash_list.c: Likewise.
40219         * lib/gl_avltreehash_list.h: Likewise.
40220         * lib/gl_carray_list.c: Likewise.
40221         * lib/gl_carray_list.h: Likewise.
40222         * lib/gl_linked_list.c: Likewise.
40223         * lib/gl_linked_list.h: Likewise.
40224         * lib/gl_linkedhash_list.c: Likewise.
40225         * lib/gl_linkedhash_list.h: Likewise.
40226         * lib/gl_list.c: Likewise.
40227         * lib/gl_list.h: Likewise.
40228         * lib/gl_oset.c: Likewise.
40229         * lib/gl_oset.h: Likewise.
40230         * lib/gl_rbtree_list.c: Likewise.
40231         * lib/gl_rbtree_list.h: Likewise.
40232         * lib/gl_rbtree_oset.c: Likewise.
40233         * lib/gl_rbtree_oset.h: Likewise.
40234         * lib/gl_rbtreehash_list.c: Likewise.
40235         * lib/gl_rbtreehash_list.h: Likewise.
40236         * lib/gl_sublist.c: Likewise.
40237         * lib/gl_sublist.h: Likewise.
40238         * lib/group-member.c: Likewise.
40239         * lib/group-member.h: Likewise.
40240         * lib/hard-locale.c: Likewise.
40241         * lib/hard-locale.h: Likewise.
40242         * lib/hash-pjw.c: Likewise.
40243         * lib/hash-pjw.h: Likewise.
40244         * lib/hash-triple.c: Likewise.
40245         * lib/hash.c: Likewise.
40246         * lib/hash.h: Likewise.
40247         * lib/human.c: Likewise.
40248         * lib/human.h: Likewise.
40249         * lib/i-ring.c: Likewise.
40250         * lib/i-ring.h: Likewise.
40251         * lib/idcache.c: Likewise.
40252         * lib/imaxabs.c: Likewise.
40253         * lib/imaxdiv.c: Likewise.
40254         * lib/inet_pton.c: Likewise.
40255         * lib/inet_pton.h: Likewise.
40256         * lib/intprops.h: Likewise.
40257         * lib/inttostr.c: Likewise.
40258         * lib/inttostr.h: Likewise.
40259         * lib/inttypes.in.h: Likewise.
40260         * lib/isapipe.c: Likewise.
40261         * lib/isdir.c: Likewise.
40262         * lib/isnan.c: Likewise.
40263         * lib/isnan.h: Likewise.
40264         * lib/isnanf.c: Likewise.
40265         * lib/isnanf.h: Likewise.
40266         * lib/isnanl-nolibm.h: Likewise.
40267         * lib/isnanl.c: Likewise.
40268         * lib/isnanl.h: Likewise.
40269         * lib/javacomp.c: Likewise.
40270         * lib/javacomp.h: Likewise.
40271         * lib/javaexec.c: Likewise.
40272         * lib/javaexec.h: Likewise.
40273         * lib/javaversion.c: Likewise.
40274         * lib/javaversion.h: Likewise.
40275         * lib/javaversion.java: Likewise.
40276         * lib/lbrkprop.h: Likewise.
40277         * lib/lchmod.h: Likewise.
40278         * lib/lchown.c: Likewise.
40279         * lib/ldexpl.c: Likewise.
40280         * lib/linebreak.c: Likewise.
40281         * lib/linebreak.h: Likewise.
40282         * lib/linebuffer.c: Likewise.
40283         * lib/linebuffer.h: Likewise.
40284         * lib/locale.in.h: Likewise.
40285         * lib/logl.c: Likewise.
40286         * lib/long-options.c: Likewise.
40287         * lib/long-options.h: Likewise.
40288         * lib/lstat.c: Likewise.
40289         * lib/lstat.h: Likewise.
40290         * lib/math.in.h: Likewise.
40291         * lib/mbchar.c: Likewise.
40292         * lib/mbchar.h: Likewise.
40293         * lib/mbfile.h: Likewise.
40294         * lib/mbiter.h: Likewise.
40295         * lib/mbscasecmp.c: Likewise.
40296         * lib/mbscasestr.c: Likewise.
40297         * lib/mbschr.c: Likewise.
40298         * lib/mbscspn.c: Likewise.
40299         * lib/mbslen.c: Likewise.
40300         * lib/mbsncasecmp.c: Likewise.
40301         * lib/mbsnlen.c: Likewise.
40302         * lib/mbspbrk.c: Likewise.
40303         * lib/mbspcasecmp.c: Likewise.
40304         * lib/mbsrchr.c: Likewise.
40305         * lib/mbssep.c: Likewise.
40306         * lib/mbsspn.c: Likewise.
40307         * lib/mbsstr.c: Likewise.
40308         * lib/mbstok_r.c: Likewise.
40309         * lib/mbswidth.c: Likewise.
40310         * lib/mbswidth.h: Likewise.
40311         * lib/mbuiter.h: Likewise.
40312         * lib/memcasecmp.c: Likewise.
40313         * lib/memcasecmp.h: Likewise.
40314         * lib/memchr.c: Likewise.
40315         * lib/memcmp.c: Likewise.
40316         * lib/memcoll.c: Likewise.
40317         * lib/memcoll.h: Likewise.
40318         * lib/memcpy.c: Likewise.
40319         * lib/memrchr.c: Likewise.
40320         * lib/mkancesdirs.c: Likewise.
40321         * lib/mkdir-p.c: Likewise.
40322         * lib/mkdir-p.h: Likewise.
40323         * lib/mkdir.c: Likewise.
40324         * lib/mkdirat.c: Likewise.
40325         * lib/mkdtemp.c: Likewise.
40326         * lib/mkstemp-safer.c: Likewise.
40327         * lib/mkstemp.c: Likewise.
40328         * lib/modechange.c: Likewise.
40329         * lib/modechange.h: Likewise.
40330         * lib/mountlist.c: Likewise.
40331         * lib/mountlist.h: Likewise.
40332         * lib/mpsort.c: Likewise.
40333         * lib/nanosleep.c: Likewise.
40334         * lib/obstack.c: Likewise.
40335         * lib/obstack.h: Likewise.
40336         * lib/open-safer.c: Likewise.
40337         * lib/open.c: Likewise.
40338         * lib/openat-die.c: Likewise.
40339         * lib/openat-priv.h: Likewise.
40340         * lib/openat-proc.c: Likewise.
40341         * lib/openat.c: Likewise.
40342         * lib/openat.h: Likewise.
40343         * lib/pagealign_alloc.c: Likewise.
40344         * lib/pagealign_alloc.h: Likewise.
40345         * lib/physmem.c: Likewise.
40346         * lib/physmem.h: Likewise.
40347         * lib/pipe-safer.c: Likewise.
40348         * lib/pipe.c: Likewise.
40349         * lib/pipe.h: Likewise.
40350         * lib/posixtm.c: Likewise.
40351         * lib/posixtm.h: Likewise.
40352         * lib/posixver.c: Likewise.
40353         * lib/printf-frexp.c: Likewise.
40354         * lib/printf-frexp.h: Likewise.
40355         * lib/printf-frexpl.c: Likewise.
40356         * lib/printf-frexpl.h: Likewise.
40357         * lib/printf.c: Likewise.
40358         * lib/progname.c: Likewise.
40359         * lib/progname.h: Likewise.
40360         * lib/progreloc.c: Likewise.
40361         * lib/putenv.c: Likewise.
40362         * lib/quote.c: Likewise.
40363         * lib/quote.h: Likewise.
40364         * lib/quotearg.c: Likewise.
40365         * lib/quotearg.h: Likewise.
40366         * lib/raise.c: Likewise.
40367         * lib/readline.c: Likewise.
40368         * lib/readline.h: Likewise.
40369         * lib/readlink.c: Likewise.
40370         * lib/readtokens.c: Likewise.
40371         * lib/readtokens.h: Likewise.
40372         * lib/readtokens0.c: Likewise.
40373         * lib/readtokens0.h: Likewise.
40374         * lib/readutmp.c: Likewise.
40375         * lib/readutmp.h: Likewise.
40376         * lib/realloc.c: Likewise.
40377         * lib/relocwrapper.c: Likewise.
40378         * lib/rename-dest-slash.c: Likewise.
40379         * lib/rename.c: Likewise.
40380         * lib/rmdir.c: Likewise.
40381         * lib/rpmatch.c: Likewise.
40382         * lib/safe-read.c: Likewise.
40383         * lib/safe-read.h: Likewise.
40384         * lib/safe-write.c: Likewise.
40385         * lib/safe-write.h: Likewise.
40386         * lib/same-inode.h: Likewise.
40387         * lib/same.c: Likewise.
40388         * lib/same.h: Likewise.
40389         * lib/save-cwd.c: Likewise.
40390         * lib/save-cwd.h: Likewise.
40391         * lib/savedir.c: Likewise.
40392         * lib/savedir.h: Likewise.
40393         * lib/savewd.c: Likewise.
40394         * lib/savewd.h: Likewise.
40395         * lib/search.in.h: Likewise.
40396         * lib/setenv.c: Likewise.
40397         * lib/setenv.h: Likewise.
40398         * lib/settime.c: Likewise.
40399         * lib/sh-quote.c: Likewise.
40400         * lib/sh-quote.h: Likewise.
40401         * lib/sig2str.c: Likewise.
40402         * lib/sig2str.h: Likewise.
40403         * lib/signal.in.h: Likewise.
40404         * lib/signbitd.c: Likewise.
40405         * lib/signbitf.c: Likewise.
40406         * lib/signbitl.c: Likewise.
40407         * lib/sigprocmask.c: Likewise.
40408         * lib/sincosl.c: Likewise.
40409         * lib/sleep.c: Likewise.
40410         * lib/sprintf.c: Likewise.
40411         * lib/sqrtl.c: Likewise.
40412         * lib/stat-time.h: Likewise.
40413         * lib/stdio--.h: Likewise.
40414         * lib/stdio-safer.h: Likewise.
40415         * lib/stdlib--.h: Likewise.
40416         * lib/stdlib-safer.h: Likewise.
40417         * lib/stdlib.in.h: Likewise.
40418         * lib/stpcpy.c: Likewise.
40419         * lib/stpncpy.c: Likewise.
40420         * lib/strchrnul.c: Likewise.
40421         * lib/strcspn.c: Likewise.
40422         * lib/strerror.c: Likewise.
40423         * lib/strftime.c: Likewise.
40424         * lib/strftime.h: Likewise.
40425         * lib/striconveh.c: Likewise.
40426         * lib/striconveh.h: Likewise.
40427         * lib/striconveha.c: Likewise.
40428         * lib/striconveha.h: Likewise.
40429         * lib/stripslash.c: Likewise.
40430         * lib/strnlen1.c: Likewise.
40431         * lib/strnlen1.h: Likewise.
40432         * lib/strtod.c: Likewise.
40433         * lib/strtoimax.c: Likewise.
40434         * lib/strtok_r.c: Likewise.
40435         * lib/strtol.c: Likewise.
40436         * lib/strtoll.c: Likewise.
40437         * lib/strtoul.c: Likewise.
40438         * lib/strtoull.c: Likewise.
40439         * lib/sysexits.in.h: Likewise.
40440         * lib/tempname.c: Likewise.
40441         * lib/tempname.h: Likewise.
40442         * lib/timespec.h: Likewise.
40443         * lib/tls.c: Likewise.
40444         * lib/tls.h: Likewise.
40445         * lib/tmpdir.c: Likewise.
40446         * lib/tmpdir.h: Likewise.
40447         * lib/tmpfile-safer.c: Likewise.
40448         * lib/tmpfile.c: Likewise.
40449         * lib/trigl.c: Likewise.
40450         * lib/trigl.h: Likewise.
40451         * lib/trim.c: Likewise.
40452         * lib/trim.h: Likewise.
40453         * lib/trunc.c: Likewise.
40454         * lib/truncf.c: Likewise.
40455         * lib/truncl.c: Likewise.
40456         * lib/tsearch.c: Likewise.
40457         * lib/unicodeio.c: Likewise.
40458         * lib/unicodeio.h: Likewise.
40459         * lib/unistd--.h: Likewise.
40460         * lib/unistd-safer.h: Likewise.
40461         * lib/unistdio/ulc-fprintf.c: Likewise.
40462         * lib/unistdio/ulc-vfprintf.c: Likewise.
40463         * lib/unlinkdir.c: Likewise.
40464         * lib/unlinkdir.h: Likewise.
40465         * lib/unlocked-io.h: Likewise.
40466         * lib/unsetenv.c: Likewise.
40467         * lib/userspec.c: Likewise.
40468         * lib/utime.c: Likewise.
40469         * lib/utimecmp.c: Likewise.
40470         * lib/utimecmp.h: Likewise.
40471         * lib/utimens.c: Likewise.
40472         * lib/verify.h: Likewise.
40473         * lib/verror.c: Likewise.
40474         * lib/verror.h: Likewise.
40475         * lib/version-etc-fsf.c: Likewise.
40476         * lib/version-etc.c: Likewise.
40477         * lib/version-etc.h: Likewise.
40478         * lib/vfprintf.c: Likewise.
40479         * lib/vprintf.c: Likewise.
40480         * lib/vsprintf.c: Likewise.
40481         * lib/w32spawn.h: Likewise.
40482         * lib/wait-process.c: Likewise.
40483         * lib/wait-process.h: Likewise.
40484         * lib/wcwidth.c: Likewise.
40485         * lib/write-any-file.c: Likewise.
40486         * lib/xalloc-die.c: Likewise.
40487         * lib/xalloc.h: Likewise.
40488         * lib/xasprintf.c: Likewise.
40489         * lib/xgetcwd.c: Likewise.
40490         * lib/xgetcwd.h: Likewise.
40491         * lib/xgetdomainname.c: Likewise.
40492         * lib/xgetdomainname.h: Likewise.
40493         * lib/xgethostname.c: Likewise.
40494         * lib/xmalloc.c: Likewise.
40495         * lib/xmalloca.c: Likewise.
40496         * lib/xmalloca.h: Likewise.
40497         * lib/xmemcoll.c: Likewise.
40498         * lib/xnanosleep.c: Likewise.
40499         * lib/xreadlink.c: Likewise.
40500         * lib/xreadlink.h: Likewise.
40501         * lib/xsetenv.c: Likewise.
40502         * lib/xsetenv.h: Likewise.
40503         * lib/xstriconv.c: Likewise.
40504         * lib/xstriconv.h: Likewise.
40505         * lib/xstrndup.c: Likewise.
40506         * lib/xstrndup.h: Likewise.
40507         * lib/xstrtod.c: Likewise.
40508         * lib/xstrtod.h: Likewise.
40509         * lib/xstrtol-error.c: Likewise.
40510         * lib/xstrtol.c: Likewise.
40511         * lib/xstrtol.h: Likewise.
40512         * lib/xtime.h: Likewise.
40513         * lib/xvasprintf.c: Likewise.
40514         * lib/xvasprintf.h: Likewise.
40515         * lib/yesno.c: Likewise.
40516         * lib/yesno.h: Likewise.
40517         * posix-modules: Likewise.
40518         * tests/test-alloca-opt.c: Likewise.
40519         * tests/test-arcfour.c: Likewise.
40520         * tests/test-arctwo.c: Likewise.
40521         * tests/test-argmatch.c: Likewise.
40522         * tests/test-argp-2.sh: Likewise.
40523         * tests/test-argp.c: Likewise.
40524         * tests/test-arpa_inet.c: Likewise.
40525         * tests/test-array_list.c: Likewise.
40526         * tests/test-array_oset.c: Likewise.
40527         * tests/test-atexit.c: Likewise.
40528         * tests/test-avltree_list.c: Likewise.
40529         * tests/test-avltree_oset.c: Likewise.
40530         * tests/test-avltreehash_list.c: Likewise.
40531         * tests/test-base64.c: Likewise.
40532         * tests/test-binary-io.c: Likewise.
40533         * tests/test-byteswap.c: Likewise.
40534         * tests/test-c-ctype.c: Likewise.
40535         * tests/test-c-strcasecmp.c: Likewise.
40536         * tests/test-c-strcasestr.c: Likewise.
40537         * tests/test-c-strncasecmp.c: Likewise.
40538         * tests/test-c-strstr.c: Likewise.
40539         * tests/test-canonicalize-lgpl.c: Likewise.
40540         * tests/test-canonicalize.c: Likewise.
40541         * tests/test-carray_list.c: Likewise.
40542         * tests/test-ceilf.c: Likewise.
40543         * tests/test-ceill.c: Likewise.
40544         * tests/test-count-one-bits.c: Likewise.
40545         * tests/test-crc.c: Likewise.
40546         * tests/test-dirname.c: Likewise.
40547         * tests/test-fbufmode.c: Likewise.
40548         * tests/test-fcntl.c: Likewise.
40549         * tests/test-fflush.c: Likewise.
40550         * tests/test-floorf.c: Likewise.
40551         * tests/test-floorl.c: Likewise.
40552         * tests/test-fopen.c: Likewise.
40553         * tests/test-fprintf-posix.c: Likewise.
40554         * tests/test-fprintf-posix.h: Likewise.
40555         * tests/test-fpurge.c: Likewise.
40556         * tests/test-freadable.c: Likewise.
40557         * tests/test-freadahead.c: Likewise.
40558         * tests/test-freading.c: Likewise.
40559         * tests/test-freopen.c: Likewise.
40560         * tests/test-frexp.c: Likewise.
40561         * tests/test-frexpl.c: Likewise.
40562         * tests/test-fseek.c: Likewise.
40563         * tests/test-fseeko.c: Likewise.
40564         * tests/test-fseterr.c: Likewise.
40565         * tests/test-fstrcmp.c: Likewise.
40566         * tests/test-ftell.c: Likewise.
40567         * tests/test-ftello.c: Likewise.
40568         * tests/test-fwritable.c: Likewise.
40569         * tests/test-fwriting.c: Likewise.
40570         * tests/test-getaddrinfo.c: Likewise.
40571         * tests/test-getpass.c: Likewise.
40572         * tests/test-gettimeofday.c: Likewise.
40573         * tests/test-hmac-md5.c: Likewise.
40574         * tests/test-hmac-sha1.c: Likewise.
40575         * tests/test-iconv.c: Likewise.
40576         * tests/test-iconvme.c: Likewise.
40577         * tests/test-inttypes.c: Likewise.
40578         * tests/test-isnan.c: Likewise.
40579         * tests/test-isnanf.c: Likewise.
40580         * tests/test-isnanl-nolibm.c: Likewise.
40581         * tests/test-isnanl.c: Likewise.
40582         * tests/test-isnanl.h: Likewise.
40583         * tests/test-ldexpl.c: Likewise.
40584         * tests/test-linked_list.c: Likewise.
40585         * tests/test-linkedhash_list.c: Likewise.
40586         * tests/test-locale.c: Likewise.
40587         * tests/test-localename.c: Likewise.
40588         * tests/test-lock.c: Likewise.
40589         * tests/test-lseek.c: Likewise.
40590         * tests/test-malloca.c: Likewise.
40591         * tests/test-math.c: Likewise.
40592         * tests/test-mbscasecmp.c: Likewise.
40593         * tests/test-mbscasestr1.c: Likewise.
40594         * tests/test-mbscasestr2.c: Likewise.
40595         * tests/test-mbscasestr3.c: Likewise.
40596         * tests/test-mbscasestr4.c: Likewise.
40597         * tests/test-mbschr.c: Likewise.
40598         * tests/test-mbscspn.c: Likewise.
40599         * tests/test-mbsncasecmp.c: Likewise.
40600         * tests/test-mbspbrk.c: Likewise.
40601         * tests/test-mbspcasecmp.c: Likewise.
40602         * tests/test-mbsrchr.c: Likewise.
40603         * tests/test-mbsspn.c: Likewise.
40604         * tests/test-mbsstr1.c: Likewise.
40605         * tests/test-mbsstr2.c: Likewise.
40606         * tests/test-mbsstr3.c: Likewise.
40607         * tests/test-md5.c: Likewise.
40608         * tests/test-memmem.c: Likewise.
40609         * tests/test-netinet_in.c: Likewise.
40610         * tests/test-open.c: Likewise.
40611         * tests/test-printf-frexp.c: Likewise.
40612         * tests/test-printf-frexpl.c: Likewise.
40613         * tests/test-printf-posix.c: Likewise.
40614         * tests/test-printf-posix.h: Likewise.
40615         * tests/test-rbtree_list.c: Likewise.
40616         * tests/test-rbtree_oset.c: Likewise.
40617         * tests/test-rbtreehash_list.c: Likewise.
40618         * tests/test-read-file.c: Likewise.
40619         * tests/test-rijndael.c: Likewise.
40620         * tests/test-search.c: Likewise.
40621         * tests/test-signbit.c: Likewise.
40622         * tests/test-sleep.c: Likewise.
40623         * tests/test-snprintf-posix.c: Likewise.
40624         * tests/test-snprintf-posix.h: Likewise.
40625         * tests/test-snprintf.c: Likewise.
40626         * tests/test-sprintf-posix.c: Likewise.
40627         * tests/test-sprintf-posix.h: Likewise.
40628         * tests/test-stat-time.c: Likewise.
40629         * tests/test-stdbool.c: Likewise.
40630         * tests/test-stdint.c: Likewise.
40631         * tests/test-stdio.c: Likewise.
40632         * tests/test-stdlib.c: Likewise.
40633         * tests/test-stpncpy.c: Likewise.
40634         * tests/test-strcasestr.c: Likewise.
40635         * tests/test-striconv.c: Likewise.
40636         * tests/test-striconveh.c: Likewise.
40637         * tests/test-striconveha.c: Likewise.
40638         * tests/test-string.c: Likewise.
40639         * tests/test-sys_select.c: Likewise.
40640         * tests/test-sys_socket.c: Likewise.
40641         * tests/test-sys_stat.c: Likewise.
40642         * tests/test-sys_time.c: Likewise.
40643         * tests/test-sysexits.c: Likewise.
40644         * tests/test-time.c: Likewise.
40645         * tests/test-tls.c: Likewise.
40646         * tests/test-trunc.c: Likewise.
40647         * tests/test-truncf.c: Likewise.
40648         * tests/test-truncl.c: Likewise.
40649         * tests/test-unistd.c: Likewise.
40650         * tests/test-vasnprintf-posix.c: Likewise.
40651         * tests/test-vasnprintf-posix2.c: Likewise.
40652         * tests/test-vasnprintf.c: Likewise.
40653         * tests/test-vasprintf-posix.c: Likewise.
40654         * tests/test-vasprintf.c: Likewise.
40655         * tests/test-verify.c: Likewise.
40656         * tests/test-vfprintf-posix.c: Likewise.
40657         * tests/test-vprintf-posix.c: Likewise.
40658         * tests/test-vsnprintf-posix.c: Likewise.
40659         * tests/test-vsnprintf.c: Likewise.
40660         * tests/test-vsprintf-posix.c: Likewise.
40661         * tests/test-wchar.c: Likewise.
40662         * tests/test-wctype.c: Likewise.
40663         * tests/test-wcwidth.c: Likewise.
40664         * tests/test-xstrtol.c: Likewise.
40665         * tests/test-xvasprintf.c: Likewise.
40666         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40667         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40668         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40669         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40670         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40671         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40672         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40673         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40674         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40675         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40676         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40677         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40678         * tests/uniname/test-uninames.c: Likewise.
40679         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40680         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40681         * tests/unistdio/test-u16-printf1.h: Likewise.
40682         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40683         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40684         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40685         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40686         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40687         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40688         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40689         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40690         * tests/unistdio/test-u32-printf1.h: Likewise.
40691         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40692         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40693         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40694         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40695         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40696         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40697         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40698         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40699         * tests/unistdio/test-u8-printf1.h: Likewise.
40700         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40701         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40702         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40703         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40704         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40705         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40706         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40707         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40708         * tests/unistdio/test-ulc-printf1.h: Likewise.
40709         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40710         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40711         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40712         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40713         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40714         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40715         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40716         * tests/uniwidth/test-u16-width.c: Likewise.
40717         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40718         * tests/uniwidth/test-u32-width.c: Likewise.
40719         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40720         * tests/uniwidth/test-u8-width.c: Likewise.
40721         * tests/uniwidth/test-uc_width.c: Likewise.
40722         * config/srclist-update: Likewise.
40723         (fixlicense): Update to GPLv3+.
40724
40725         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40726         * tests/test-tsearch.c: Change copyright notice.
40727
40728         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40729         * lib/c-strcaseeq.h: Change copyright notice.
40730         * lib/streq.h: Likewise.
40731         * lib/uniconv.h: Likewise.
40732         * lib/uniconv/u-conv-from-enc.h: Likewise.
40733         * lib/uniconv/u-conv-to-enc.h: Likewise.
40734         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40735         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40736         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40737         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40738         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40739         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40740         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40741         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40742         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40743         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40744         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40745         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40746         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40747         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40748         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40749         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40750         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40751         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40752         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40753         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40754         * lib/uniname.h: Likewise.
40755         * lib/uniname/uniname.c: Likewise.
40756         * lib/unistdio.h: Likewise.
40757         * lib/unistdio/u-asnprintf.h: Likewise.
40758         * lib/unistdio/u-asprintf.h: Likewise.
40759         * lib/unistdio/u-printf-args.c: Likewise.
40760         * lib/unistdio/u-printf-args.h: Likewise.
40761         * lib/unistdio/u-printf-parse.h: Likewise.
40762         * lib/unistdio/u-snprintf.h: Likewise.
40763         * lib/unistdio/u-sprintf.h: Likewise.
40764         * lib/unistdio/u-vasprintf.h: Likewise.
40765         * lib/unistdio/u-vsnprintf.h: Likewise.
40766         * lib/unistdio/u-vsprintf.h: Likewise.
40767         * lib/unistdio/u16-asnprintf.c: Likewise.
40768         * lib/unistdio/u16-asprintf.c: Likewise.
40769         * lib/unistdio/u16-printf-parse.c: Likewise.
40770         * lib/unistdio/u16-snprintf.c: Likewise.
40771         * lib/unistdio/u16-sprintf.c: Likewise.
40772         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40773         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40774         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40775         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40776         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40777         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40778         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40779         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40780         * lib/unistdio/u16-vasnprintf.c: Likewise.
40781         * lib/unistdio/u16-vasprintf.c: Likewise.
40782         * lib/unistdio/u16-vsnprintf.c: Likewise.
40783         * lib/unistdio/u16-vsprintf.c: Likewise.
40784         * lib/unistdio/u32-asnprintf.c: Likewise.
40785         * lib/unistdio/u32-asprintf.c: Likewise.
40786         * lib/unistdio/u32-printf-parse.c: Likewise.
40787         * lib/unistdio/u32-snprintf.c: Likewise.
40788         * lib/unistdio/u32-sprintf.c: Likewise.
40789         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40790         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40791         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40792         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40793         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40794         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40795         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40796         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40797         * lib/unistdio/u32-vasnprintf.c: Likewise.
40798         * lib/unistdio/u32-vasprintf.c: Likewise.
40799         * lib/unistdio/u32-vsnprintf.c: Likewise.
40800         * lib/unistdio/u32-vsprintf.c: Likewise.
40801         * lib/unistdio/u8-asnprintf.c: Likewise.
40802         * lib/unistdio/u8-asprintf.c: Likewise.
40803         * lib/unistdio/u8-printf-parse.c: Likewise.
40804         * lib/unistdio/u8-snprintf.c: Likewise.
40805         * lib/unistdio/u8-sprintf.c: Likewise.
40806         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40807         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40808         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40809         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40810         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40811         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40812         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40813         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40814         * lib/unistdio/u8-vasnprintf.c: Likewise.
40815         * lib/unistdio/u8-vasprintf.c: Likewise.
40816         * lib/unistdio/u8-vsnprintf.c: Likewise.
40817         * lib/unistdio/u8-vsprintf.c: Likewise.
40818         * lib/unistdio/ulc-asnprintf.c: Likewise.
40819         * lib/unistdio/ulc-asprintf.c: Likewise.
40820         * lib/unistdio/ulc-printf-parse.c: Likewise.
40821         * lib/unistdio/ulc-snprintf.c: Likewise.
40822         * lib/unistdio/ulc-sprintf.c: Likewise.
40823         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40824         * lib/unistdio/ulc-vasprintf.c: Likewise.
40825         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40826         * lib/unistdio/ulc-vsprintf.c: Likewise.
40827         * lib/unistr.h: Likewise.
40828         * lib/unistr/u-cpy-alloc.h: Likewise.
40829         * lib/unistr/u-cpy.h: Likewise.
40830         * lib/unistr/u-endswith.h: Likewise.
40831         * lib/unistr/u-move.h: Likewise.
40832         * lib/unistr/u-set.h: Likewise.
40833         * lib/unistr/u-startswith.h: Likewise.
40834         * lib/unistr/u-stpcpy.h: Likewise.
40835         * lib/unistr/u-stpncpy.h: Likewise.
40836         * lib/unistr/u-strcat.h: Likewise.
40837         * lib/unistr/u-strcpy.h: Likewise.
40838         * lib/unistr/u-strcspn.h: Likewise.
40839         * lib/unistr/u-strdup.h: Likewise.
40840         * lib/unistr/u-strlen.h: Likewise.
40841         * lib/unistr/u-strncat.h: Likewise.
40842         * lib/unistr/u-strncpy.h: Likewise.
40843         * lib/unistr/u-strnlen.h: Likewise.
40844         * lib/unistr/u-strpbrk.h: Likewise.
40845         * lib/unistr/u-strspn.h: Likewise.
40846         * lib/unistr/u-strstr.h: Likewise.
40847         * lib/unistr/u-strtok.h: Likewise.
40848         * lib/unistr/u16-check.c: Likewise.
40849         * lib/unistr/u16-chr.c: Likewise.
40850         * lib/unistr/u16-cmp.c: Likewise.
40851         * lib/unistr/u16-cpy-alloc.c: Likewise.
40852         * lib/unistr/u16-cpy.c: Likewise.
40853         * lib/unistr/u16-endswith.c: Likewise.
40854         * lib/unistr/u16-mblen.c: Likewise.
40855         * lib/unistr/u16-mbsnlen.c: Likewise.
40856         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40857         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40858         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40859         * lib/unistr/u16-mbtouc.c: Likewise.
40860         * lib/unistr/u16-mbtoucr.c: Likewise.
40861         * lib/unistr/u16-move.c: Likewise.
40862         * lib/unistr/u16-next.c: Likewise.
40863         * lib/unistr/u16-prev.c: Likewise.
40864         * lib/unistr/u16-set.c: Likewise.
40865         * lib/unistr/u16-startswith.c: Likewise.
40866         * lib/unistr/u16-stpcpy.c: Likewise.
40867         * lib/unistr/u16-stpncpy.c: Likewise.
40868         * lib/unistr/u16-strcat.c: Likewise.
40869         * lib/unistr/u16-strchr.c: Likewise.
40870         * lib/unistr/u16-strcmp.c: Likewise.
40871         * lib/unistr/u16-strcpy.c: Likewise.
40872         * lib/unistr/u16-strcspn.c: Likewise.
40873         * lib/unistr/u16-strdup.c: Likewise.
40874         * lib/unistr/u16-strlen.c: Likewise.
40875         * lib/unistr/u16-strmblen.c: Likewise.
40876         * lib/unistr/u16-strmbtouc.c: Likewise.
40877         * lib/unistr/u16-strncat.c: Likewise.
40878         * lib/unistr/u16-strncmp.c: Likewise.
40879         * lib/unistr/u16-strncpy.c: Likewise.
40880         * lib/unistr/u16-strnlen.c: Likewise.
40881         * lib/unistr/u16-strpbrk.c: Likewise.
40882         * lib/unistr/u16-strrchr.c: Likewise.
40883         * lib/unistr/u16-strspn.c: Likewise.
40884         * lib/unistr/u16-strstr.c: Likewise.
40885         * lib/unistr/u16-strtok.c: Likewise.
40886         * lib/unistr/u16-to-u32.c: Likewise.
40887         * lib/unistr/u16-to-u8.c: Likewise.
40888         * lib/unistr/u16-uctomb-aux.c: Likewise.
40889         * lib/unistr/u16-uctomb.c: Likewise.
40890         * lib/unistr/u32-check.c: Likewise.
40891         * lib/unistr/u32-chr.c: Likewise.
40892         * lib/unistr/u32-cmp.c: Likewise.
40893         * lib/unistr/u32-cpy-alloc.c: Likewise.
40894         * lib/unistr/u32-cpy.c: Likewise.
40895         * lib/unistr/u32-endswith.c: Likewise.
40896         * lib/unistr/u32-mblen.c: Likewise.
40897         * lib/unistr/u32-mbsnlen.c: Likewise.
40898         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40899         * lib/unistr/u32-mbtouc.c: Likewise.
40900         * lib/unistr/u32-mbtoucr.c: Likewise.
40901         * lib/unistr/u32-move.c: Likewise.
40902         * lib/unistr/u32-next.c: Likewise.
40903         * lib/unistr/u32-prev.c: Likewise.
40904         * lib/unistr/u32-set.c: Likewise.
40905         * lib/unistr/u32-startswith.c: Likewise.
40906         * lib/unistr/u32-stpcpy.c: Likewise.
40907         * lib/unistr/u32-stpncpy.c: Likewise.
40908         * lib/unistr/u32-strcat.c: Likewise.
40909         * lib/unistr/u32-strchr.c: Likewise.
40910         * lib/unistr/u32-strcmp.c: Likewise.
40911         * lib/unistr/u32-strcpy.c: Likewise.
40912         * lib/unistr/u32-strcspn.c: Likewise.
40913         * lib/unistr/u32-strdup.c: Likewise.
40914         * lib/unistr/u32-strlen.c: Likewise.
40915         * lib/unistr/u32-strmblen.c: Likewise.
40916         * lib/unistr/u32-strmbtouc.c: Likewise.
40917         * lib/unistr/u32-strncat.c: Likewise.
40918         * lib/unistr/u32-strncmp.c: Likewise.
40919         * lib/unistr/u32-strncpy.c: Likewise.
40920         * lib/unistr/u32-strnlen.c: Likewise.
40921         * lib/unistr/u32-strpbrk.c: Likewise.
40922         * lib/unistr/u32-strrchr.c: Likewise.
40923         * lib/unistr/u32-strspn.c: Likewise.
40924         * lib/unistr/u32-strstr.c: Likewise.
40925         * lib/unistr/u32-strtok.c: Likewise.
40926         * lib/unistr/u32-to-u16.c: Likewise.
40927         * lib/unistr/u32-to-u8.c: Likewise.
40928         * lib/unistr/u32-uctomb.c: Likewise.
40929         * lib/unistr/u8-check.c: Likewise.
40930         * lib/unistr/u8-chr.c: Likewise.
40931         * lib/unistr/u8-cmp.c: Likewise.
40932         * lib/unistr/u8-cpy-alloc.c: Likewise.
40933         * lib/unistr/u8-cpy.c: Likewise.
40934         * lib/unistr/u8-endswith.c: Likewise.
40935         * lib/unistr/u8-mblen.c: Likewise.
40936         * lib/unistr/u8-mbsnlen.c: Likewise.
40937         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40938         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40939         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40940         * lib/unistr/u8-mbtouc.c: Likewise.
40941         * lib/unistr/u8-mbtoucr.c: Likewise.
40942         * lib/unistr/u8-move.c: Likewise.
40943         * lib/unistr/u8-next.c: Likewise.
40944         * lib/unistr/u8-prev.c: Likewise.
40945         * lib/unistr/u8-set.c: Likewise.
40946         * lib/unistr/u8-startswith.c: Likewise.
40947         * lib/unistr/u8-stpcpy.c: Likewise.
40948         * lib/unistr/u8-stpncpy.c: Likewise.
40949         * lib/unistr/u8-strcat.c: Likewise.
40950         * lib/unistr/u8-strchr.c: Likewise.
40951         * lib/unistr/u8-strcmp.c: Likewise.
40952         * lib/unistr/u8-strcpy.c: Likewise.
40953         * lib/unistr/u8-strcspn.c: Likewise.
40954         * lib/unistr/u8-strdup.c: Likewise.
40955         * lib/unistr/u8-strlen.c: Likewise.
40956         * lib/unistr/u8-strmblen.c: Likewise.
40957         * lib/unistr/u8-strmbtouc.c: Likewise.
40958         * lib/unistr/u8-strncat.c: Likewise.
40959         * lib/unistr/u8-strncmp.c: Likewise.
40960         * lib/unistr/u8-strncpy.c: Likewise.
40961         * lib/unistr/u8-strnlen.c: Likewise.
40962         * lib/unistr/u8-strpbrk.c: Likewise.
40963         * lib/unistr/u8-strrchr.c: Likewise.
40964         * lib/unistr/u8-strspn.c: Likewise.
40965         * lib/unistr/u8-strstr.c: Likewise.
40966         * lib/unistr/u8-strtok.c: Likewise.
40967         * lib/unistr/u8-to-u16.c: Likewise.
40968         * lib/unistr/u8-to-u32.c: Likewise.
40969         * lib/unistr/u8-uctomb-aux.c: Likewise.
40970         * lib/unistr/u8-uctomb.c: Likewise.
40971         * lib/unitypes.h: Likewise.
40972         * lib/uniwidth.h: Likewise.
40973         * lib/uniwidth/cjk.h: Likewise.
40974         * lib/uniwidth/u16-strwidth.c: Likewise.
40975         * lib/uniwidth/u16-width.c: Likewise.
40976         * lib/uniwidth/u32-strwidth.c: Likewise.
40977         * lib/uniwidth/u32-width.c: Likewise.
40978         * lib/uniwidth/u8-strwidth.c: Likewise.
40979         * lib/uniwidth/u8-width.c: Likewise.
40980         * lib/uniwidth/width.c: Likewise.
40981
40982 2007-10-07  Bruno Haible  <bruno@clisp.org>
40983
40984         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40985         The file is still under LGPL (see modules/inttypes).
40986
40987 2007-10-06  Bruno Haible  <bruno@clisp.org>
40988
40989         * modules/trunc (Dependencies): Add 'extensions'.
40990         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40991         Reported by Ben Pfaff <blp@gnu.org>.
40992
40993 2007-10-06  Bruno Haible  <bruno@clisp.org>
40994
40995         * modules/freopen-tests: New file.
40996         * tests/test-freopen.c: New file.
40997
40998         * modules/fopen-tests: New file.
40999         * tests/test-fopen.c: New file.
41000
41001         * modules/fopen: New file.
41002         * lib/fopen.c: New file.
41003         * m4/fopen.m4: New file.
41004         * modules/freopen: New file.
41005         * lib/freopen.c: New file.
41006         * m4/freopen.m4: New file.
41007         * lib/stdio.in.h (fopen, freopen): New declarations.
41008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41009         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41010         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41011         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41012         * doc/functions/fopen.texi: Mention the 'fopen' module.
41013         * doc/functions/freopen.texi: Mention the 'freopen' module.
41014
41015 2007-10-06  Bruno Haible  <bruno@clisp.org>
41016
41017         * modules/open-tests: New file.
41018         * tests/test-open.c: New file.
41019
41020         * modules/open: New file.
41021         * lib/open.c: New file.
41022         * m4/open.m4: New file.
41023         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41024         lib/open.c does.
41025         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41026         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41027         macros.
41028         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41029         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41030         REPLACE_OPEN.
41031         * doc/functions/open.texi: Mention the 'open' module.
41032
41033 2007-10-04  Bruno Haible  <bruno@clisp.org>
41034
41035         * modules/ceill-tests: New file.
41036         * tests/test-ceill.c: New file.
41037
41038         * modules/ceill: New file.
41039         * lib/ceill.c: Replace entire file.
41040         * m4/ceill.m4: New file.
41041         * lib/math.in.h (ceill): Replace declaration.
41042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41043         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41044         * doc/functions/ceill.texi: Mention the 'ceill' module.
41045         * modules/mathl (Files): Remove lib/ceill.c.
41046         (Depends-on): Add ceill.
41047
41048 2007-10-04  Bruno Haible  <bruno@clisp.org>
41049
41050         * modules/ceilf-tests: New file.
41051         * tests/test-ceilf.c: New file.
41052
41053         * modules/ceilf: New file.
41054         * lib/ceil.c: New file.
41055         * lib/ceilf.c: New file.
41056         * m4/ceilf.m4: New file.
41057         * lib/math.in.h (ceilf): New declaration.
41058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41059         HAVE_DECL_CEILF.
41060         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41061         HAVE_DECL_CEILF.
41062         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41063
41064 2007-10-04  Bruno Haible  <bruno@clisp.org>
41065
41066         * modules/floorl-tests: New file.
41067         * tests/test-floorl.c: New file.
41068
41069         * modules/floorl: New file.
41070         * lib/floorl.c: Replace entire file.
41071         * m4/floorl.m4: New file.
41072         * lib/math.in.h (floorl): Replace declaration.
41073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41074         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41075         * doc/functions/floorl.texi: Mention the 'floorl' module.
41076         * modules/mathl (Files): Remove lib/floorl.c.
41077         (Depends-on): Add floorl.
41078
41079 2007-10-04  Bruno Haible  <bruno@clisp.org>
41080
41081         * modules/floorf-tests: New file.
41082         * tests/test-floorf.c: New file.
41083
41084         * modules/floorf: New file.
41085         * lib/floor.c: New file.
41086         * lib/floorf.c: New file.
41087         * m4/floorf.m4: New file.
41088         * lib/math.in.h (floorf): New declaration.
41089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41090         HAVE_DECL_FLOORF.
41091         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41092         HAVE_DECL_FLOORF.
41093         * doc/functions/floorf.texi: Mention the 'floorf' module.
41094
41095 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41096             Bruno Haible  <bruno@clisp.org>
41097
41098         Advertise for the Git server instead of the CVS server.
41099         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41100         repository instead of the CVS one.
41101         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41102         about all VCS systems generically.
41103         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41104
41105 2007-10-04  Bruno Haible  <bruno@clisp.org>
41106
41107         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41108         means.
41109         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41110
41111 2007-10-04  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/truncl-tests: New file.
41114         * tests/test-truncl.c: New file.
41115
41116         * modules/truncl: New file.
41117         * lib/truncl.c: New file.
41118         * m4/truncl.m4: New file.
41119         * lib/math.in.h (truncl): New declaration.
41120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41121         HAVE_DECL_TRUNCL.
41122         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41123         HAVE_DECL_TRUNCL.
41124         * doc/functions/truncl.texi: Mention the 'truncl' module.
41125
41126 2007-10-04  Bruno Haible  <bruno@clisp.org>
41127
41128         * modules/truncf-tests: New file.
41129         * tests/test-truncf.c: New file.
41130
41131         * modules/truncf: New file.
41132         * lib/trunc.c: Make paramerizable through USE_* macros.
41133         * lib/truncf.c: New file.
41134         * m4/truncf.m4: New file.
41135         * lib/math.in.h (truncf): New declaration.
41136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41137         HAVE_DECL_TRUNCF.
41138         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41139         HAVE_DECL_TRUNCF.
41140         * doc/functions/truncf.texi: Mention the 'truncf' module.
41141
41142 2007-10-03  Bruno Haible  <bruno@clisp.org>
41143
41144         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41145         augmentation also for tests modules.
41146         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41147         * modules/atexit-tests (Makefile.am): Likewise.
41148         * modules/binary-io-tests (Makefile.am): Likewise.
41149         * modules/c-strcase-tests (Makefile.am): Likewise.
41150         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41151         * modules/canonicalize-tests (Makefile.am): Likewise.
41152         * modules/closein-tests (Makefile.am): Likewise.
41153         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41154         * modules/freadahead-tests (Makefile.am): Likewise.
41155         * modules/fseek-tests (Makefile.am): Likewise.
41156         * modules/fseeko-tests (Makefile.am): Likewise.
41157         * modules/ftell-tests (Makefile.am): Likewise.
41158         * modules/ftello-tests (Makefile.am): Likewise.
41159         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41160         * modules/isnanl-tests (Makefile.am): Likewise.
41161         * modules/lseek-tests (Makefile.am): Likewise.
41162         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41163         * modules/mbscasestr-tests (Makefile.am): Likewise.
41164         * modules/mbschr-tests (Makefile.am): Likewise.
41165         * modules/mbscspn-tests (Makefile.am): Likewise.
41166         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41167         * modules/mbspbrk-tests (Makefile.am): Likewise.
41168         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41169         * modules/mbsrchr-tests (Makefile.am): Likewise.
41170         * modules/mbsspn-tests (Makefile.am): Likewise.
41171         * modules/mbsstr-tests (Makefile.am): Likewise.
41172         * modules/printf-posix-tests (Makefile.am): Likewise.
41173         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41174         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41175         * modules/tsearch-tests (Makefile.am): Likewise.
41176         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41177         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41178         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41179         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41180         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41181         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41182         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41183         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41184         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41185         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41186         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41187         * modules/xstrtol-tests (Makefile.am): Likewise.
41188         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41189         * modules/yesno-tests (Makefile.am): Likewise.
41190
41191 2007-10-03  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/trunc-tests: New file.
41194         * tests/test-trunc.c: New file.
41195
41196         * modules/trunc: New file.
41197         * lib/trunc.c: New file.
41198         * m4/trunc.m4: New file.
41199         * lib/math.in.h (trunc): New declaration.
41200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41201         HAVE_DECL_TRUNC.
41202         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41203         HAVE_DECL_TRUNC.
41204         * doc/functions/trunc.texi: Mention the 'trunc' module.
41205
41206 2007-10-03  Bruno Haible  <bruno@clisp.org>
41207
41208         * tests/test-fpending.c: New file, mostly copied
41209         from coreutils/lib/t-fpending.c.
41210         * modules/fpending-tests: New file.
41211
41212 2007-10-03  Bruno Haible  <bruno@clisp.org>
41213
41214         Port the stdio extensions to QNX (untested).
41215         * lib/fseterr.c (fseterr): Add support for QNX.
41216         * lib/fbufmode.c (fbufmode): Likewise.
41217         * lib/freadable.c (freadable): Likewise.
41218         * lib/fwritable.c (fwritable): Likewise.
41219         * lib/freading.c (freading): Likewise.
41220         * lib/fwriting.c (fwriting): Likewise.
41221         * lib/freadahead.c (freadahed): Likewise.
41222         * lib/fpurge.c (fpurge): Likewise.
41223         * lib/fseeko.c (rpl_fseeko): Likewise.
41224
41225 2007-10-03  Bruno Haible  <bruno@clisp.org>
41226             Jim Meyering  <jim@meyering.net>
41227             Eric Blake  <ebb9@byu.net>
41228
41229         * doc/relocatable.texi: Use @command instead of @program.
41230
41231 2007-10-02  Jim Meyering  <jim@meyering.net>
41232
41233         Perform one more "_.h" -> ".in.h" substitution.
41234         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41235         instead of unistd_.h here, too.
41236
41237 2007-10-01  Bruno Haible  <bruno@clisp.org>
41238
41239         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41240         Needed for the alloca-opt module.
41241
41242 2007-09-30  Bruno Haible  <bruno@clisp.org>
41243
41244         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41245         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41246         alloca_.h.
41247         * lib/argz.in.h: Renamed from lib/argz_.h.
41248         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41249         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41250         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41251         byteswap_.h.
41252         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41253         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41254         dirent_.h.
41255         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41256         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41257         fcntl_.h.
41258         * lib/float.in.h: Renamed from lib/float_.h.
41259         * modules/float (Files, Makefile.am): Use float.in.h instead of
41260         float_.h.
41261         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41262         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41263         fnmatch_.h.
41264         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41265         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41266         getopt_.h.
41267         * lib/glob.in.h: Renamed from lib/glob_.h.
41268         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41269         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41270         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41271         iconv_.h.
41272         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41273         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41274         inttypes_.h.
41275         * lib/locale.in.h: Renamed from lib/locale_.h.
41276         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41277         locale_.h.
41278         * lib/math.in.h: Renamed from lib/math_.h.
41279         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41280         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41281         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41282         of netinet_in_.h. Add dependency.
41283         * lib/poll.in.h: Renamed from lib/poll_.h.
41284         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41285         * lib/search.in.h: Renamed from lib/search_.h.
41286         * modules/search (Files, Makefile.am): Use search.in.h instead of
41287         search_.h.
41288         * lib/signal.in.h: Renamed from lib/signal_.h.
41289         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41290         _signal.h.
41291         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41292         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41293         stdbool_.h.
41294         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41295         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41296         stdint_.h.
41297         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41298         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41299         stdio_.h.
41300         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41301         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41302         stdlib_.h.
41303         * lib/string.in.h: Renamed from lib/string_.h.
41304         * modules/string (Files, Makefile.am): Use string.in.h instead of
41305         string_.h.
41306         * doc/gnulib-tool.texi (Initial import): Update.
41307         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41308         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41309         of sys_select_.h. Add dependency.
41310         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41311         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41312         of sys_socket_.h.
41313         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41314         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41315         sys_stat_.h.
41316         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41317         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41318         sys_time_.h.
41319         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41320         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41321         sysexits_.h.
41322         * lib/time.in.h: Renamed from lib/time_.h.
41323         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41324         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41325         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41326         unistd_.h.
41327         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41328         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41329         wchar_.h.
41330         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41331         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41332         wctype_.h.
41333         * build-aux/bootstrap (slurp): Update.
41334         * lib/.cppi-disable: Update.
41335
41336 2007-09-30  Bruno Haible  <bruno@clisp.org>
41337
41338         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41339         Needed on BeOS.
41340
41341 2007-09-30  Bruno Haible  <bruno@clisp.org>
41342
41343         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41344
41345 2007-09-29  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41348
41349 2007-09-29  Bruno Haible  <bruno@clisp.org>
41350
41351         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41352         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41353         * build-aux/install-reloc: Compile also areadlink.c.
41354         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41355
41356 2007-09-29  Bruno Haible  <bruno@clisp.org>
41357
41358         * gnulib-tool (func_emit_initmacro_done): Indentation.
41359
41360 2007-09-29  Bruno Haible  <bruno@clisp.org>
41361
41362         * README: Add CVS checkout update instructions.
41363         Info from Bob Proulx <bob@proulx.com>.
41364
41365 2007-09-28  Eric Blake  <ebb9@byu.net>
41366
41367         Provide move-if-change.
41368         * build-aux/move-if-change: New file, based on best practice
41369         rather than any canonical upstream location.
41370
41371 2007-09-28  Jim Meyering  <jim@meyering.net>
41372
41373         Fix canonicalize loop-detection corner case.
41374         Do not attempt to stat the symlink values stored via seen_triple.
41375         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41376         on linux-2.6.18, (but not 2.6.22).
41377         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41378         triple_compare.  The former compares dev,ino,filename, while the latter
41379         would actually stat dirname(filename) when dev and ino were equal.
41380         * lib/hash-triple.c: Install <string.h>.
41381         (STREQ): Define.
41382         (triple_compare_ino_str): New function.
41383         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41384
41385 2007-09-28  Eric Blake  <ebb9@byu.net>
41386
41387         Enforce that AC_REPLACE_FUNCS files exist.
41388         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41389         override check for typos.
41390
41391         Fix test-closein on Solaris 10.
41392         * tests/test-closein.c (main): Don't assume stdin can be inherited
41393         closed on all systems.
41394         * tests/test-closein.sh: Likewise.
41395         Reported by Piotr Tarnowski.
41396
41397 2007-09-28  Jim Meyering  <jim@meyering.net>
41398
41399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41400
41401 2007-09-27  Jim Meyering  <jim@meyering.net>
41402
41403         canonicalize: Avoid a false-positive cycle failure.
41404         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41405         Sort.  Remove cycle-check.
41406         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41407         not cycle-check.h.
41408         (seen_triple): New function.
41409         (canonicalize_filename_mode): Use it instead of cycle-check.
41410         * tests/test-canonicalize.c: Add a test for this bug.
41411         * tests/test-canonicalize.sh: Set up and run the test.
41412
41413         New module, file-set, from coreutils.
41414         * modules/file-set: Define it.
41415         * lib/file-set.c, lib/file-set.h: Implement.
41416
41417         New module, hash-triple, from coreutils.
41418         * modules/hash-triple: Define it.
41419         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41420
41421 2007-09-25  Eric Blake  <ebb9@byu.net>
41422
41423         Fix strerror on Interix.
41424         * lib/string_.h (strerror): Declare replacement.
41425         * doc/functions/strerror.texi (strerror): Document the Interix
41426         shortcoming.
41427         * modules/string (Makefile.am): Support new hooks.
41428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41429         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41430         gl_FUNC_STRERROR_SEPARATE.
41431         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41432         * lib/strerror.c (rpl_strerror): Provide replacement.
41433         * modules/strerror (Depends-on): Add string.
41434         (configure.ac): Detect use of module.
41435         * tests/test-strerror.c: New file.
41436         * modules/strerror-tests: New test module.
41437         * modules/argp (Depends-on): Add strerror.
41438         * modules/error (Depends-on): Likewise.
41439         Reported by Martin Koeppe.
41440
41441 2007-09-24  Bruno Haible  <bruno@clisp.org>
41442
41443         * README: Update git instructions.
41444
41445 2007-09-24  Eric Blake  <ebb9@byu.net>
41446
41447         Revert fpending breakage from 2007-09-08.
41448         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41449         __fpending.c.
41450
41451 2007-09-24  Jim Meyering  <jim@meyering.net>
41452
41453         filenamecat.c: Add a test.
41454         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41455         showing how the function works when DIR is the empty string.
41456
41457 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41458
41459         * tests/test-canonicalize.sh: Turn on executable bit.
41460
41461 2007-09-19  Eric Blake  <ebb9@byu.net>
41462
41463         * README: Update CVS instructions.
41464
41465 2007-09-18  Bruno Haible  <bruno@clisp.org>
41466
41467         * modules/areadlink: New file.
41468         * lib/areadlink.h (areadlink): New declaration.
41469         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41470
41471 2007-09-17  Jim Meyering  <jim@meyering.net>
41472
41473         * lib/savewd.c (ESTALE) [!defined]: Define.
41474         Reported to be required on Interix by Martin Koeppe.
41475
41476 2007-09-17  Bruno Haible  <bruno@clisp.org>
41477
41478         * gnulib-tool (func_version): Use $version.
41479
41480 2007-09-16  Bruno Haible  <bruno@clisp.org>
41481
41482         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41483         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41484         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41485         Reported by Greg Schafer <gschafer@zip.com.au>.
41486
41487 2007-09-15  Bruno Haible  <bruno@clisp.org>
41488
41489         * gnulib-tool (sed): Try a little harder to make bash understand the
41490         alias.
41491         Reported by Bruce Korb <bruce.korb@gmail.com>.
41492
41493 2007-09-13  Eric Blake  <ebb9@byu.net>
41494
41495         * ChangeLog: Remove conflict markers.
41496
41497 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41498
41499         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41500         Reported by Bruno Haible <bruno@clisp.org>.
41501
41502 2007-09-12  Bruno Haible  <bruno@clisp.org>
41503
41504         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41505         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41506         is not defined.
41507
41508 2007-09-12  Eric Blake  <ebb9@byu.net>
41509
41510         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41511         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41512         Autoconf definition.
41513         * modules/euidaccess (Depends-on): Add extensions, for
41514         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41515         * modules/fnmatch (Depends-on): Likewise.
41516         * modules/getaddrinfo (Depends-on): Likewise.
41517         * modules/getdelim (Depends-on): Likewise.
41518         * modules/getline (Depends-on): Likewise.
41519         * modules/getsubopt (Depends-on): Likewise.
41520         * modules/gettext (Depends-on): Likewise.
41521         * modules/group-member (Depends-on): Likewise.
41522         * modules/mbchar (Depends-on): Likewise.
41523         * modules/memmem (Depends-on): Likewise.
41524         * modules/mempcpy (Depends-on): Likewise.
41525         * modules/memrchr (Depends-on): Likewise.
41526         * modules/pagealign_alloc (Depends-on): Likewise.
41527         * modules/readutmp (Depends-on): Likewise.
41528         * modules/stpcpy (Depends-on): Likewise.
41529         * modules/stpncpy (Depends-on): Likewise.
41530         * modules/strchrnul (Depends-on): Likewise.
41531         * modules/strndup (Depends-on): Likewise.
41532         * modules/strsep (Depends-on): Likewise.
41533         * modules/strverscmp (Depends-on): Likewise.
41534         * modules/vasprintf (Depends-on): Likewise.
41535         * modules/wcwidth (Depends-on): Likewise.
41536         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41537         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41538         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41539         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41540         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41541         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41542         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41543         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41544         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41545         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41547         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41548         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41549         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41550         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41551         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41552         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41553         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41555         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41556         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41557         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41558         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41559         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41560         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41562         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41563         so that lock.m4 can be used in gettext without extensions module.
41564
41565 2007-09-11  Bruno Haible  <bruno@clisp.org>
41566
41567         * m4/isc-posix.m4: Remove file.
41568         Suggested by Eric Blake.
41569
41570 2007-09-11  Eric Blake  <ebb9@byu.net>
41571
41572         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41573
41574 2007-09-10  Bruno Haible  <bruno@clisp.org>
41575
41576         * posix-modules: Fix typo in error message.
41577         Reported by Matt <mkraai@beckman.com>.
41578
41579 2007-09-09  Bruno Haible  <bruno@clisp.org>
41580
41581         * doc/functions/getdelim.texi: Update list of platforms lacking the
41582         function.
41583         * doc/functions/getline.texi: Likewise.
41584
41585 2007-09-09  Jim Meyering  <jim@meyering.net>
41586
41587         * lib/hash.c (hash_initialize): Detect calloc failure.
41588         Reported by Bruno Haible.
41589
41590 2007-09-09  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41593         malloc or realloc fails.
41594
41595 2007-09-09  Bruno Haible  <bruno@clisp.org>
41596
41597         * modules/getcwd (Depends-on): Add malloc-posix.
41598         * modules/glob (Depends-on): Likewise.
41599         * modules/putenv (Depends-on): Likewise.
41600         * modules/strdup (Depends-on): Likewise.
41601         * modules/getdelim (Depends-on): Add realloc-posix.
41602         * modules/read-file (Depends-on): Likewise.
41603
41604 2007-09-09  Bruno Haible  <bruno@clisp.org>
41605
41606         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41607         (gl_FUNC_MALLOC_POSIX): Require it.
41608         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41609         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41610         * modules/realloc (Files): Add m4/malloc.m4.
41611         * modules/calloc (Files): Likewise.
41612
41613 2007-09-09  Bruno Haible  <bruno@clisp.org>
41614
41615         * modules/malloc-posix: New file.
41616         * modules/malloc (Depends-on): Add malloc-posix.
41617         * lib/malloc.c: Include errno.h.
41618         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41619         and a POSIX-compatible malloc into a single function. Set ENOMEM
41620         when returning NULL.
41621         * m4/malloc.m4: New file.
41622         * doc/functions/malloc.texi: Mention the malloc-posix module.
41623         * lib/stdlib_.h (malloc): New declaration.
41624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41625         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41626         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41627         and HAVE_MALLOC_POSIX.
41628
41629 2007-09-09  Bruno Haible  <bruno@clisp.org>
41630
41631         * modules/realloc-posix: New file.
41632         * modules/realloc (Depends-on): Add realloc-posix.
41633         * lib/realloc.c: Include errno.h.
41634         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41635         and a POSIX-compatible realloc into a single function. Set ENOMEM
41636         when returning NULL.
41637         * m4/realloc.m4: New file.
41638         * doc/functions/realloc.texi: Mention the realloc-posix module.
41639         * lib/stdlib_.h (realloc): New declaration.
41640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41641         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41642         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41643         and HAVE_REALLOC_POSIX.
41644
41645 2007-09-09  Bruno Haible  <bruno@clisp.org>
41646
41647         * modules/calloc-posix: New file.
41648         * modules/calloc (Depends-on): Add calloc-posix.
41649         * lib/calloc.c: Include errno.h.
41650         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41651         and a POSIX-compatible calloc into a single function. Set ENOMEM
41652         when returning NULL.
41653         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41654         * doc/functions/calloc.texi: Mention the calloc-posix module.
41655         * lib/stdlib_.h (calloc): New declaration.
41656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41657         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41658         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41659         and HAVE_CALLOC_POSIX.
41660
41661 2007-09-09  Bruno Haible  <bruno@clisp.org>
41662
41663         Allow for modules to show an arbitrary notice.
41664         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41665         * gnulib-tool: New option --extract-notice.
41666         (func_usage): Document it.
41667         (sed_extract_prog): Update.
41668         (func_get_notice): New function.
41669         (func_modules_notice): New function.
41670         (func_import, func_create_testdir): Invoke it.
41671         Suggested by Jim Meyering.
41672
41673 2007-09-09  Bruno Haible  <bruno@clisp.org>
41674
41675         * gnulib-tool: New options --verbose, --quiet.
41676         (func_usage): Document them.
41677         (verbose): New variable.
41678         (func_execute_command): New function.
41679         (func_import): Don't show the module list and the file list if
41680         $verbose < 0.
41681         (func_create_testdir): Likewise. Use func_execute_command.
41682         (func_create_megatestdir): Use func_execute_command.
41683
41684 2007-09-08  Bruno Haible  <bruno@clisp.org>
41685
41686         * gnulib-tool (func_import): Prefer rsync over wget when available,
41687         for fetching the PO files.
41688
41689 2007-09-08  Bruno Haible  <bruno@clisp.org>
41690
41691         * posix-modules: New file. Portions copied from gnulib-tool.
41692         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41693
41694 2007-09-08  Jim Meyering  <jim@meyering.net>
41695
41696         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41697         * lib/fpending.h: Rename from __fpending.h.
41698         * lib/fpending.c: Rename from __fpending.c.
41699         Include "fpending.h", not "__fpending.h".
41700         * lib/__fpending.h, lib/__fpending.c: Remove files.
41701         * modules/fpending (Files): Reflect new file names.
41702         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41703
41704 2007-09-08  Bruno Haible  <bruno@clisp.org>
41705
41706         * m4/inttypes-h.m4: Remove stub file.
41707
41708 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41709
41710         * doc/headers/stdint.texi: Discuss #include_next issue.
41711
41712 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41713
41714         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41715
41716 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41717
41718         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41719         in variable name.
41720
41721 2007-09-03  Jim Meyering  <jim@meyering.net>
41722
41723         New module: git-version-gen.
41724         * modules/git-version-gen: New file.
41725
41726         Import changes from coreutils for bootstrap script.
41727
41728         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41729
41730         bootstrap: uses rsync to download the .po files
41731         * build-aux/bootstrap (po_download_command_format): New global.
41732         (download_po_files): Use rsync.
41733         (update_po_files): Don't remove .po files after download,
41734         so future rsync runs can take advantage of the copies.
41735
41736         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41737
41738         Solve the unnecessary-.po-file-regeneration problem once and for all.
41739         * build-aux/bootstrap (download_po_files): New function, renamed from
41740         get_translations.  Now, downloads, but doesn't update LINGUAS.
41741         (update_po_files): New function.
41742
41743         bootstrap: Ignore more.
41744         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41745         uniwidth to e.g., lib/.gitignore.
41746         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41747
41748         * build-aux/bootstrap: New setting: vc_ignore.
41749         (insert_sorted_if_absent): Create $file if absent.
41750         Adapt to new, possibly empty, list: $vc_ignore.
41751
41752         bootstrap: generate more ignorable names
41753         * build-aux/bootstrap (slurp): When generating ignorable names,
41754         also map .sin to .sed, .gperf to .c, and .y to .c.
41755
41756 2007-09-03  Jim Meyering  <jim@meyering.net>
41757
41758         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41759         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41760
41761 2007-09-02  Bruno Haible  <bruno@clisp.org>
41762
41763         Fix mis-recognition of 'mcs' on QNX 6.
41764         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41765         output contains the string "Mono".
41766         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41767         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41768
41769 2007-09-01  Bruno Haible  <bruno@clisp.org>
41770
41771         Fix collision between uniwidth/* and linebreak modules.
41772         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41773         u32_width): Remove declarations.
41774         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41775         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41776         streq3, streq2, streq1, streq0): Remove functions.
41777         (STREQ): Remove macro.
41778         (is_cjk_encoding): Remove function.
41779         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41780         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41781         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41782         * NEWS: Document the change.
41783
41784 2007-09-01  Bruno Haible  <bruno@clisp.org>
41785
41786         * lib/streq.h: Add double-inclusion guard.
41787
41788 2007-09-01  Karl Berry  <karl@gnu.org>
41789
41790         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41791
41792 2007-08-28  Jim Meyering  <jim@meyering.net>
41793
41794         Rename mreadlink_with_size to areadlink_with_size.
41795         * NEWS: Document the change.
41796         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41797         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41798         * lib/mreadlink.h: Rename this to...
41799         * lib/areadlink.h: ...this.
41800         * modules/mreadlink-with-size: Rename this to...
41801         * modules/areadlink-with-size: ...this.
41802         * lib/canonicalize.c: Reflect the renaming.
41803         * modules/canonicalize: Likewise.
41804
41805 2007-08-26  Bruno Haible  <bruno@clisp.org>
41806
41807         * gnulib-tool (func_import): When deciding which files to remove,
41808         consider also dangling symbolic links.
41809         Reported by Eric Blake.
41810
41811 2007-08-26  Bruno Haible  <bruno@clisp.org>
41812
41813         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41814
41815 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41816
41817         * lib/readline.c: Don't include getline.h, the prototype is now
41818         found in stdio.h.
41819
41820 2007-08-23  Jim Meyering  <jim@meyering.net>
41821
41822         Getdelim touchup.
41823         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41824         around the funlockfile call, since funlockfile never sets errno.
41825         Don't set errno upon failed realloc.
41826
41827 2007-08-22  Eric Blake  <ebb9@byu.net>
41828
41829         Getline touchups.
41830         * lib/getdelim.c (getdelim): Revert regression that required *n to
41831         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41832         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41833         getdelim, rather than whether implementation is missing.
41834         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41835         * lib/stdio_.h (getline): Also declare if replacement is
41836         required.
41837         * doc/functions/getdelim.texi: New file.
41838         * doc/functions/getline.texi: Likewise.
41839         * doc/gnulib.texi (Function Substitutes): Add new files.
41840         Reported by Bruno Haible.
41841
41842 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41843
41844         * users.txt: Add Guile.
41845
41846 2007-08-22  Eric Blake  <ebb9@byu.net>
41847
41848         * tests/test-getdelim.c (main): Use remove, not unlink.
41849         * tests/test-getline.c (main): Likewise.
41850
41851         Move getline and getdelim into stdio.h, per POSIX 200x.
41852         * modules/getline (Files): Remove getline.h.
41853         (Depends-on): Add stdio.
41854         (configure.ac): Add module indicator.
41855         * modules/getdelim (Files): Remove getdelim.h.
41856         (Depends-on): Add stdio.
41857         (configure.ac): Add module indicator.
41858         * modules/stdio (Makefile.am): Work with new indicators.
41859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41860         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41861         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41862         * lib/getdelim.h: Delete.
41863         * lib/getline.h: Delete.
41864         * lib/stdio_.h (getdelim, getline): Declare.
41865         * modules/getdelim-tests: New module.
41866         * modules/getline-tests: Likewise.
41867         * tests/test-getdelim.c: New file.
41868         * tests/test-getline.c: Likewise.
41869         * NEWS: Document the change.
41870         * lib/getline.c: Update choice of header.
41871         * lib/csharpcomp.c: Likewise.
41872         * lib/getpass.c: Likewise.
41873         * lib/javacomp.c: Likewise.
41874         * lib/javaversion.c: Likewise.
41875         * lib/yesno.c: Likewise.
41876         * lib/getdelim.c: Likewise.
41877         (getdelim): Set errno on failure, and avoid memory leak.
41878
41879 2007-08-19  Bruno Haible  <bruno@clisp.org>
41880
41881         * modules/closein (Depends-on): Add freadahead.
41882         * lib/closein.c: Include freadahead.h.
41883         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41884         is zero.
41885
41886 2007-08-19  Bruno Haible  <bruno@clisp.org>
41887
41888         * modules/freadahead-tests: New file.
41889         * tests/test-freadahead.sh: New file.
41890         * tests/test-freadahead.c: New file.
41891
41892         * modules/freadahead: New file.
41893         * lib/freadahead.h: New file.
41894         * lib/freadahead.c: New file.
41895         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41896         fbufmode, fpurge, freadable, fwritable.
41897
41898 2007-08-19  Eric Blake  <ebb9@byu.net>
41899
41900         Test yesno in combination with closein.
41901         * lib/yesno.c (yesno): Document use of stdin.
41902         * modules/yesno-tests (Files): New module.
41903         * tests/test-yesno.c (main): New file.
41904         * tests/test-yesno.sh: Likewise.
41905
41906 2007-08-19  Bruno Haible  <bruno@clisp.org>
41907
41908         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41909         * lib/fseeko.c (rpl_fseeko): Likewise.
41910         * lib/fseterr.c (fseterr): Likewise.
41911
41912 2007-08-19  Bruno Haible  <bruno@clisp.org>
41913
41914         * tests/test-lseek.c (main): Disable a test for BeOS.
41915         * doc/functions/lseek.texi: Document the BeOS bug.
41916
41917 2007-08-19  Bruno Haible  <bruno@clisp.org>
41918             Eric Blake  <ebb9@byu.net>
41919
41920         * lib/lseek.c: Include <sys/stat.h>.
41921         (rpl_lseek): Add workaround code also for Unix platforms.
41922         Needed for BeOS.
41923         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41924         * doc/functions/lseek.texi: Document BeOS definiency.
41925
41926 2007-08-18  Bruno Haible  <bruno@clisp.org>
41927
41928         * modules/fstrcmp-tests: New file.
41929         * tests/test-fstrcmp.c: New file.
41930
41931 2007-08-18  Bruno Haible  <bruno@clisp.org>
41932
41933         * modules/fstrcmp: New file, from GNU gettext with modifications.
41934         * lib/fstrcmp.h: New file, from GNU gettext.
41935         * lib/fstrcmp.c: New file, from GNU gettext.
41936         * MODULES.html.sh (String handling): Add fstrcmp.
41937
41938 2007-08-18  Bruno Haible  <bruno@clisp.org>
41939
41940         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41941         'bool'.
41942         (diag, compareseq): Remove const from the ctxt argument.
41943         (USE_HEURISTIC): Undefine at the end.
41944
41945 2007-08-18  Jim Meyering  <jim@meyering.net>
41946
41947         New file: lib/idcache.h
41948         * NEWS: Mention the addition.
41949         * modules/idcache (Files): Add lib/idcache.h
41950         * lib/idcache.c: Include "idcache.h".
41951         Don't include <sys/types.h>.
41952         Add a FIXME comment.
41953         Move file-scoped "static" declarations to the top.
41954         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41955
41956 2007-08-17  Bruno Haible  <bruno@clisp.org>
41957         and Paul Eggert  <eggert@cs.ucla.edu>
41958
41959         * MODULES.html.sh: Add diffseq.
41960         * modules/diffseq: New file.
41961         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41962         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41963
41964 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         Import changes from coreutils for bootstrap script.
41967
41968         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41969
41970         * build-aux/bootstrap (slurp): Work even in environments where
41971         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41972         current code does not slurp files whose names start with ".", and
41973         this looks like it might be a troublesome area.
41974
41975         2007-07-11  Jim Meyering  <jim@meyering.net>
41976
41977         If there's a GPL vN copyright comment, require that N == 3.
41978
41979         2007-07-08  Jim Meyering  <jim@meyering.net>
41980
41981         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41982         * build-aux/bootstrap (mam_template): Move definition out of loop.
41983
41984         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41985
41986         * build-aux/bootstrap (symlink_to_dir): Rename function from
41987         symlink_to_gnulib.  Add a directory parameter.  Update all
41988         callers.
41989         (cp_mark_as_generated): Also check for -- and link to -- files in
41990         gl/.
41991
41992         2007-07-08  Jim Meyering  <jim@meyering.net>
41993
41994         Adapt to deeper hierarchy in gnulib.
41995         * build-aux/bootstrap (symlink_to_dir): If the destination
41996         directory doesn't exist, create it. This is required at least for
41997         "lib/uniwidth/cjk.h".
41998
41999         2007-05-15  Jim Meyering  <jim@meyering.net>
42000
42001         * build-aux/bootstrap: Now that generated Makefile.am files
42002         are no longer under version control, they must be created at
42003         bootstrap time.
42004
42005 2007-08-14  Ben Pfaff  <blp@gnu.org>
42006
42007         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42008
42009 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42010
42011         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42012         given the changes below.
42013         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42014         even on hosts that have padding bits beyond the supported 64.
42015
42016 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42017
42018         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42019         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42020         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42021         depends on it.
42022         (xstrtol_error): Remove.
42023         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42024         but with a different signature.
42025         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42026         * lib/xstrtol-error.c: Include exitfail.h.
42027         (xstrtol_fatal): New function, with a different signature from the
42028         old xstrtol_error, so that the caller need not worry about passing
42029         in an exit status, or about storage management of the option argument.
42030         (xstrtol_error): Now a static function.  Redo signature to
42031         implement xstrtol_fatal.  Output the correct number of hyphens in
42032         front of the option so that the caller need not worry about
42033         storage management.
42034         (N_): New macro.
42035         (_): Remove; not used now.
42036         * modules/xstrtol: Depend on getopt.
42037         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42038         of old STRTOL_FATAL_ERROR macro.
42039         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42040         of test program.
42041         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42042         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42043
42044 2007-08-08  Eric Blake  <ebb9@byu.net>
42045
42046         * lib/xstrtol-error.c: Add missing include.
42047
42048         Move xstrtol messages into gnulib domain, when --pobase is used.
42049         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42050         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42051         * modules/xstrtol (Files): Distribute new file.
42052         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42053         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42054         * tests/test-xstrtol.c: ...into new file.
42055         * tests/test-xstrtoul.c: Also test xstrtoul.
42056         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42057         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42058         * tests/test-xstrtol.sh: Drive the tests.
42059         * tests/test-xstrtoimax.sh: Likewise.
42060         * tests/test-xstrtoumax.sh: Likewise.
42061         * modules/xstrtol-tests: New module.
42062         * modules/xstrtoimax-tests: Likewise.
42063         * modules/xstrtoumax-tests: Likewise.
42064
42065 2007-08-08  Jim Meyering  <jim@meyering.net>
42066
42067         New function: mfile_name_concat.
42068         * lib/filenamecat.c (mfile_name_concat): New function, just like
42069         file_name_concat, but return NULL upon failure rather than exiting
42070         with a diagnostic.
42071         * lib/filenamecat.h: Declare it.
42072
42073 2007-08-07  Bruno Haible  <bruno@clisp.org>
42074
42075         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42076         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42077         warning from gcc.
42078         Reported by Eric Blake.
42079
42080 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42081
42082         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42083         * modules/crypto/arcfour (License): Likewise.
42084         * modules/crypto/des-tests (License): Likewise.
42085         * modules/crypto/gc-arctwo-tests (License): Likewise.
42086         * modules/crypto/gc-des-tests (License): Likewise.
42087         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42088         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42089         * modules/crypto/gc-md2-tests (License): Likewise.
42090         * modules/crypto/gc-md4-tests (License): Likewise.
42091         * modules/crypto/gc-md5-tests (License): Likewise.
42092         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42093         * modules/crypto/gc-rijndael-tests (License): Likewise.
42094         * modules/crypto/gc-sha1-tests (License): Likewise.
42095         * modules/crypto/gc-tests (License): Likewise.
42096         * modules/crypto/hmac-md5 (License): Likewise.
42097         * modules/crypto/hmac-sha1 (License): Likewise.
42098         * modules/crypto/md2-tests (License): Likewise.
42099         * modules/crypto/md4-tests (License): Likewise.
42100         * modules/crypto/md5 (License): Likewise.
42101         * modules/crypto/rijndael (License): Likewise.
42102         * modules/crypto/sha1 (License): Likewise.
42103         * modules/memxor (License): Likewise.
42104
42105 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42106         and Bruno Haible  <bruno@clisp.org>
42107
42108         * NEWS: Describe interface changes to human, xstrtol.
42109         * lib/human.h: Include <xstrtol.h>.
42110         (human_options): Return enum strtol_error, not int.  Remove
42111         bool arg; take int * instead.
42112         * lib/human.c: Don't include "gettext.h".
42113         (_): Remove; no longer used.
42114         Don't include <xstrtol.h>, since human.h does it.
42115         (human_options): Adjust to abovementioned interface changes.
42116         Do not report error to stderr; that's now the caller's
42117         responsibility.
42118         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42119         interface change.
42120         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42121         Str, Argument_type_string.  All uses changed.  Put " argument"
42122         in diagnostics to make them clearer.  Change wording of suffix
42123         message for clarity.
42124         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42125         Argument_type_string.
42126         (STRTOL_FATAL_WARN): Remove; no longer used.
42127         * modules/human (Depends-on): Remove gettext-h.
42128
42129 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42130
42131         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42132
42133 2007-07-31  Bruno Haible  <bruno@clisp.org>
42134
42135         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42136         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42137         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42138
42139 2007-07-31  Bruno Haible  <bruno@clisp.org>
42140
42141         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42142         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42143
42144 2007-07-30  Bruno Haible  <bruno@clisp.org>
42145
42146         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42147         * modules/c-ctype (License): Likewise.
42148         * modules/c-strcase (License): Likewise.
42149         * modules/check-version (License): Likewise.
42150         * modules/iconv (License): Likewise.
42151         * modules/iconv_open (License): Likewise.
42152         * modules/read-file (License): Likewise.
42153         * modules/striconv (License): Likewise.
42154         * modules/strverscmp (License): Likewise.
42155         * modules/vasprintf (License): Likewise.
42156         * modules/crypto/des (License): Likewise.
42157         * modules/crypto/gc (License): Likewise.
42158         * modules/crypto/gc-arcfour (License): Likewise.
42159         * modules/crypto/gc-arctwo (License): Likewise.
42160         * modules/crypto/gc-des (License): Likewise.
42161         * modules/crypto/gc-hmac-md5 (License): Likewise.
42162         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42163         * modules/crypto/gc-md2 (License): Likewise.
42164         * modules/crypto/gc-md4 (License): Likewise.
42165         * modules/crypto/gc-md5 (License): Likewise.
42166         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42167         * modules/crypto/gc-random (License): Likewise.
42168         * modules/crypto/gc-rijndael (License): Likewise.
42169         * modules/crypto/gc-sha1 (License): Likewise.
42170         * modules/crypto/md2 (License): Likewise.
42171         * modules/crypto/md4 (License): Likewise.
42172
42173 2007-07-30  Jim Meyering  <jim@meyering.net>
42174
42175         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42176         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42177         it has valid stat data.  This bug would cause du not to count the
42178         sizes of inaccessible directories.
42179         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42180         in <http://bugzilla.redhat.com/250077>.
42181
42182 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42183             Bruno Haible  <bruno@clisp.org>
42184
42185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42186         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42187         #include_next, gives a diagnostic about it, but reports no error in
42188         the exit code.
42189         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42190
42191 2007-07-24  Ben Pfaff  <blp@gnu.org>
42192
42193         Improve name: "count-one-bits" is better than "popcount".
42194         * MODULES.html.sh: Update name.
42195         * lib/popcount.h: Renamed lib/count-one-bits.h.
42196         (popcount): Renamed count_one_bits.
42197         (popcountl): Renamed count_one_bits_l.
42198         (popcountll): Renamed count_one_bits_ll.
42199         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42200         * modules/popcount: Renamed module/count-one-bits.
42201         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42202         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42203
42204 2007-07-23  Ben Pfaff  <blp@gnu.org>
42205
42206         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42207         better code generation, and add U to large constants to avoid
42208         warnings, in non-GCC case.
42209         Suggested by Bruno Haible.
42210
42211 2007-07-23  Ben Pfaff  <blp@gnu.org>
42212
42213         * lib/popcount.h: Use verify_true instead of if...abort.
42214         * modules/popcount: Depend on verify module.
42215         Suggested by Jim Meyering.
42216
42217 2007-07-23  Bruno Haible  <bruno@clisp.org>
42218
42219         * gnulib-tool (func_import): Create a .cvsignore file also when the
42220         directory is not yet in CVS but the toplevel directory is. When
42221         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42222         Reported by Karl Berry.
42223
42224 2007-07-22  Ben Pfaff  <blp@gnu.org>
42225
42226         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42227         case.
42228         Suggested by Eric Blake.
42229
42230 2007-07-22  Ben Pfaff  <blp@gnu.org>
42231
42232         New module: popcount.
42233         * MODULES.html.sh: Add popcount.
42234         * modules/popcount: New file.
42235         * modules/popcount-tests: New file.
42236         * tests/test-popcount.c: New file.
42237         * lib/popcount.h: New file.
42238         * m4/popcount.m4: New file.
42239
42240 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42241
42242         * build-aux/announce-gen: Update to GPLv3.
42243
42244         * build-aux/config.guess: Update from config.
42245
42246 2007-07-21  Bruno Haible  <bruno@clisp.org>
42247
42248         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42249         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42250
42251 2007-07-20  Jim Meyering  <jim@meyering.net>
42252
42253         * check-module: Diagnose a self-dependency.
42254
42255 2007-07-19  Bruno Haible  <bruno@clisp.org>
42256
42257         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42258         empty.
42259         Reported by Eric Blake.
42260
42261 2007-07-18  Bruno Haible  <bruno@clisp.org>
42262
42263         * gnulib-tool: New options --po-base, --po-domain.
42264         (func_usage): Document them.
42265         (pobase, po_domain): New variables.
42266         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42267         DEFAULT_TEXT_DOMAIN.
42268         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42269         (func_import): Consider pobase and po_domain. Create a po/ directory.
42270         (func_create_testdir): Set pobase and po_domain to empty.
42271         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42272         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42273
42274 2007-07-18  Bruno Haible  <bruno@clisp.org>
42275
42276         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42277         EXTRA_DIST augmentation for files in build-aux/.
42278
42279 2007-07-16  Bruno Haible  <bruno@clisp.org>
42280
42281         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42282         * modules/getdelim (License): Likewise.
42283
42284 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42285
42286         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42287         * modules/d-type (License): Likewise.
42288         * modules/extensions (License): Likewise.
42289         * modules/fnmatch (License): Likewise.
42290         * modules/fseeko (License): Likewise.
42291         * modules/getaddrinfo (License): Likewise.
42292         * modules/getline (License): Likewise.
42293         * modules/getlogin_r (License): Likewise.
42294         * modules/getpass (License): Likewise.
42295         * modules/gettimeofday (License): Likewise.
42296         * modules/glob (License): Likewise.
42297         * modules/inet_ntop (License): Likewise.
42298         * modules/malloc (License): Likewise.
42299         * modules/malloca (License): Likewise.
42300         * modules/memmem (License): Likewise.
42301         * modules/mempcpy (License): Likewise.
42302         * modules/memset (License): Likewise.
42303         * modules/minmax (License): Likewise.
42304         * modules/mktime (License): Likewise.
42305         * modules/netinet_in (License): Likewise.
42306         * modules/pathmax (License): Likewise.
42307         * modules/poll (License): Likewise.
42308         * modules/regex (License): Likewise.
42309         * modules/snprintf (License): Likewise.
42310         * modules/stdbool (License): Likewise.
42311         * modules/stdint (License): Likewise.
42312         * modules/stdio (License): Likewise.
42313         * modules/strcase (License): Likewise.
42314         * modules/strcasestr (License): Likewise.
42315         * modules/strdup (License): Likewise.
42316         * modules/string (License): Likewise.
42317         * modules/strndup (License): Likewise.
42318         * modules/strnlen (License): Likewise.
42319         * modules/strpbrk (License): Likewise.
42320         * modules/strptime (License): Likewise.
42321         * modules/strsep (License): Likewise.
42322         * modules/sys_select (License): Likewise.
42323         * modules/sys_socket (License): Likewise.
42324         * modules/sys_stat (License): Likewise.
42325         * modules/sys_time (License): Likewise.
42326         * modules/time (License): Likewise.
42327         * modules/time_r (License): Likewise.
42328         * modules/timegm (License): Likewise.
42329         * modules/unistd (License): Likewise.
42330         * modules/vsnprintf (License): Likewise.
42331         * modules/wctype (License): Likewise.
42332
42333 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42334
42335         * modules/argz (License): LGPLv2+.
42336
42337 2007-07-15  Karl Berry  <karl@gnu.org>
42338
42339         * doc/gnulib.texi: revise node structure per new fdl.texi.
42340
42341 2007-07-14  Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42344         the output file.
42345         * lib/uniname/uninames.h: Regenerated.
42346
42347 2007-07-14  Karl Berry  <karl@gnu.org>
42348
42349         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42350         omitting sectioning and index commands.
42351
42352 2007-07-13  Bruno Haible  <bruno@clisp.org>
42353
42354         New gnulib-tool option --more-symlinks.
42355         * gnulib-tool (func_usage): Document --more-symlinks.
42356         (do_copyrights): New variable.
42357         Recognize option --more-symlinks.
42358         (func_import): Don't add a copyright notice transform to
42359         sed_transform_lib_file if do_copyrights is empty.
42360
42361 2007-07-13  Bruno Haible  <bruno@clisp.org>
42362
42363         * lib/vasnprintf.c (decimal_point_char): Define also if
42364         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42365         && !NEED_PRINTF_DIRECTIVE_A.
42366         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42367         Gary V. Vaughan <gary@gnu.org>.
42368
42369 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * lib/inttypes_.h: Undo previous change, since it was fixed
42372         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42373
42374 2007-07-13  Bruno Haible  <bruno@clisp.org>
42375
42376         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42377         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42378
42379 2007-07-13  Jim Meyering  <jim@meyering.net>
42380
42381         df: Don't fail for Tru64's "file-on-file mount".
42382         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42383         so we fall through and use statfs instead.  Details here:
42384         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42385         Reported by Albert Chin.
42386
42387 2007-07-13  Bruno Haible  <bruno@clisp.org>
42388
42389         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42390         * modules/configmake (License): Likewise.
42391         * modules/gettext (License): Likewise.
42392         * modules/gettext-h (License): Likewise.
42393         * modules/include_next (License): Likewise.
42394         * modules/link-warning (License): Likewise.
42395         * modules/localcharset (License): Likewise.
42396         * modules/localename (License): Likewise.
42397         * modules/lock (License): Likewise.
42398         * modules/relocatable-lib-lgpl (License): Likewise.
42399         * modules/size_max (License): Likewise.
42400         * modules/vasnprintf (License): Likewise.
42401         * modules/wchar (License): Likewise.
42402         * modules/xsize (License): Likewise.
42403
42404 2007-07-13  Bruno Haible  <bruno@clisp.org>
42405
42406         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42407         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42408
42409 2007-07-12  Bruno Haible  <bruno@clisp.org>
42410
42411         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42412         in the modules files.
42413
42414 2007-07-11  Karl Berry  <karl@gnu.org>
42415
42416         * MODULES.html.sh (func_module): use
42417          sed -e '\|^'"${includefile}"'$|d'
42418          instead of /.../d, to avoid errors on $includefile's containing /.
42419
42420 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42421
42422         * gnulib-tool (func_import): Avoid duplication of --avoid
42423         statements
42424         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42425         names to `_' in variable names.
42426
42427 2007-07-10  Eric Blake  <ebb9@byu.net>
42428
42429         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42430         * NEWS: Document this change.
42431
42432 2007-07-08  Bruno Haible  <bruno@clisp.org>
42433
42434         Update to Unicode 5.0.
42435         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42436         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42437         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42438         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42439         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42440         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42441         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42442         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42443         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42444         U+10A3F, U+1D242..U+1D244.
42445         (nonspacing_table_ind): Update.
42446         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42447         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42448
42449 2007-07-08  Bruno Haible  <bruno@clisp.org>
42450
42451         Update to Unicode 5.0.
42452         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42453         code transform. Extend the name index field of unicode_name_to_code and
42454         unicode_code_to_name from 16 to 24 bits.
42455         * lib/uniname/uniname.c (unicode_character_name,
42456         unicode_name_character): Add the range 0x12xxx to the code transform.
42457         * lib/uniname/uninames.h: Regenerated.
42458         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42459
42460 2007-07-07  Bruno Haible  <bruno@clisp.org>
42461
42462         * modules/wcwidth-tests: New file.
42463         * tests/test-wcwidth.c: New file.
42464
42465         Work around MacOS X wcwidth() bug.
42466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42467         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42468         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42469         original wcwidth in non-UTF-8 locales.
42470         * modules/wcwidth (Depends-on): Add localcharset, streq,
42471         uniwidth/width.
42472         * doc/functions/wcwidth.texi: Update.
42473
42474 2007-07-07  Bruno Haible  <bruno@clisp.org>
42475
42476         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42477         (wcwidth): New declaration.
42478         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42479         macros.
42480         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42481         here. Prepare for creating <wchar.h> unconditionally.
42482         * modules/wchar (Depends-on): Add link-warning.
42483         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42484         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42485         * lib/wcwidth.h: Remove file.
42486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42487         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42488         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42489         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42490         (Include): Replace wcwidth.h with <wchar.h>.
42491         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42492         * lib/mbchar.h: Don't include wcwidth.h.
42493         * lib/mbswidth.c: Likewise.
42494         * NEWS: Mention the change.
42495
42496 2007-07-07  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42499         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42500         definition with an external declaration.
42501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42502         defined as a function. Remove AC_C_INLINE requirement.
42503         * modules/wcwidth (Files): Add lib/wcwidth.c.
42504         (Makefile.am): Remove redundant statement.
42505
42506 2007-07-07  Bruno Haible  <bruno@clisp.org>
42507
42508         * MODULES.html.sh (Unicode string functions): Add the new modules.
42509
42510         * tests/uniwidth/test-u32-strwidth.c: New file.
42511         * modules/uniwidth/u32-strwidth-tests: New file.
42512
42513         * lib/uniwidth/u32-strwidth.c: New file.
42514         * modules/uniwidth/u32-strwidth: New file.
42515
42516         * tests/uniwidth/test-u16-strwidth.c: New file.
42517         * modules/uniwidth/u16-strwidth-tests: New file.
42518
42519         * lib/uniwidth/u16-strwidth.c: New file.
42520         * modules/uniwidth/u16-strwidth: New file.
42521
42522         * tests/uniwidth/test-u8-strwidth.c: New file.
42523         * modules/uniwidth/u8-strwidth-tests: New file.
42524
42525         * lib/uniwidth/u8-strwidth.c: New file.
42526         * modules/uniwidth/u8-strwidth: New file.
42527
42528         * tests/uniwidth/test-u32-width.c: New file.
42529         * modules/uniwidth/u32-width-tests: New file.
42530
42531         * lib/uniwidth/u32-width.c: New file.
42532         * modules/uniwidth/u32-width: New file.
42533
42534         * tests/uniwidth/test-u16-width.c: New file.
42535         * modules/uniwidth/u16-width-tests: New file.
42536
42537         * lib/uniwidth/u16-width.c: New file.
42538         * modules/uniwidth/u16-width: New file.
42539
42540         * tests/uniwidth/test-u8-width.c: New file.
42541         * modules/uniwidth/u8-width-tests: New file.
42542
42543         * lib/uniwidth/u8-width.c: New file.
42544         * modules/uniwidth/u8-width: New file.
42545
42546         * tests/uniwidth/test-uc_width.c: New file.
42547         * modules/uniwidth/width-tests: New file.
42548
42549         * lib/uniwidth/width.c: New file, from GNU libiconv.
42550         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42551         * modules/uniwidth/width: New file.
42552
42553         * lib/uniwidth.h: New file, from GNU libiconv.
42554         * modules/uniwidth/base: New file.
42555
42556 2007-07-07  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/uniname.h: New file, from GNU gettext.
42559         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42560         * lib/uniname/uninames.h: New file, from GNU gettext.
42561         * lib/uniname/uniname.c: New file, from GNU gettext.
42562         * tests/uniname/test-uninames.sh: New file.
42563         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42564         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42565         * modules/uniname/base: New file.
42566         * modules/uniname/uniname: New file.
42567         * modules/uniname/uniname-tests: New file.
42568         * MODULES.html.sh (Unicode string functions): Add the new modules.
42569
42570 2007-07-06  Bruno Haible  <bruno@clisp.org>
42571
42572         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42573
42574 2007-07-06  Bruno Haible  <bruno@clisp.org>
42575
42576         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42577         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42578         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42579         include <sys/time.h>.
42580         Reported by Eric Blake.
42581
42582 2007-07-06  Eric Blake  <ebb9@byu.net>
42583
42584         Fix testing canonicalize on cygwin.
42585         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42586         Revert patch from 2007-06-19.
42587         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42588         canonicalize module is also in use.
42589         * tests/test-canonicalize.c: New file.
42590         * tests/test-canonicalize.sh: Likewise.
42591         * modules/canonicalize-tests: Likewise.
42592
42593 2007-07-06  Jim Meyering  <jim@meyering.net>
42594
42595         * lib/getugroups.c (getugroups): Detect getgrent failure.
42596         Adjust comment to reflect reality: this function may return -1.
42597
42598 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42599
42600         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42601         the new TP address.
42602         (usage): Fix typo
42603         (gnulib_mk): New variable.
42604
42605 2007-07-05  Jim Meyering  <jim@meyering.net>
42606
42607         Don't let endgrent clobber errno, no matter how improbable.
42608         * lib/getugroups.c (getugroups): Save and restore errno around
42609         endgrent call.
42610
42611         Close the group DB even when failing with 2^31 or more members.
42612         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42613
42614 2007-07-04  Jim Meyering  <jim@meyering.net>
42615
42616         * lib/getugroups.h: New file.
42617         * lib/getugroups.c: Include "getugroups.h".
42618         Remove uses of "register" keyword.
42619         Move local variable, "cp", down into scope where used.
42620         Give "username" parameter the "const" attribute.
42621         * modules/getugroups (Files): Add lib/getugroups.h
42622
42623 2007-07-04  Karl Berry  <karl@gnu.org>
42624
42625         * MODULES.html.sh (func_all_modules): Complete rename of
42626         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42627
42628 2007-07-02  Bruno Haible  <bruno@clisp.org>
42629
42630         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42631         mode, when inttypes.h comes from gnulib.
42632         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42633
42634 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42635
42636         * NEWS: Mention lgpl module name change.
42637
42638         * modules/lgpl-2.1: Renamed from lgpl.
42639
42640         * NEWS: Mention gpl module name change.
42641
42642         * modules/gpl-3.0: New file, based on gpl-2.0.
42643
42644         * modules/gpl-2.0: Renamed from gpl.
42645
42646         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42647         doc/gpl-2.0.texi.
42648
42649 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42650
42651         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42652         #define __STDC_LIMIT_MACROS temporarily while including
42653         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42654         Problem reported by Joel E. Denny in
42655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42656
42657 2007-07-01  Bruno Haible  <bruno@clisp.org>
42658
42659         * lib/unistdio.h: New file.
42660         * lib/unistdio/u-asnprintf.h: New file.
42661         * lib/unistdio/u-asprintf.h: New file.
42662         * lib/unistdio/u-printf-args.c: New file.
42663         * lib/unistdio/u-printf-args.h: New file.
42664         * lib/unistdio/u-printf-parse.h: New file.
42665         * lib/unistdio/u-snprintf.h: New file.
42666         * lib/unistdio/u-sprintf.h: New file.
42667         * lib/unistdio/u-vasprintf.h: New file.
42668         * lib/unistdio/u-vsnprintf.h: New file.
42669         * lib/unistdio/u-vsprintf.h: New file.
42670         * lib/unistdio/ulc-asnprintf.c: New file.
42671         * lib/unistdio/ulc-asprintf.c: New file.
42672         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42673         * lib/unistdio/ulc-printf-parse.c: New file.
42674         * lib/unistdio/ulc-snprintf.c: New file.
42675         * lib/unistdio/ulc-sprintf.c: New file.
42676         * lib/unistdio/ulc-vasnprintf.c: New file.
42677         * lib/unistdio/ulc-vasprintf.c: New file.
42678         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42679         * lib/unistdio/ulc-vsnprintf.c: New file.
42680         * lib/unistdio/ulc-vsprintf.c: New file.
42681         * lib/unistdio/u8-asnprintf.c: New file.
42682         * lib/unistdio/u8-asprintf.c: New file.
42683         * lib/unistdio/u8-printf-parse.c: New file.
42684         * lib/unistdio/u8-snprintf.c: New file.
42685         * lib/unistdio/u8-sprintf.c: New file.
42686         * lib/unistdio/u8-vasnprintf.c: New file.
42687         * lib/unistdio/u8-vasprintf.c: New file.
42688         * lib/unistdio/u8-vsnprintf.c: New file.
42689         * lib/unistdio/u8-vsprintf.c: New file.
42690         * lib/unistdio/u8-u8-asnprintf.c: New file.
42691         * lib/unistdio/u8-u8-asprintf.c: New file.
42692         * lib/unistdio/u8-u8-snprintf.c: New file.
42693         * lib/unistdio/u8-u8-sprintf.c: New file.
42694         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42695         * lib/unistdio/u8-u8-vasprintf.c: New file.
42696         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42697         * lib/unistdio/u8-u8-vsprintf.c: New file.
42698         * lib/unistdio/u16-asnprintf.c: New file.
42699         * lib/unistdio/u16-asprintf.c: New file.
42700         * lib/unistdio/u16-printf-parse.c: New file.
42701         * lib/unistdio/u16-snprintf.c: New file.
42702         * lib/unistdio/u16-sprintf.c: New file.
42703         * lib/unistdio/u16-vasnprintf.c: New file.
42704         * lib/unistdio/u16-vasprintf.c: New file.
42705         * lib/unistdio/u16-vsnprintf.c: New file.
42706         * lib/unistdio/u16-vsprintf.c: New file.
42707         * lib/unistdio/u16-u16-asnprintf.c: New file.
42708         * lib/unistdio/u16-u16-asprintf.c: New file.
42709         * lib/unistdio/u16-u16-snprintf.c: New file.
42710         * lib/unistdio/u16-u16-sprintf.c: New file.
42711         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42712         * lib/unistdio/u16-u16-vasprintf.c: New file.
42713         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42714         * lib/unistdio/u16-u16-vsprintf.c: New file.
42715         * lib/unistdio/u32-asnprintf.c: New file.
42716         * lib/unistdio/u32-asprintf.c: New file.
42717         * lib/unistdio/u32-printf-parse.c: New file.
42718         * lib/unistdio/u32-snprintf.c: New file.
42719         * lib/unistdio/u32-sprintf.c: New file.
42720         * lib/unistdio/u32-vasnprintf.c: New file.
42721         * lib/unistdio/u32-vasprintf.c: New file.
42722         * lib/unistdio/u32-vsnprintf.c: New file.
42723         * lib/unistdio/u32-vsprintf.c: New file.
42724         * lib/unistdio/u32-u32-asnprintf.c: New file.
42725         * lib/unistdio/u32-u32-asprintf.c: New file.
42726         * lib/unistdio/u32-u32-snprintf.c: New file.
42727         * lib/unistdio/u32-u32-sprintf.c: New file.
42728         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42729         * lib/unistdio/u32-u32-vasprintf.c: New file.
42730         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42731         * lib/unistdio/u32-u32-vsprintf.c: New file.
42732         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42733         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42734         * tests/unistdio/test-ulc-printf1.h: New file.
42735         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42736         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42737         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42738         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42739         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42740         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42741         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42742         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42743         * tests/unistdio/test-u8-asnprintf1.c: New file.
42744         * tests/unistdio/test-u8-asnprintf1.h: New file.
42745         * tests/unistdio/test-u8-printf1.h: New file.
42746         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42747         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42748         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42749         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42750         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42751         * tests/unistdio/test-u8-vasprintf1.c: New file.
42752         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42753         * tests/unistdio/test-u8-vsprintf1.c: New file.
42754         * tests/unistdio/test-u16-asnprintf1.c: New file.
42755         * tests/unistdio/test-u16-asnprintf1.h: New file.
42756         * tests/unistdio/test-u16-printf1.h: New file.
42757         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42758         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42759         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42760         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42761         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42762         * tests/unistdio/test-u16-vasprintf1.c: New file.
42763         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42764         * tests/unistdio/test-u16-vsprintf1.c: New file.
42765         * tests/unistdio/test-u32-asnprintf1.c: New file.
42766         * tests/unistdio/test-u32-asnprintf1.h: New file.
42767         * tests/unistdio/test-u32-printf1.h: New file.
42768         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42769         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42770         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42771         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42772         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42773         * tests/unistdio/test-u32-vasprintf1.c: New file.
42774         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42775         * tests/unistdio/test-u32-vsprintf1.c: New file.
42776         * modules/unistdio/base: New file.
42777         * modules/unistdio/u-printf-args: New file.
42778         * modules/unistdio/ulc-asnprintf: New file.
42779         * modules/unistdio/ulc-asprintf: New file.
42780         * modules/unistdio/ulc-fprintf: New file.
42781         * modules/unistdio/ulc-printf-parse: New file.
42782         * modules/unistdio/ulc-snprintf: New file.
42783         * modules/unistdio/ulc-sprintf: New file.
42784         * modules/unistdio/ulc-vasnprintf: New file.
42785         * modules/unistdio/ulc-vasprintf: New file.
42786         * modules/unistdio/ulc-vfprintf: New file.
42787         * modules/unistdio/ulc-vsnprintf: New file.
42788         * modules/unistdio/ulc-vsprintf: New file.
42789         * modules/unistdio/u8-asnprintf: New file.
42790         * modules/unistdio/u8-asprintf: New file.
42791         * modules/unistdio/u8-printf-parse: New file.
42792         * modules/unistdio/u8-snprintf: New file.
42793         * modules/unistdio/u8-sprintf: New file.
42794         * modules/unistdio/u8-vasnprintf: New file.
42795         * modules/unistdio/u8-vasprintf: New file.
42796         * modules/unistdio/u8-vsnprintf: New file.
42797         * modules/unistdio/u8-vsprintf: New file.
42798         * modules/unistdio/u8-u8-asnprintf: New file.
42799         * modules/unistdio/u8-u8-asprintf: New file.
42800         * modules/unistdio/u8-u8-snprintf: New file.
42801         * modules/unistdio/u8-u8-sprintf: New file.
42802         * modules/unistdio/u8-u8-vasnprintf: New file.
42803         * modules/unistdio/u8-u8-vasprintf: New file.
42804         * modules/unistdio/u8-u8-vsnprintf: New file.
42805         * modules/unistdio/u8-u8-vsprintf: New file.
42806         * modules/unistdio/u16-asnprintf: New file.
42807         * modules/unistdio/u16-asprintf: New file.
42808         * modules/unistdio/u16-printf-parse: New file.
42809         * modules/unistdio/u16-snprintf: New file.
42810         * modules/unistdio/u16-sprintf: New file.
42811         * modules/unistdio/u16-vasnprintf: New file.
42812         * modules/unistdio/u16-vasprintf: New file.
42813         * modules/unistdio/u16-vsnprintf: New file.
42814         * modules/unistdio/u16-vsprintf: New file.
42815         * modules/unistdio/u16-u16-asnprintf: New file.
42816         * modules/unistdio/u16-u16-asprintf: New file.
42817         * modules/unistdio/u16-u16-snprintf: New file.
42818         * modules/unistdio/u16-u16-sprintf: New file.
42819         * modules/unistdio/u16-u16-vasnprintf: New file.
42820         * modules/unistdio/u16-u16-vasprintf: New file.
42821         * modules/unistdio/u16-u16-vsnprintf: New file.
42822         * modules/unistdio/u16-u16-vsprintf: New file.
42823         * modules/unistdio/u32-asnprintf: New file.
42824         * modules/unistdio/u32-asprintf: New file.
42825         * modules/unistdio/u32-printf-parse: New file.
42826         * modules/unistdio/u32-snprintf: New file.
42827         * modules/unistdio/u32-sprintf: New file.
42828         * modules/unistdio/u32-vasnprintf: New file.
42829         * modules/unistdio/u32-vasprintf: New file.
42830         * modules/unistdio/u32-vsnprintf: New file.
42831         * modules/unistdio/u32-vsprintf: New file.
42832         * modules/unistdio/u32-u32-asnprintf: New file.
42833         * modules/unistdio/u32-u32-asprintf: New file.
42834         * modules/unistdio/u32-u32-snprintf: New file.
42835         * modules/unistdio/u32-u32-sprintf: New file.
42836         * modules/unistdio/u32-u32-vasnprintf: New file.
42837         * modules/unistdio/u32-u32-vasprintf: New file.
42838         * modules/unistdio/u32-u32-vsnprintf: New file.
42839         * modules/unistdio/u32-u32-vsprintf: New file.
42840         * modules/unistdio/ulc-asnprintf-tests: New file.
42841         * modules/unistdio/ulc-vasnprintf-tests: New file.
42842         * modules/unistdio/ulc-vasprintf-tests: New file.
42843         * modules/unistdio/ulc-vsnprintf-tests: New file.
42844         * modules/unistdio/ulc-vsprintf-tests: New file.
42845         * modules/unistdio/u8-asnprintf-tests: New file.
42846         * modules/unistdio/u8-vasnprintf-tests: New file.
42847         * modules/unistdio/u8-vasprintf-tests: New file.
42848         * modules/unistdio/u8-vsnprintf-tests: New file.
42849         * modules/unistdio/u8-vsprintf-tests: New file.
42850         * modules/unistdio/u16-asnprintf-tests: New file.
42851         * modules/unistdio/u16-vasnprintf-tests: New file.
42852         * modules/unistdio/u16-vasprintf-tests: New file.
42853         * modules/unistdio/u16-vsnprintf-tests: New file.
42854         * modules/unistdio/u16-vsprintf-tests: New file.
42855         * modules/unistdio/u32-asnprintf-tests: New file.
42856         * modules/unistdio/u32-vasnprintf-tests: New file.
42857         * modules/unistdio/u32-vasprintf-tests: New file.
42858         * modules/unistdio/u32-vsnprintf-tests: New file.
42859         * modules/unistdio/u32-vsprintf-tests: New file.
42860         * MODULES.html.sh (Unicode string functions): Add the new modules.
42861
42862 2007-07-01  Bruno Haible  <bruno@clisp.org>
42863
42864         * lib/sprintf.c (sprintf): Limit the available length estimation,
42865         to avoid address wraparound.
42866         * lib/vsprintf.c (vsprintf): Likewise.
42867         * modules/sprintf-posix (Dependencies): Add stdint.
42868         * modules/vsprintf-posix (Dependencies): Likewise.
42869
42870 2007-07-01  Bruno Haible  <bruno@clisp.org>
42871
42872         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42873         Windows PATH as well. Conservative double-quoting. Comments.
42874
42875 2007-07-01  Bruno Haible  <bruno@clisp.org>
42876             Eric Blake  <ebb9@byu.net>
42877             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42878
42879         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42880         empty components in $PATH, denoting '.'.
42881
42882 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42883
42884         * gnulib-tool: Fix indentation.
42885         (func_create_megatestdir): Likewise.
42886         Report by Bruno Haible.
42887
42888 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42889
42890         Sync from Automake.
42891         * build-aux/gnupload: Fix shell portability issues with for loops.
42892         Report by Karl Berry.
42893
42894 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42895
42896         * build-aux/maint.mk (POURL): Use translationproject.org.
42897
42898 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42899             Bruno Haible  <bruno@clisp.org>
42900
42901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42902         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42903         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42904         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42905         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42906
42907 2007-06-27  Bruno Haible  <bruno@clisp.org>
42908
42909         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42910         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42911
42912 2007-06-26  Karl Berry  <karl@gnu.org>
42913
42914         * MODULES.html.sh: remove xreadlink-with-size.
42915
42916 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42917
42918         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42919         method that I hope also handles the double-include problem noted
42920         by Bruno Haible in
42921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42922
42923 2007-06-23  Bruno Haible  <bruno@clisp.org>
42924
42925         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42926         Don't let the 'mostlyclean' target fail if the last subdirectory could
42927         not be removed.
42928         Reported by Karl Berry.
42929
42930 2007-06-23  Bruno Haible  <bruno@clisp.org>
42931
42932         * gnulib-tool (echo): Add a speedier workaround for ksh.
42933         * tests/test-echo.sh: Likewise.
42934
42935 2007-06-23  Bruno Haible  <bruno@clisp.org>
42936
42937         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42938         * tests/test-echo.sh: Likewise.
42939
42940 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42941
42942         * gnulib-tool (IFS): Initialize early, so we don't set it to
42943         empty later.
42944         (self_abspathname): Rewrite algorithm to set it, reindent.
42945         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42946         (func_create_megatestdir): Merge some sed scripts.
42947
42948 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42949
42950         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42951         exposed by Sun Studio 11 cc on Solaris 8.
42952
42953 2007-06-22  Bruno Haible  <bruno@clisp.org>
42954
42955         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42956         backslashes.
42957         * tests/test-echo.sh: New file.
42958
42959 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42960
42961         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42962         simplify `sed_replace_build_aux' scripts, they are portable but
42963         echoing them with `echo' is not.
42964         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42965
42966 2007-06-21  Karl Berry  <karl@gnu.org>
42967
42968         * config/srclist.txt: guess we can't handle the licenses via
42969         srclist at the moment.
42970
42971 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42972
42973         * MODULES.html.sh: Add include_next.
42974         * modules/include_next: New file.
42975
42976 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42977
42978         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42979         INCLUDE_NEXT.
42980         (gl_CHECK_NEXT_HEADERS): New macro.
42981         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42982         the obsolescent gl_ABSOLUTE_HEADER.
42983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42984         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42985         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42986         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42987         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42988         * m4/math_h.m4 (gl_MATH_H): Likewise.
42989         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42990         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42991         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42992         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42993         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42994         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42995         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42997         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42999         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43000         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43001         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43002         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43003         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43004         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43005         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43006         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43007         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43008         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43009         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43010         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43011         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43012         * lib/float_.h: Likewise.
43013         * lib/inttypes_.h: Likewise.
43014         * lib/math_.h: Likewise.
43015         * lib/search_.h: Likewise.
43016         * lib/signal_.h: Likewise.
43017         * lib/stdint_.h: Likewise.
43018         * lib/stdio_.h: Likewise.
43019         * lib/stdlib_.h: Likewise.
43020         * lib/string_.h: Likewise.
43021         * lib/sys_stat_.h: Likewise.
43022         * lib/sys_time_.h: Likewise.
43023         * lib/time_.h: Likewise.
43024         * lib/unistd_.h: Likewise.
43025         * lib/wchar_.h: Likewise.
43026         * lib/wctype_.h: Likewise.
43027         * lib/dirent_.h: Likewise.
43028         * lib/iconv_.h: Likewise.
43029         * lib/locale_.h: Likewise.
43030         * lib/netinet_in_.h: Likewise.
43031         * lib/sys_select_.h: Likewise.
43032         * lib/sys_socket_.h: Likewise.
43033         * lib/sysexits_.h: Likewise.
43034         * modules/fcntl (Depends-on): Depend on include_next, not
43035         absolute_header.
43036         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43037         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43038         * modules/fchdir: Likewise.
43039         * modules/float: Likewise.
43040         * modules/iconv_open: Likewise.
43041         * modules/inttypes: Likewise.
43042         * modules/locale: Likewise.
43043         * modules/math: Likewise.
43044         * modules/netinet_in: Likewise.
43045         * modules/search: Likewise.
43046         * modules/signal: Likewise.
43047         * modules/stdint: Likewise.
43048         * modules/stdio: Likewise.
43049         * modules/stdlib: Likewise.
43050         * modules/string: Likewise.
43051         * modules/sys_select: Likewise.
43052         * modules/sys_socket: Likewise.
43053         * modules/sys_stat: Likewise.
43054         * modules/sys_time: Likewise.
43055         * modules/sysexits: Likewise.
43056         * modules/time: Likewise.
43057         * modules/unistd: Likewise.
43058         * modules/wchar: Likewise.
43059         * modules/wctype: Likewise.
43060         * modules/sys_stat: Change maintainer to "all".
43061         * modules/unistd: Likewise.
43062
43063 2007-06-20  Karl Berry  <karl@gnu.org>
43064
43065         * config/srclist.txt: track www changes in license files.
43066
43067 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43068
43069         * build-aux/bootstrap: Remove stray dot.
43070         Make sure build_aux settings are honored when linking
43071         gnulib_extra_files.
43072
43073 2007-06-19  Eric Blake  <ebb9@byu.net>
43074
43075         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43076         Allow compilation on cygwin.
43077
43078 2007-06-19  Jim Meyering  <jim@meyering.net>
43079
43080         xreadlink-with-size: Remove module.  No longer used.
43081         Ex-callers now use xreadlink or mreadlink-with-size.
43082         * modules/xreadlink-with-size: Remove module.
43083         * lib/xreadlink-with-size.c: Remove file.
43084         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43085         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43086         just before the function definition *is* accurate.
43087
43088         Eliminate one way canonicalize_filename_mode could exit.
43089         * lib/canonicalize.c (canonicalize_filename_mode):
43090         Use mreadlink_with_size, not xreadlink_with_size.
43091
43092 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43093
43094         Detect porting problems to FreeBSD/arm, which has time_t wider than
43095         long int.  Original problem reported for GNU diff by Xin Li in
43096         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43097         * modules/getdate (Depends-on): Add intprops, verify.
43098         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43099         is an integer type no wider than long int.
43100
43101 2007-06-18  Jim Meyering  <jim@meyering.net>
43102
43103         New module: mreadlink-with-size.
43104         * MODULES.html.sh: Add mreadlink-with-size.
43105         * modules/mreadlink-with-size: New module
43106         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43107         not xreadlink-with-size.
43108         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43109
43110 2007-06-16  Bruno Haible  <bruno@clisp.org>
43111
43112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43113         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43114         Reported by Gary V. Vaughan <gary@gnu.org>.
43115
43116 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43117
43118         Revamp lchown so that it lives in unistd.h where it belongs.
43119         * lib/lchown.h: Remove.
43120         * lib/dirchownmod.c: Don't include lib/lchown.h.
43121         * lib/fchownat.c: Likewise.
43122         * lib/openat.c: Likewise.
43123         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43124         does not follow symlinks.
43125         (EOPNOTSUPP): Define if not defined.
43126         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43127         is defined to 0.
43128         (lchown): New decl.
43129         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43130         Do not check for lchown decl.
43131         Set REPLACE_LCHOWN.
43132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43133         REPLACE_LCHOWN.
43134         * modules/chown: Make it clear it follows symlinks.
43135         * modules/lchown: Make it clear it doesn't follow symlinks.
43136         (Files): Remove lib/lchown.h
43137         (Depends-on): Add unistd.
43138         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43139         (Include): Include <unistd.h>, not "lchown.h".
43140         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43141         REPLACE_LCHOWN.
43142
43143 2007-06-15  Jim Meyering  <jim@meyering.net>
43144
43145         Change license (GPL to LGPL) of fsusage and dependents.
43146         * modules/fsusage (License): Change to LGPL.
43147         * modules/full-read (License): Likewise.
43148         * modules/full-write (License): Likewise.
43149         * modules/safe-read (License): Likewise.
43150         * modules/safe-write (License): Likewise.
43151
43152 2007-06-14  Ben Pfaff  <blp@gnu.org>
43153
43154         Missing part of allocsa -> malloca transition.
43155         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43156         gl_MALLOCA.
43157
43158 2007-06-12  Bruno Haible  <bruno@clisp.org>
43159
43160         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43161         to ia64, x86_64, i386.
43162         Reported by Eric Blake.
43163
43164 2007-06-12  Bruno Haible  <bruno@clisp.org>
43165
43166         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43167         cross-compiling to x86_64.
43168
43169 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43170
43171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43172         glitch reported by Ralf Wildenhues in
43173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43174
43175         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43176         Vin Shelton.
43177
43178 2007-06-11  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43181         replacement string.
43182         Reported by Eric Blake.
43183
43184 2007-06-10  Bruno Haible  <bruno@clisp.org>
43185
43186         Prepare vasnprintf code for use with Unicode strings.
43187         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43188         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43189         TYPE_U32_STRING.
43190         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43191         a_u32_string variants.
43192         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43193         * lib/printf-args.c: Don't include config.h and the specification
43194         header if PRINTF_FETCHARGS is already defined.
43195         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43196         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43197         TYPE_U16_STRING, TYPE_U32_STRING.
43198         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43199         u16_directive, u16_directives, u32_directive, u32_directives): New
43200         types.
43201         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43202         New declarations.
43203         * lib/printf-parse.c: Don't include config.h and the specification
43204         header if PRINTF_PARSE is already defined. Eliminate the set of
43205         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43206         them now. Include c-ctype.h.
43207         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43208         directive and CHAR_T_ONLY_ASCII.
43209         * lib/vasnprintf.c: Don't include config.h and the specification header
43210         if VASNPRINTF is already defined.
43211         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43212         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43213         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43214         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43215         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43216         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43217         code accordingly.
43218         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43219         pad_ourselves also in this case, with the 'c' and 's' directives, and
43220         with a different notion of "width".
43221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43222
43223 2007-06-10  Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/unistr/u32-mbsnlen: New file.
43226         * lib/unistr/u32-mbsnlen.c: New file.
43227
43228         * modules/unistr/u16-mbsnlen: New file.
43229         * lib/unistr/u16-mbsnlen.c: New file.
43230
43231         * modules/unistr/u8-mbsnlen: New file.
43232         * lib/unistr/u8-mbsnlen.c: New file.
43233
43234         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43235         declarations.
43236
43237 2007-06-10  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/string_.h (mbsnlen): New declaration.
43240         * lib/mbsnlen.c: New file.
43241         * m4/mbsnlen.m4: New file.
43242         * modules/mbsnlen: New file.
43243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43244         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43245         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43246
43247 2007-06-10  Bruno Haible  <bruno@clisp.org>
43248
43249         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43250
43251 2007-06-10  Bruno Haible  <bruno@clisp.org>
43252
43253         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43254         * lib/mbuiter.h: Likewise.
43255
43256 2007-06-10  Bruno Haible  <bruno@clisp.org>
43257
43258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43259         declaration.
43260
43261 2007-06-10  Karl Berry  <karl@gnu.org>
43262
43263         * config/srclist.txt: remove gettext entries, Bruno prefers
43264         to update individually.
43265
43266 2007-06-10  Bruno Haible  <bruno@clisp.org>
43267
43268         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43269         'maxlen'. Ensure only length + width bytes are allocated, not
43270         length + 1 + width.
43271
43272 2007-06-09  Bruno Haible  <bruno@clisp.org>
43273
43274         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43275         (CHAR_T): Remove macro.
43276         (VASNPRINTF): Update.
43277
43278 2007-06-09  Bruno Haible  <bruno@clisp.org>
43279
43280         * MODULES.html.sh (Unicode string functions): Add the new modules.
43281
43282         * modules/uniconv/u32-conv-to-enc: New file.
43283         * lib/uniconv/u32-conv-to-enc.c: New file.
43284         * modules/uniconv/u32-conv-to-enc-tests: New file.
43285         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43286
43287         * modules/uniconv/u16-conv-to-enc: New file.
43288         * lib/uniconv/u16-conv-to-enc.c: New file.
43289         * lib/uniconv/u-conv-to-enc.h: New file.
43290         * modules/uniconv/u16-conv-to-enc-tests: New file.
43291         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43292
43293         * modules/uniconv/u8-conv-to-enc: New file.
43294         * lib/uniconv/u8-conv-to-enc.c: New file.
43295         * modules/uniconv/u8-conv-to-enc-tests: New file.
43296         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43297
43298         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43299         u32_conv_to_encoding): New declarations.
43300
43301 2007-06-09  Bruno Haible  <bruno@clisp.org>
43302
43303         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43304
43305 2007-06-09  Bruno Haible  <bruno@clisp.org>
43306
43307         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43308         * modules/malloca: Renamed from modules/allocsa, updated.
43309         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43310         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43311         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43312         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43313         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43314         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43315         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43316         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43317         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43318         * modules/c-strcasestr (Depends-on): Update.
43319         * lib/c-strcasestr.c: Update.
43320         * modules/c-strstr (Depends-on): Update.
43321         * lib/c-strstr.c: Update.
43322         * modules/canonicalize-lgpl (Depends-on): Update.
43323         * lib/canonicalize-lgpl.c: Update.
43324         * modules/clean-temp (Depends-on): Update.
43325         * lib/clean-temp.c: Update.
43326         * modules/csharpcomp (Depends-on): Update.
43327         * lib/csharpcomp.c: Update.
43328         * modules/csharpexec (Depends-on): Update.
43329         * lib/csharpexec.c: Update.
43330         * modules/javacomp (Depends-on): Update.
43331         * lib/javacomp.c: Update.
43332         * modules/javaexec (Depends-on): Update.
43333         * lib/javaexec.c: Update.
43334         * modules/mbscasestr (Depends-on): Update.
43335         * lib/mbscasestr.c: Update.
43336         * modules/mbsstr (Depends-on): Update.
43337         * lib/mbsstr.c: Update.
43338         * modules/setenv (Depends-on): Update.
43339         * lib/setenv.c: Update.
43340         * modules/strcasestr (Depends-on): Update.
43341         * lib/strcasestr.c: Update.
43342         * modules/striconveha (Depends-on): Update.
43343         * lib/striconveha.c: Update.
43344         * modules/relocatable-prog-wrapper (Files): Update.
43345         * lib/relocwrapper.c: Update.
43346         * build-aux/install-reloc: Update.
43347         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43348
43349 2007-06-08  Bruno Haible  <bruno@clisp.org>
43350
43351         Port to uClibc.
43352         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43353         * lib/fpurge.c (fpurge): Likewise.
43354         * lib/freading.c (freading): Likewise.
43355         * lib/fseeko.c (rpl_fseeko): Likewise.
43356         * lib/fseterr.c (fseterr): Likewise.
43357         * lib/fwriting.c (fwriting): Likewise.
43358         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43359
43360 2007-06-08  Bruno Haible  <bruno@clisp.org>
43361
43362         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43363         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43364         * modules/gettext (Files): Add m4/intlmacosx.m4.
43365
43366 2007-06-07  Bruno Haible  <bruno@clisp.org>
43367
43368         * modules/localename-tests: New file.
43369         * tests/test-localename.c: New file.
43370
43371         New module 'localename'.
43372         * lib/localename.h: New file.
43373         * lib/localename.c: New file, from GNU gettext.
43374         * m4/localename.m4: New file.
43375         * modules/localename: New file.
43376
43377 2007-06-07  Bruno Haible  <bruno@clisp.org>
43378
43379         Work around the lack of <wchar.h> on some builds of uClibc.
43380         * doc/headers/wchar.texi: Update.
43381         * lib/wchar_.h: Include <wchar.h> only if it exists.
43382         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43383         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43384         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43385         doesn't exist.
43386         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43387         * modules/mbfile (Depends-on): Add wchar.
43388         * modules/mbiter (Depends-on): Likewise.
43389         * modules/mbuiter (Depends-on): Likewise.
43390         Reported by Simon Josefsson.
43391
43392 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43393
43394         Work around problem reported by Steven M. Schweda in
43395         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43396         Tru64 5.1B with the Compaq compiler environment installed declares
43397         an 'isblank' function but does not define it in the C library.
43398         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43399         * lib/regex_internal.h (isblank): Likewise.
43400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43401         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43402
43403 2007-06-05  Bruno Haible  <bruno@clisp.org>
43404
43405         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43406         ia64.
43407         * modules/printf-safe: New file.
43408         * modules/fprintf-posix (Depends-on): Add printf-safe.
43409         * modules/printf-posix (Depends-on): Likewise.
43410         * modules/snprintf-posix (Depends-on): Likewise.
43411         * modules/sprintf-posix (Depends-on): Likewise.
43412         * modules/vasnprintf-posix (Depends-on): Likewise.
43413         * modules/vasprintf-posix (Depends-on): Likewise.
43414         * modules/vfprintf-posix (Depends-on): Likewise.
43415         * modules/vprintf-posix (Depends-on): Likewise.
43416         * modules/vsnprintf-posix (Depends-on): Likewise.
43417         * modules/vsprintf-posix (Depends-on): Likewise.
43418         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43419         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43420         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43421         "no" on i386, x86_64, ia64.
43422         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43423         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43424         on i386, x86_64, ia64.
43425         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43426         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43427         on i386, x86_64, ia64.
43428         * tests/test-vasnprintf-posix.c: Include float.h.
43429         (LDBL80_WORDS): New macro.
43430         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43431         on i386, x86_64, ia64.
43432         * tests/test-vasprintf-posix.c: Include float.h.
43433         (LDBL80_WORDS): New macro.
43434         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43435         on i386, x86_64, ia64.
43436         * tests/test-snprintf-posix.c: Include float.h.
43437         * tests/test-sprintf-posix.c: Likewise.
43438         * tests/test-vsnprintf-posix.c: Likewise.
43439         * tests/test-vsprintf-posix.c: Likewise.
43440
43441 2007-06-05  Bruno Haible  <bruno@clisp.org>
43442
43443         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43444         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43445         non-IEEE numbers on i386, x86_64, ia64.
43446         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43447         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43448         * tests/test-isnanl.h: Include float.h.
43449         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43450
43451 2007-06-05  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43454         also the %a / %A. Handle the %a / %A code before this extra handling.
43455
43456 2007-06-05  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43459         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43460
43461 2007-06-05  Bruno Haible  <bruno@clisp.org>
43462
43463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43464         typo in variable name.
43465
43466 2007-06-05  Eric Blake  <ebb9@byu.net>
43467
43468         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43469         Reported by Simon Josefsson.
43470
43471 2007-06-04  Bruno Haible  <bruno@clisp.org>
43472
43473         Avoid test failures on some PowerPC platforms.
43474         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43475         Define differently for PowerPC.
43476         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43477         Reported by Gary V. Vaughan <gary@gnu.org>.
43478
43479 2007-06-02  Bruno Haible  <bruno@clisp.org>
43480
43481         Fix test-stdint failure on FreeBSD/ia64.
43482         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43483         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43484         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43485         * doc/headers/stdint.texi: Update.
43486
43487 2007-06-01  Bruno Haible  <bruno@clisp.org>
43488
43489         * tests/test-binary-io.c (main): Pass a third argument to open().
43490         Reported by Gary V. Vaughan <gary@gnu.org>.
43491
43492 2007-06-01  Bruno Haible  <bruno@clisp.org>
43493
43494         * doc/functions/frexpl.texi: Update for mingw.
43495
43496 2007-06-01  Bruno Haible  <bruno@clisp.org>
43497
43498         * tests/test-lseek.c (main): Disable test of errno for invalid third
43499         argument.
43500         * doc/functions/lseek.texi: Update.
43501         Reported by Gary V. Vaughan <gary@gnu.org>.
43502
43503 2007-05-28  Bruno Haible  <bruno@clisp.org>
43504
43505         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43506
43507 2007-05-31  Eric Blake  <ebb9@byu.net>
43508
43509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43510         cross compiling.
43511
43512 2007-05-30  Eric Blake  <ebb9@byu.net>
43513         and Bruno Haible  <bruno@clisp.org>
43514
43515         Work around mingw test failures exposed by m4-1.4.9b.
43516         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43517         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43518         moment.
43519
43520 2007-05-30  Bruno Haible  <bruno@clisp.org>
43521
43522         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43523         assuming that they are closed. Needed on HP-UX 11.
43524
43525 2007-05-29  Bruno Haible  <bruno@clisp.org>
43526
43527         Fix a problem with #include_next.
43528         * lib/dirent_.h: Split the double-inclusion guard.
43529         * lib/fcntl_.h: Likewise.
43530         * lib/float_.h: Likewise.
43531         * lib/iconv_.h: Likewise.
43532         * lib/inttypes_.h: Likewise.
43533         * lib/locale_.h: Likewise.
43534         * lib/math_.h: Likewise.
43535         * lib/netinet_in_.h: Likewise.
43536         * lib/search_.h: Likewise.
43537         * lib/signal_.h: Likewise.
43538         * lib/stdint_.h: Likewise.
43539         * lib/stdio_.h: Likewise.
43540         * lib/stdlib_.h: Likewise.
43541         * lib/string_.h: Likewise.
43542         * lib/sys_select_.h: Likewise.
43543         * lib/sys_socket_.h: Likewise.
43544         * lib/sys_stat_.h: Likewise.
43545         * lib/sys_time_.h: Likewise.
43546         * lib/sysexits_.h: Likewise.
43547         * lib/time_.h: Likewise.
43548         * lib/unistd_.h: Likewise.
43549         * lib/wchar_.h: Likewise.
43550         * lib/wctype_.h: Likewise.
43551
43552 2007-05-29  Bruno Haible  <bruno@clisp.org>
43553
43554         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43555         for the moment.
43556
43557 2007-05-29  Bruno Haible  <bruno@clisp.org>
43558
43559         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43560         invocation.
43561         Reported by Eric Blake.
43562
43563 2007-05-29  Bruno Haible  <bruno@clisp.org>
43564
43565         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43566         compiling case.
43567
43568 2007-05-29  Eric Blake  <ebb9@byu.net>
43569             Bruno Haible  <bruno@clisp.org>
43570
43571         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43572         cross compiles.
43573
43574 2007-05-28  Eric Blake  <ebb9@byu.net>
43575
43576         * modules/closein-tests (test_closein_LDADD): Support test on
43577         cygwin with libtool.
43578
43579 2007-05-28  Bruno Haible  <bruno@clisp.org>
43580
43581         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43582         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43583         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43584         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43585         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43586         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43587         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43588         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43589         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43590
43591 2007-05-28  Eric Blake  <ebb9@byu.net>
43592
43593         Unconditionally include <config.h> in unit tests.
43594         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43595         * tests/test-allocsa.c, tests/test-arcfour.c,
43596         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43597         tests/test-array_list.c, tests/test-array_oset.c,
43598         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43599         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43600         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43601         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43602         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43603         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43604         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43605         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43606         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43607         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43608         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43609         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43610         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43611         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43612         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43613         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43614         test-md5.c, test-memmem.c, test-printf-posix.c,
43615         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43616         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43617         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43618         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43619         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43620         test-vasnprintf-posix2.c, test-vasnprintf.c,
43621         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43622         test-vfprintf-posix.c, test-vprintf-posix.c,
43623         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43624         test-xvasprintf.c: Likewise.
43625
43626 2007-05-28  Bruno Haible  <bruno@clisp.org>
43627
43628         * gnulib-tool (func_import): Remember the --with-tests command-line
43629         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43630         Reported by Eric Blake.
43631
43632 2007-05-28  Bruno Haible  <bruno@clisp.org>
43633
43634         * modules/ftell-tests: New file.
43635         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43636         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43637
43638         * lib/ftell.c: New file.
43639         * modules/ftell: New file.
43640         * m4/ftell.m4: New file.
43641         * doc/functions/ftell.texi: Update.
43642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43643         REPLACE_FTELL.
43644         * lib/stdio_.h (rpl_ftell): New declaration.
43645         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43646         REPLACE_FTELL.
43647
43648 2007-05-28  Eric Blake  <ebb9@byu.net>
43649
43650         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43651
43652 2007-05-28  Bruno Haible  <bruno@clisp.org>
43653
43654         * modules/fseek-tests: New file.
43655         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43656         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43657
43658         * lib/fseek.c: New file.
43659         * modules/fseek: New file.
43660         * m4/fseek.m4: New file.
43661         * doc/functions/fseek.texi: Update.
43662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43663         REPLACE_FSEEK.
43664         * lib/stdio_.h (rpl_fseek): New declaration.
43665         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43666         REPLACE_FSEEK.
43667
43668 2007-05-28  Bruno Haible  <bruno@clisp.org>
43669
43670         * lib/stdio_.h (fflush): More comments.
43671
43672 2007-05-28  Bruno Haible  <bruno@clisp.org>
43673
43674         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43675         runtime test.
43676
43677 2007-05-28  Eric Blake  <ebb9@byu.net>
43678
43679         Improve lseek module.
43680         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43681         * lib/unistd_.h (lseek): Scale back link warning message.
43682         * tests/test-lseek.c: Beef up test.
43683         * tests/test-lseek.sh: Exercise more facets of lseek.
43684         Reported by Bruno Haible.
43685
43686 2007-05-28  Bruno Haible  <bruno@clisp.org>
43687
43688         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43689         to define.
43690
43691 2007-05-27  Bruno Haible  <bruno@clisp.org>
43692
43693         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43694
43695 2007-05-27  Bruno Haible  <bruno@clisp.org>
43696
43697         * modules/openmp: New file.
43698         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43699         Noah Misch.
43700
43701 2007-05-26  Bruno Haible  <bruno@clisp.org>
43702
43703         * modules/chdir-long (Depends-on): Add fchdir.
43704         * modules/chdir-safer (Depends-on): Likewise.
43705         * modules/fts (Depends-on): Likewise.
43706         * modules/fts-lgpl (Depends-on): Likewise.
43707         * modules/openat (Depends-on): Likewise.
43708         * modules/savewd (Depends-on): Likewise.
43709
43710 2007-05-24  Eric Blake  <ebb9@byu.net>
43711
43712         Fix lseek on mingw.
43713         * modules/lseek: New module.
43714         * m4/lseek.m4: New file.
43715         * lib/lseek.c: New file.
43716         * modules/lseek-tests: New file.
43717         * tests/test-lseek.c: New file.
43718         * tests/test-lseek.sh: New file.
43719         * MODULES.html.sh: Document lseek module.
43720         * modules/fflush (Depends-on): Add lseek, fseeko.
43721         * modules/fseeko (Depends-on): Likewise.
43722         * modules/ftello (Depends-on): Likewise.
43723         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43724         broken.
43725         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43726         broken.
43727         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43728         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43729         * lib/ftello.c (rpl_ftello): Likewise.
43730         * tests/test-fseeko.c (main): Test this.
43731         * tests/test-fseeko.sh: Likewise.
43732         * tests/test-ftello.c (main): Likewise.
43733         * tests/test-ftello.sh: Likewise.
43734         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43735         implies replacing fseek.
43736         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43737         HAVE_FTELLO.
43738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43739         * modules/unistd (Makefile.am): Likewise.
43740         * lib/unistd_.h (lseek): Declare a replacement.
43741         * doc/functions/lseek.texi (lseek): Document this fix.
43742         * doc/functions/fseek.texi (fseek): Likewise.
43743         * doc/functions/ftell.texi (ftell): Likewise.
43744
43745 2007-05-24  Bruno Haible  <bruno@clisp.org>
43746
43747         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43748         in the printed representation of a NaN.
43749         * tests/test-vasprintf-posix.c (test_function): Likewise.
43750         * tests/test-snprintf-posix.h (test_function): Likewise.
43751         * tests/test-sprintf-posix.h (test_function): Likewise.
43752         Reported by Eric Blake.
43753
43754 2007-05-23  Eric Blake  <ebb9@byu.net>
43755
43756         Fix fseeko/ftello on cygwin 1.5.24.
43757         * doc/functions/fseeko.texi (fseeko): Document the fix.
43758         * doc/functions/ftello.texi (ftello): Document the fix.
43759         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43760         * doc/functions/stdout.text (stdout): New file.
43761         * doc/functions/stderr.text (stderr): New file.
43762         * doc/gnulib.texi (Function Substitutes): Use new files.
43763         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43764         prior to 1.7.0.
43765         * tests/test-ftello.c (main): Likewise for ftello.
43766         * tests/test-fseeko.sh: New file.
43767         * tests/test-ftello.sh: New file.
43768         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43769         with seekable stdin.
43770         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43772         (gl_REPLACE_FSEEKO): New macro.
43773         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43774         * modules/fseeko (Files): Distribute fseeko.c.
43775         * modules/ftello (Files): Distribute ftello.c.
43776         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43777         mode.
43778         * lib/ftello.c (rpl_ftello): New file.
43779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43780         fseeko, ftello.
43781         (gl_STDIN_LARGE_OFFSET): New macro.
43782         * modules/stdio (Makefile.am): Perform the replacement.
43783         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43784
43785 2007-05-23  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43788         GNULIB_POSIXCHECK is defined.
43789
43790 2007-05-21  Bruno Haible  <bruno@clisp.org>
43791
43792         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43793         Check also the output for NaN arguments. When cross-compiling, guess
43794         no on IRIX.
43795         * lib/vasnprintf.c: Update comments.
43796         * tests/test-vasnprintf-posix.c (strisnan): New function.
43797         (test_function): Use it.
43798         * tests/test-vasprintf-posix.c (strisnan): New function.
43799         (test_function): Use it.
43800         * tests/test-snprintf-posix.h (strisnan): New function.
43801         (test_function): Use it.
43802         * tests/test-sprintf-posix.h (strisnan): New function.
43803         (test_function): Use it.
43804         Reported by Eric Blake.
43805
43806 2007-05-20  Bruno Haible  <bruno@clisp.org>
43807
43808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43809         numbers that fails on BeOS.
43810         * doc/functions/frexpl.texi: Update.
43811
43812 2007-05-20  Jim Meyering  <jim@meyering.net>
43813
43814         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43815         forced upon us by glibc-2.6.
43816
43817 2007-05-20  Bruno Haible  <bruno@clisp.org>
43818
43819         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43820         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43821         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43822         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43823         NEED_PRINTF_INFINITE.
43824         (is_infinitel): New function.
43825         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43827         gl_PREREQ_VASNPRINTF_INFINITE.
43828         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43829         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43830         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43831         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43832         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43833         gl_PREREQ_VASNPRINTF_INFINITE.
43834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43841         * doc/functions/fprintf.texi: Update.
43842         * doc/functions/printf.texi: Update.
43843         * doc/functions/snprintf.texi: Update.
43844         * doc/functions/sprintf.texi: Update.
43845         * doc/functions/vfprintf.texi: Update.
43846         * doc/functions/vprintf.texi: Update.
43847         * doc/functions/vsnprintf.texi: Update.
43848         * doc/functions/vsprintf.texi: Update.
43849
43850 2007-05-20  Bruno Haible  <bruno@clisp.org>
43851
43852         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43853         was not found in libc.
43854         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43855
43856 2007-05-20  Bruno Haible  <bruno@clisp.org>
43857
43858         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43859         printed as "-nan" instead of "nan".
43860         * tests/test-vasprintf-posix.c (test_function): Likewise.
43861         * tests/test-snprintf-posix.h (test_function): Likewise.
43862         * tests/test-sprintf-posix.h (test_function): Likewise.
43863         Needed for HP-UX 11.
43864
43865 2007-05-20  Jim Meyering  <jim@meyering.net>
43866
43867         Fix buggy test for the fchownat-deref bug.
43868         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43869         symlink required for the run-test.  Without it, this test would
43870         always declare that fchownat doesn't work, and client code would
43871         unnecessarily use the replacement function with fixed libc.
43872         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43873         Reported by Greg Schafer.
43874
43875 2007-05-19  Bruno Haible  <bruno@clisp.org>
43876
43877         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43878         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43879         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43880         Needed for IRIX 6.5 and Solaris 2.5.1.
43881
43882 2007-05-19  Bruno Haible  <bruno@clisp.org>
43883
43884         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43885         (test_function): Skip tests involving -0.0 on platforms where
43886         -0.0 = 0.0.
43887         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43888         (test_function): Skip tests involving -0.0 on platforms where
43889         -0.0 = 0.0.
43890         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43891         (test_function): Skip tests involving -0.0 on platforms where
43892         -0.0 = 0.0.
43893         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43894         (test_function): Skip tests involving -0.0 on platforms where
43895         -0.0 = 0.0.
43896         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43897         tests.
43898         * tests/test-printf-posix.h (test_function): Likewise.
43899         * tests/test-printf-posix.output: Remove all -0.0 related results.
43900         Needed for IRIX 6.5.
43901
43902 2007-05-19  Bruno Haible  <bruno@clisp.org>
43903
43904         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43905         printed as "nan0x7fffffff" instead of "nan".
43906         * tests/test-vasprintf-posix.c (test_function): Likewise.
43907         * tests/test-snprintf-posix.h (test_function): Likewise.
43908         * tests/test-sprintf-posix.h (test_function): Likewise.
43909         * tests/test-fprintf-posix.h (NaN): Remove macro.
43910         (test_function): Remove all NaN related tests.
43911         * tests/test-printf-posix.h (NaN): Remove macro.
43912         (test_function): Remove all NaN related tests.
43913         * tests/test-printf-posix.output: Remove all NaN related results.
43914         Needed for IRIX 6.5.
43915
43916 2007-05-19  Bruno Haible  <bruno@clisp.org>
43917
43918         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43920
43921 2007-05-19  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/float_.h: New file.
43924         * m4/float_h.m4: New file.
43925         * modules/float: New file.
43926         * modules/isnanl (Dependencies): Add float.
43927         * modules/isnanl-nolibm (Dependencies): Likewise.
43928         * modules/mathl (Dependencies): Likewise.
43929         * modules/printf-frexpl (Dependencies): Likewise.
43930         * modules/signbit (Dependencies): Likewise.
43931         * modules/vasnprintf (Dependencies): Likewise.
43932         * doc/headers/float.texi: Update.
43933
43934 2007-05-19  Jim Meyering  <jim@meyering.net>
43935
43936         * lib/utimens.c (gl_futimens): Rename from futimens,
43937         now that glibc-2.6 declares futimens.
43938         * lib/utimens.h: Likewise.
43939
43940 2007-05-19  Bruno Haible  <bruno@clisp.org>
43941
43942         Avoid test failures on mingw.
43943         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43944         * tests/test-printf-posix.sh: Likewise.
43945         * tests/test-vfprintf-posix.sh: Likewise.
43946         * tests/test-vprintf-posix.sh: Likewise.
43947
43948 2007-05-19  Bruno Haible  <bruno@clisp.org>
43949
43950         Fix *printf result for NaN, Inf, -0.0 on mingw.
43951         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43952         * lib/vasnprintf.c: Include math.h and isnan.h.
43953         (is_infinite_or_zero): New function.
43954         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43955         values in the %f, %F, %e, %E, %g, %G directives.
43956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43957         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43958         gl_PRINTF_INFINITE and test its result. Invoke
43959         gl_PREREQ_VASNPRINTF_INFINITE.
43960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43961         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43966         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43967         * doc/functions/fprintf.texi: Update.
43968         * doc/functions/printf.texi: Update.
43969         * doc/functions/snprintf.texi: Update.
43970         * doc/functions/sprintf.texi: Update.
43971         * doc/functions/vfprintf.texi: Update.
43972         * doc/functions/vprintf.texi: Update.
43973         * doc/functions/vsnprintf.texi: Update.
43974         * doc/functions/vsprintf.texi: Update.
43975
43976 2007-05-19  Bruno Haible  <bruno@clisp.org>
43977
43978         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43979         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43980         Instead of multiplying with 10^k, set extra_zeroes to k.
43981         (scale10_round_long_double): Remove function.
43982
43983 2007-05-18  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43986         introduced on 2007-05-06.
43987
43988 2007-05-18  Bruno Haible  <bruno@clisp.org>
43989
43990         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43991         %g directives.
43992         * tests/test-vasprintf-posix.c (test_function): Likewise.
43993         * tests/test-snprintf-posix.h (test_function): Likewise.
43994         * tests/test-sprintf-posix.h (test_function): Likewise.
43995
43996 2007-05-18  Bruno Haible  <bruno@clisp.org>
43997
43998         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43999         (strmatch): New function.
44000         (test_function): Test the %f directive on numbers of various exponents.
44001         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44002         (strmatch): New function.
44003         (test_function): Test the %f directive on numbers of various exponents.
44004         * tests/test-snprintf-posix.h (strmatch): New function.
44005         (test_function): Test the %f directive on numbers of various exponents.
44006         * tests/test-sprintf-posix.h (strmatch): New function.
44007         (test_function): Test the %f directive on numbers of various exponents.
44008         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44009         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44010         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44011         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44012
44013 2007-05-18  Bruno Haible  <bruno@clisp.org>
44014
44015         Add support for 'long double' number output.
44016         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44017         * lib/vasnprintf.c: Include math.h and float+.h.
44018         (mp_limb_t): New type.
44019         (GMP_LIMB_BITS): New macro.
44020         (mp_twolimb_t): New type.
44021         (GMP_TWOLIMB_BITS): New macro.
44022         (mpn_t): New type.
44023         (multiply, divide, convert_to_decimal, decode_long_double,
44024         scale10_round_long_double, scale10_round_decimal_long_double,
44025         floorlog10l): New functions.
44026         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44027         for the %f, %F, %e, %E, %g, %G directives.
44028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44030         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44031         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44032         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44039         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44040         * modules/snprintf-posix (Depends-on): Likewise.
44041         * modules/sprintf-posix (Depends-on): Likewise.
44042         * modules/vasnprintf-posix (Depends-on): Likewise.
44043         * modules/vasprintf-posix (Depends-on): Likewise.
44044         * modules/vfprintf-posix (Depends-on): Likewise.
44045         * modules/vsnprintf-posix (Depends-on): Likewise.
44046         * modules/vsprintf-posix (Depends-on): Likewise.
44047         * modules/vasnprintf (Files): Add lib/float+.h.
44048         * doc/functions/fprintf.texi: Update.
44049         * doc/functions/printf.texi: Update.
44050         * doc/functions/snprintf.texi: Update.
44051         * doc/functions/sprintf.texi: Update.
44052         * doc/functions/vfprintf.texi: Update.
44053         * doc/functions/vprintf.texi: Update.
44054         * doc/functions/vsnprintf.texi: Update.
44055         * doc/functions/vsprintf.texi: Update.
44056
44057 2007-05-18  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44060
44061 2007-05-18  Bruno Haible  <bruno@clisp.org>
44062
44063         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44064         for printing 64-bit integers. Needed for mingw.
44065
44066 2007-05-18  Bruno Haible  <bruno@clisp.org>
44067
44068         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44069         gl_FUNC_FREXPL_WORKS.
44070         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44071
44072 2007-05-18  Bruno Haible  <bruno@clisp.org>
44073
44074         * modules/frexpl-nolibm-tests: New file.
44075
44076         * modules/frexpl-nolibm: New file.
44077         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44078
44079 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44080
44081         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44082         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44083         GCC 4.2, which otherwise issues a lot of warnings.
44084         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44085         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44086         Likewise.
44087         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44088         * modules/iconv_open (iconv.h): Likewise.
44089         * modules/locale (locale.h): Likewise.
44090         * modules/netinet_in (netinet/in.h): Likewise.
44091         * modules/sys_select (sys_select.h): Likewise.
44092         * modules/sys_socket (sys/socket.h): Likewise.
44093         * modules/sys_stat (sys/stat.h): Likewise.
44094         * modules/sysexits (sysexits.h): Likewise.
44095         * modules/unistd (unistd.h): Likewise.
44096
44097 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44098
44099         * modules/closein-tests (Makefile.am): Distribute
44100         `test-closein.sh'.
44101
44102 2007-05-17  Bruno Haible  <bruno@clisp.org>
44103
44104         * tests/test-printf-posix.output: Renamed from
44105         tests/test-fprintf-posix.out.
44106         * modules/fprintf-posix-tests: Update.
44107         * modules/printf-posix-tests: Update.
44108         * modules/vfprintf-posix-tests: Update.
44109         * modules/vprintf-posix-tests: Update.
44110         * tests/test-fprintf-posix.sh: Update.
44111         * tests/test-printf-posix.sh: Update.
44112         * tests/test-vfprintf-posix.sh: Update.
44113         * tests/test-vprintf-posix.sh: Update.
44114         Reported by Ralf Wildenhues.
44115
44116 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44117
44118         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44119         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44120         GCC 4.2, which otherwise issues a lot of warnings.
44121         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44122         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44123         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44124         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44125         it should no longer be needed.
44126         * lib/string_.h: Likewise.
44127         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44128         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44129         * modules/inttypes (inttypes.h): Likewise.
44130         * modules/math (math.h): Likewise.
44131         * modules/search (search.h): Likewise.
44132         * modules/signal (signal.h): Likewise.
44133         * modules/stdint (stdint.h): Likewise.
44134         * modules/stdio (stdio.h): Likewise.
44135         * modules/stdlib (stdlib.h): Likewise.
44136         * modules/string (string.h): Likewise.
44137         * modules/sys_time (sys/time.h): Likewise.
44138         * modules/time (time.h): Likewise.
44139         * modules/wchar (wchar.h): Likewise.
44140         * modules/wctype (wtype.h): Likewise.
44141
44142 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44143
44144         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44145
44146 2007-05-13  Bruno Haible  <bruno@clisp.org>
44147
44148         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44149         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44150         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44151         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44152         (gl_PREREQ_STRTOK_R): Don't require it here.
44153
44154 2007-05-13  Bruno Haible  <bruno@clisp.org>
44155
44156         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44157         when used in C++ mode.
44158
44159 2007-05-12  Bruno Haible  <bruno@clisp.org>
44160
44161         * lib/linebuffer.h: Tweak doc.
44162         * lib/linebuffer.c: Likewise.
44163
44164 2007-05-12  James Youngman  <jay@gnu.org>
44165
44166         * lib/linebuffer.c (readlinebuffer_delim): New function,
44167         like readlinebuffer, but use a caller-specified delimiter.
44168         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44169         as the delimiter.
44170         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44171
44172 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44173
44174         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44175         * modules/openat (Files): Remove openat-die.c.
44176         (Depends-on): Add openat-die.
44177         * modules/openat-die: New module.
44178
44179 2007-05-06  Bruno Haible  <bruno@clisp.org>
44180
44181         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44182         Update with info about Cygwin.
44183         * doc/functions/fprintf.texi: Update.
44184         * doc/functions/printf.texi: Update.
44185         * doc/functions/snprintf.texi: Update.
44186         * doc/functions/sprintf.texi: Update.
44187         * doc/functions/vfprintf.texi: Update.
44188         * doc/functions/vprintf.texi: Update.
44189         * doc/functions/vsnprintf.texi: Update.
44190         * doc/functions/vsprintf.texi: Update.
44191         Reported by Eric Blake.
44192
44193 2007-05-06  Bruno Haible  <bruno@clisp.org>
44194
44195         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44196         padding ourselves for the floating-point directives.
44197         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44200         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44201         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44209         * tests/test-snprintf-posix.h (test_function): Also check the width
44210         and some flags in the %f directive.
44211         * tests/test-sprintf-posix.h (test_function): Likewise.
44212         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44213         * tests/test-vasprintf-posix.c (test_function): Likewise.
44214         * doc/functions/fprintf.texi: Update.
44215         * doc/functions/printf.texi: Update.
44216         * doc/functions/snprintf.texi: Update.
44217         * doc/functions/sprintf.texi: Update.
44218         * doc/functions/vfprintf.texi: Update.
44219         * doc/functions/vprintf.texi: Update.
44220         * doc/functions/vsnprintf.texi: Update.
44221         * doc/functions/vsprintf.texi: Update.
44222
44223 2007-05-06  Bruno Haible  <bruno@clisp.org>
44224
44225         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44226         pass the ' flag character to sprintf or snprintf.
44227         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44230         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44231         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44236         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44239         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44240         flag.
44241         * tests/test-sprintf-posix.h (test_function): Likewise.
44242         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44243         * tests/test-vasprintf-posix.c (test_function): Likewise.
44244         * doc/functions/fprintf.texi: Update.
44245         * doc/functions/printf.texi: Update.
44246         * doc/functions/snprintf.texi: Update.
44247         * doc/functions/sprintf.texi: Update.
44248         * doc/functions/vfprintf.texi: Update.
44249         * doc/functions/vprintf.texi: Update.
44250         * doc/functions/vsnprintf.texi: Update.
44251         * doc/functions/vsprintf.texi: Update.
44252
44253 2007-05-01  Bruno Haible  <bruno@clisp.org>
44254
44255         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44256
44257 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44258
44259         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44260         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44261
44262 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44263
44264         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44265         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44267
44268 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44269
44270         * lib/argp-help.c (struct hol_entry): New member `ord'.
44271         (HOL_ENTRY_PTRCMP): Use ord for comparison
44272         (hol_sort): Initialize ord.
44273
44274 2007-05-01  Bruno Haible  <bruno@clisp.org>
44275
44276         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44277         Reported by Eric Blake.
44278         * doc/gnulib.texi (Function Substitutes): Update.
44279
44280 2007-05-01  Bruno Haible  <bruno@clisp.org>
44281
44282         * doc/functions.texi: Remove file, now redundant through
44283         doc/functions/*.texi.
44284
44285 2007-05-01  Bruno Haible  <bruno@clisp.org>
44286
44287         * modules/argp (Depends-on): Add sleep.
44288
44289 2007-05-01  Bruno Haible  <bruno@clisp.org>
44290
44291         * modules/sleep-tests: New file.
44292         * tests/test-sleep.c: New file.
44293
44294         * modules/sleep: New file.
44295         * lib/sleep.c: New file.
44296         * m4/sleep.m4: New file.
44297         * lib/unistd_.h (sleep): New declaration.
44298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44299         HAVE_SLEEP.
44300         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44301         * doc/functions/sleep.texi: Document the sleep module.
44302
44303 2007-05-01  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/sigprocmask.h: Remove file.
44306         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44307         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44308         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44309         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44310         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44311         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44312         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44313         HAVE_SIGSET_T as a shell variable.
44314         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44315         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44316         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44317         (Depends-on): Add signal. Remove verify.
44318         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44319         (Include): Mention <signal.h> instead of sigprocmask.h.
44320         * NEWS: Mention the change.
44321         * lib/fatal-signal.c: Don't include sigprocmask.h.
44322
44323 2007-05-01  Bruno Haible  <bruno@clisp.org>
44324
44325         * modules/signal: New file.
44326         * lib/signal_.h: New file.
44327         * m4/signal_h.m4: New file.
44328
44329 2007-05-01  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44332         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44333         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44334         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44335
44336 2007-05-01  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44339         configure time.
44340         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44341         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44342         * modules/sys_stat (Makefile.am): Substitute their values into
44343         sys/stat.h.
44344
44345 2007-05-01  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44348         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44349         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44350
44351 2007-05-01  Bruno Haible  <bruno@clisp.org>
44352
44353         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44354         'assert' module here.
44355
44356 2007-05-01  Bruno Haible  <bruno@clisp.org>
44357
44358         * doc/functions/*.texi: New files.
44359         * doc/functions/google-ranking.txt: New file.
44360         * doc/gnulib.texi (Function Substitutes): New chapter.
44361         (ctime, inet_ntoa): Remove sections.
44362         * doc/ctime.texi: Remove file.
44363         * doc/inet_ntoa.texi: Remove file.
44364         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44365         dependencies.
44366         (%.info): New rule, specifying a --reference-limit.
44367
44368 2007-05-01  Bruno Haible  <bruno@clisp.org>
44369
44370         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44371
44372 2007-05-01  Bruno Haible  <bruno@clisp.org>
44373
44374         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44375         the portability of 'mkdir' to mingw systems.
44376
44377 2007-05-01  Bruno Haible  <bruno@clisp.org>
44378
44379         * doc/headers/google-ranking.txt: New file.
44380
44381 2007-04-30  Eric Blake  <ebb9@byu.net>
44382
44383         Prefer fseeko to fseek.
44384         * modules/getpass (Depends-on): Add fseeko.
44385         * lib/getpass.c (getpass): Use fseeko, not fseek.
44386
44387 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44388
44389         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44390         assumes the sorting is stable, while most qsort implementations
44391         are not.  Use argument addresses to ensure they never compare as
44392         equal.
44393
44394         * tests/test-argp-2.sh (usage-indent test): Fix output
44395         (func_compare): Restore diff options
44396         * tests/test-argp.c: Restore #include "progname.h"
44397
44398 2007-04-29  Bruno Haible  <bruno@clisp.org>
44399
44400         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44401         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44402         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44403         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44404         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44405         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44406         (TESTS, check_PROGRAMS): Add test-snprintf.
44407         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44408         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44409         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44410         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44411         assertions that fail on HP-UX, OSF/1, or IRIX.
44412         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44413
44414 2007-04-29  Bruno Haible  <bruno@clisp.org>
44415
44416         * MODULES.html.sh (posix_functions): Remove 'contents'.
44417
44418 2007-04-29  Karl Berry  <karl@gnu.org>
44419
44420         * config/srclist.txt (gendocs_template_min): new entry.
44421
44422 2007-04-29  Bruno Haible  <bruno@clisp.org>
44423
44424         Work around fpurge bug on BSD systems.
44425         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44426         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44427         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44428         fpurge to rpl_fpurge if the system already has this function.
44429         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44430         the case where the system already has this function. Correct invariants
44431         on BSD systems.
44432         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44433         BSD systems.
44434
44435 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44436
44437         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44438         proposed by Sven Verdoolaege.
44439
44440         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44441         options.
44442         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44443         (usage and help tests): Update
44444
44445 2007-04-29  Bruno Haible  <bruno@clisp.org>
44446
44447         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44448         Print more information in case of failure. Disable a test on BeOS.
44449
44450 2007-04-29  Bruno Haible  <bruno@clisp.org>
44451
44452         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44453         This helps debugging on systems on which no gdb is available.
44454
44455 2007-04-29  Bruno Haible  <bruno@clisp.org>
44456
44457         * lib/freading.h: Improve comments.
44458         * lib/fwriting.h: Likewise.
44459         * tests/test-freading.c (main): Don't check freading immediately after
44460         repositioning. Needed for glibc.
44461
44462 2007-04-29  Bruno Haible  <bruno@clisp.org>
44463
44464         * lib/freading.c (freading): Trivial simplification.
44465
44466 2007-04-28  Bruno Haible  <bruno@clisp.org>
44467
44468         * tests/test-fwriting.c (main): Also test the interaction between
44469         fflush and fwriting.
44470         * modules/fwriting-tests (Depends-on): Add fflush.
44471
44472         * tests/test-freading.c (main): Also test the interaction between
44473         fflush and freading.
44474         * modules/freading-tests (Depends-on): Add fflush.
44475
44476 2007-04-28  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44479         fseeko and ftello.
44480         Suggested by Eric Blake.
44481
44482 2007-04-28  Jim Meyering  <jim@meyering.net>
44483
44484         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44485         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44486         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44487
44488 2007-04-27  Eric Blake  <ebb9@byu.net>
44489
44490         * doc/headers/assert.texi (assert.h): Document assert module use.
44491
44492 2007-04-27  Bruno Haible  <bruno@clisp.org>
44493
44494         * doc/headers/*.texi: New files.
44495         * doc/gnulib.texi (Header File Substitutes): New chapter.
44496         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44497         dependencies.
44498         (standards.info ,standards.html, standards.dvi): Update dependencies.
44499         (mostlyclean, clean): New targets.
44500
44501 2007-04-27  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44504         * modules/sysexits (Files, Makefile.am): Update.
44505
44506         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44507         * modules/sys_socket (Files, Makefile.am): Update.
44508
44509         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44510         * modules/sys_stat (Files, Makefile.am): Update.
44511
44512 2007-04-27  Eric Blake  <ebb9@byu.net>
44513
44514         * lib/freading.h: Improve comments.
44515         * lib/fwriting.h: Likewise.
44516         * lib/fflush.c: Likewise.
44517
44518         Fix closein for mingw.
44519         * modules/closein-tests: Add tests for closein.
44520         * tests/test-closein.c: New file.
44521         * tests/test-closein.sh: Likewise.
44522         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44523         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44524
44525 2007-04-27  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44528         version is < 6.
44529         * lib/math_.h [__DECC]: Likewise.
44530         * lib/stdio_.h [__DECC]: Likewise.
44531         * lib/stdlib_.h [__DECC]: Likewise.
44532         * lib/string_.h [__DECC]: Likewise.
44533         * lib/time_.h [__DECC]: Likewise.
44534         * lib/wchar_.h [__DECC]: Likewise.
44535         * lib/wctype_.h [__DECC]: Likewise.
44536
44537 2007-04-27  Bruno Haible  <bruno@clisp.org>
44538
44539         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44540
44541 2007-04-27  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/fflush.c: Add comments.
44544         * modules/fpurge-tests (Depends-on): Add fflush.
44545         * modules/freadable-tests (Depends-on): Likewise.
44546         * modules/fwritable-tests (Depends-on): Likewise.
44547
44548 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44549
44550         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44551         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44552         Report by Bruno Haible <bruno@clisp.org>.
44553
44554 2007-04-26  Eric Blake  <ebb9@byu.net>
44555
44556         Fix fflush on mingw.
44557         * modules/fflush (Depends-on): Add freading.
44558         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44559         but unread data.
44560
44561 2007-04-26  Eric Blake  <ebb9@byu.net>
44562         and Bruno Haible  <bruno@clisp.org>
44563
44564         Implement freading and fwriting.
44565         * lib/freading.c: New file.
44566         * lib/freading.h: Likewise.
44567         * m4/freading.m4: Likewise.
44568         * modules/freading: Likewise.
44569         * modules/freading-tests: Likewise.
44570         * tests/test-freading.c: Likewise.
44571         * lib/fwriting.c: New file.
44572         * lib/fwriting.h: Likewise.
44573         * m4/fwriting.m4: Likewise.
44574         * modules/fwriting: Likewise.
44575         * modules/fwriting-tests: Likewise.
44576         * tests/test-fwriting.c: Likewise.
44577         * MODULES.html.sh (File stream based Input/Output): Mention them.
44578
44579 2007-04-26  Bruno Haible  <bruno@clisp.org>
44580
44581         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44582         'long' when we assume it.
44583         Suggested by Eric Blake.
44584
44585 2007-04-26  Bruno Haible  <bruno@clisp.org>
44586
44587         Ensure fseeko, ftello are declared on glibc systems.
44588         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44589         * modules/fseeko (configure.ac-early): Likewise.
44590         * modules/ftello (configure.ac-early): Likewise.
44591         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44592         AC_FUNC_FSEEKO for this.
44593         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44594         (gl_CHECK_FSEEKO): Remove macro.
44595
44596 2007-04-26  Bruno Haible  <bruno@clisp.org>
44597
44598         * tests/test-fflush.c (main): Also check the ftell result after
44599         fflush and fseek/fseeko.
44600         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44601         file descriptor position cache in the stream.
44602         * lib/fseeko.c (rpl_fseeko): Likewise.
44603
44604 2007-04-26  Bruno Haible  <bruno@clisp.org>
44605
44606         * modules/fflush-tests (Depends-on): Add fseeko.
44607
44608 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44609             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44610
44611         * lib/argz_.h: ensure error_t definition is obtained in same
44612         mechanism system argz.h would have.
44613         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44614         argz facilities are known bad.  Err on the side of caution if
44615         cross-compiling.
44616
44617 2007-04-25  Eric Blake  <ebb9@byu.net>
44618
44619         * lib/fpurge.c (includes): Use stdlib.h for free.
44620         * tests/test-fflush.c (main): Also test fflush-fseeko.
44621
44622 2007-04-25  Bruno Haible  <bruno@clisp.org>
44623
44624         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44625         * lib/fseeko.c: New file.
44626         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44627         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44628         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44629         gl_FUNC_FSEEKO.
44630         (gl_FUNC_FSEEKO): Invoke it.
44631         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44632         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44633         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44634
44635 2007-04-25  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/fflush (Depends-on): Add ftello.
44638
44639 2007-04-25  Bruno Haible  <bruno@clisp.org>
44640
44641         * modules/ftello-tests: New file.
44642         * tests/test-ftello.c: New file.
44643
44644         * modules/ftello: New file.
44645         * m4/ftello.m4: New file.
44646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44647         HAVE_FTELLO.
44648         * lib/stdio_.h (ftello): New declaration.
44649         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44650         HAVE_FTELLO.
44651
44652 2007-04-25  Bruno Haible  <bruno@clisp.org>
44653
44654         * modules/fseeko-tests: New file.
44655         * tests/test-fseeko.c: New file.
44656
44657         * modules/fseeko: New file.
44658         * m4/fseeko.m4: New file.
44659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44660         HAVE_FSEEKO.
44661         * lib/stdio_.h (fseeko): New declaration.
44662         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44663         HAVE_FSEEKO.
44664
44665 2007-04-25  Bruno Haible  <bruno@clisp.org>
44666
44667         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44668
44669 2007-04-25  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44672         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44673         * tests/test-unistd.c: Likewise.
44674         * tests/test-fcntl.c: Likewise.
44675
44676 2007-04-23  Eric Blake  <ebb9@byu.net>
44677
44678         * lib/fflush.c: Fix missing include.
44679         Reported by Bruno Haible.
44680
44681 2007-04-23  Bruno Haible  <bruno@clisp.org>
44682
44683         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44684         Reported by Eric Blake.
44685
44686 2007-04-23  Bruno Haible  <bruno@clisp.org>
44687
44688         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44689
44690 2007-04-23  Bruno Haible  <bruno@clisp.org>
44691
44692         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44693
44694 2007-04-23  Bruno Haible  <bruno@clisp.org>
44695
44696         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44697         Needed on HP-UX 11.
44698
44699 2007-04-16  Eric Blake  <ebb9@byu.net>
44700
44701         Make fflush rely on fpurge.
44702         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44703         open coding all variants.
44704         * modules/fflush (Depends-on): Add fpurge and unistd.
44705         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44706         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44707
44708         Fix --with-tests compilation on cygwin.
44709         * modules/argmatch-tests (Makefile.am): List gnulib library first
44710         in LDADD.
44711         * modules/argp-tests (Makefile.am): Likewise.
44712         * modules/array-list-tests (Makefile.am): Likewise.
44713         * modules/array-oset-tests (Makefile.am): Likewise.
44714         * modules/avltree-list-tests (Makefile.am): Likewise.
44715         * modules/avltree-oset-tests (Makefile.am): Likewise.
44716         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44717         * modules/carray-list-tests (Makefile.am): Likewise.
44718         * modules/dirname-tests (Makefile.am): Likewise.
44719         * modules/frexp-tests (Makefile.am): Likewise.
44720         * modules/isnanl-tests (Makefile.am): Likewise.
44721         * modules/linked-list-tests (Makefile.am): Likewise.
44722         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44723         * modules/lock-tests (Makefile.am): Likewise.
44724         * modules/rbtree-list-tests (Makefile.am): Likewise.
44725         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44726         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44727         * modules/tls-tests (Makefile.am): Likewise.
44728         * modules/tsearch-tests (Makefile.am): Likewise.
44729         * modules/xvasprintf-tests (Makefile.am): Likewise.
44730
44731         Fix fpurge for cygwin.
44732         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44733         value.
44734         * modules/fpurge-tests (Depends-on): Clean up trash.
44735
44736 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44737
44738         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44739
44740         * m4/autobuild.m4: Re-indent.
44741
44742 2007-04-13  Bruno Haible  <bruno@clisp.org>
44743
44744         * modules/fpurge-tests: New file.
44745         * tests/test-fpurge.c: New file.
44746
44747         * modules/fpurge: New file.
44748         * lib/fpurge.h: New file.
44749         * lib/fpurge.c: New file.
44750         * m4/fpurge.m4: New file.
44751
44752 2007-04-13  Bruno Haible  <bruno@clisp.org>
44753
44754         * modules/fbufmode-tests: New file.
44755         * tests/test-fbufmode.c: New file.
44756
44757         * modules/fbufmode: New file.
44758         * lib/fbufmode.h: New file.
44759         * lib/fbufmode.c: New file.
44760         * m4/fbufmode.m4: New file.
44761
44762 2007-04-13  Bruno Haible  <bruno@clisp.org>
44763
44764         * modules/fwritable-tests: New file.
44765         * tests/test-fwritable.c: New file.
44766
44767         * modules/fwritable: New file.
44768         * lib/fwritable.h: New file.
44769         * lib/fwritable.c: New file.
44770         * m4/fwritable.m4: New file.
44771
44772 2007-04-13  Bruno Haible  <bruno@clisp.org>
44773
44774         * modules/freadable-tests: New file.
44775         * tests/test-freadable.c: New file.
44776
44777         * modules/freadable: New file.
44778         * lib/freadable.h: New file.
44779         * lib/freadable.c: New file.
44780         * m4/freadable.m4: New file.
44781
44782 2007-04-13  Bruno Haible  <bruno@clisp.org>
44783
44784         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44785         MOSTLYCLEANFILES.
44786
44787 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44788
44789         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44790         gzip bootstrap.conf to avoid dragging in i18n machinery.
44791         (gnulib_tool_option): Use it.
44792
44793 2007-04-13  Bruno Haible  <bruno@clisp.org>
44794
44795         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44796         %F directives.
44797         * tests/test-vasprintf-posix.c (test_function): Likewise.
44798         * tests/test-snprintf-posix.h (test_function): Likewise.
44799         * tests/test-sprintf-posix.h (test_function): Likewise.
44800         * tests/test-fprintf-posix.h (test_function): Likewise.
44801         * tests/test-printf-posix.h (test_function): Likewise.
44802         * tests/test-fprintf-posix.out: Likewise.
44803
44804 2007-04-13  Bruno Haible  <bruno@clisp.org>
44805
44806         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44807         * modules/tls-tests (configure.ac): Likewise.
44808         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44809
44810 2007-04-13  Bruno Haible  <bruno@clisp.org>
44811
44812         * lib/tls.c (glthread_tls_get): Fix return type.
44813         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44814
44815 2007-04-12  Eric Blake  <ebb9@byu.net>
44816
44817         * modules/gettime (Depends-on): Remove gettime.
44818         Reported by Dmitry V. Levin.
44819
44820 2007-04-12  Bruno Haible  <bruno@clisp.org>
44821
44822         * modules/fflush (Include): Mention <stdio.h>.
44823         * modules/strtoimax (Include): Mention <inttypes.h>.
44824         * modules/strtoumax (Include): Likewise.
44825
44826 2007-04-12  Eric Blake  <ebb9@byu.net>
44827
44828         * .cvsignore: New file.
44829         * .gitignore: Likewise.
44830
44831 2007-04-12  Bruno Haible  <bruno@clisp.org>
44832
44833         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44834         not before, since $(LDADD) often contains libgnu.a.
44835         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44836         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44837         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44838         Needed on Cygwin.
44839
44840 2007-04-12  Eric Blake  <ebb9@byu.net>
44841
44842         Work around glibc's failure to flush stdin on fclose.
44843         * lib/closein.c (close_stdin): Flush stdin before closing.
44844
44845         Work around glibc's failure to reset seekable stdin on exit.
44846         * modules/closein: New module.
44847         * lib/closein.c: New file.
44848         * lib/closein.h: Likewise.
44849         * m4/closein.m4: Likewise.
44850         * MODULES.html.sh (File stream based Input/Output): Document it.
44851
44852 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44853
44854         * gnulib-tool: Rename generated 'autobuild' script to
44855         'do-autobuild' in --create-megatestdir output.
44856
44857         * doc/gnulib.texi (Build robot for gnulib): Fix.
44858
44859 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44860
44861         * modules/sysexits (Depends-on): Add absolute-header.
44862
44863 2007-04-12  Eric Blake  <ebb9@byu.net>
44864
44865         No need to preserve errno on success.
44866         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44867         Reported by Bruno Haible.
44868
44869 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44870
44871         * MODULES.html.sh (Support for maintaining and releasing
44872         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44873
44874 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44875
44876         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44877
44878 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44879
44880         * modules/autobuild: New module.
44881
44882         * m4/autobuild.m4: New file.
44883
44884 2007-04-11  Bruno Haible  <bruno@clisp.org>
44885
44886         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44887         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44891         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44892         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44894         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44895         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44897         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44898         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44900         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44901         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44902         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44903         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44904         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44906         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44907         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44909         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44910         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44912         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44913         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44914         Reported by Eric Blake.
44915
44916 2007-04-11  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44919
44920 2007-04-10  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44923         for NaN and Infinity. Needed on FreeBSD 6.1.
44924         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44925         regarding results for "%010a" of Infinity and NaN.
44926         * tests/test-vasprintf-posix.c (test_function): Likewise.
44927         * tests/test-snprintf-posix.h (test_function): Likewise.
44928         * tests/test-sprintf-posix.h (test_function): Likewise.
44929         * tests/test-fprintf-posix.h (test_function): Likewise.
44930         * tests/test-printf-posix.h (test_function): Likewise.
44931         * tests/test-fprintf-posix.out: Likewise.
44932
44933 2007-04-10  Bruno Haible  <bruno@clisp.org>
44934
44935         * modules/locale-tests: New file.
44936         * tests/test-locale.c: New file.
44937
44938         * modules/locale: New file.
44939         * lib/locale_.h: New file.
44940         * m4/locale_h.m4: New file.
44941
44942 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44943             Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44946         be determined, test for availability of the copysignf, copysign,
44947         copysignl functions.
44948         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44949         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44950         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44951
44952 2007-04-09  Eric Blake  <ebb9@byu.net>
44953
44954         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44955         * modules/stdio (Makefile.am): Support fflush.
44956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44957         * modules/fflush: New file.
44958         * lib/fflush.c: Likewise.
44959         * m4/fflush.m4: Likewise.
44960         * modules/fflush-tests: New test.
44961         * tests/test-fflush.c: Likewise.
44962         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44963
44964 2007-04-06  Bruno Haible  <bruno@clisp.org>
44965
44966         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44967         (VASNPRINTF): Use signbit for faster determination whether to print a
44968         minus sign.
44969         * modules/vasnprintf (Files): Remove lib/float+.h.
44970         * modules/fprintf-posix (Depends-on): Add signbit.
44971         * modules/snprintf-posix (Depends-on): Likewise.
44972         * modules/sprintf-posix (Depends-on): Likewise.
44973         * modules/vasnprintf-posix (Depends-on): Likewise.
44974         * modules/vasprintf-posix (Depends-on): Likewise.
44975         * modules/vfprintf-posix (Depends-on): Likewise.
44976         * modules/vsnprintf-posix (Depends-on): Likewise.
44977         * modules/vsprintf-posix (Depends-on): Likewise.
44978
44979 2007-04-06  Bruno Haible  <bruno@clisp.org>
44980
44981         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44982         * tests/test-frexpl.c (main): Likewise.
44983         * tests/test-ldexpl.c (main): Likewise.
44984         * modules/frexp-tests (Depends-on): Add signbit.
44985         * modules/frexpl-tests (Depdends-on): Likewise.
44986         * modules/ldexpl-tests (Depdends-on): Likewise.
44987
44988 2007-04-06  Bruno Haible  <bruno@clisp.org>
44989
44990         * modules/signbit-tests: New file.
44991         * tests/test-signbit.c: New file.
44992
44993         * modules/signbit: New file.
44994         * lib/signbitf.c: New file.
44995         * lib/signbitd.c: New file.
44996         * lib/signbitl.c: New file.
44997         * m4/signbit.m4: New file.
44998         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44999         (signbit): New macro.
45000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45001         REPLACE_SIGNBIT.
45002         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45003         REPLACE_FREXPL into math.h.
45004
45005 2007-04-06  Bruno Haible  <bruno@clisp.org>
45006
45007         * modules/isnanf-nolibm-tests: New file.
45008         * tests/test-isnanf.c: New file.
45009
45010         * modules/isnanf-nolibm: New file.
45011         * lib/isnanf.h: New file.
45012         * lib/isnanf.c: New file.
45013         * lib/isnan.c: Consider the USE_FLOAT macro.
45014         * m4/isnanf.m4: New file.
45015
45016 2007-04-06  Bruno Haible  <bruno@clisp.org>
45017
45018         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45019         (Link): New section.
45020
45021         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45022
45023 2007-04-06  Bruno Haible  <bruno@clisp.org>
45024
45025         Assume the 'long double' type.
45026         * m4/longdouble.m4: Remove file.
45027         * config/srclist.txt: Don't mention longdouble.m4.
45028         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45029         * lib/float+.h: Likewise.
45030         * lib/frexp.c: Likewise.
45031         * lib/printf-args.h: Likewise.
45032         * lib/printf-args.c: Likewise.
45033         * lib/printf-frexp.c: Likewise.
45034         * lib/printf-parse.c: Likewise.
45035         * lib/vasnprintf.c: Likewise.
45036         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45037         * m4/intl.m4: Likewise.
45038         * m4/isnanl.m4: Likewise.
45039         * m4/printf.m4: Likewise.
45040         * m4/printf-frexpl.m4: Likewise.
45041         * m4/vasnprintf.m4: Likewise.
45042         * modules/allocsa (Files): Remove m4/longdouble.m4.
45043         * modules/gettext (Files): Likewise.
45044         * modules/relocatable-prog-wrapper (Files): Likewise.
45045         * modules/vasnprintf (Files): Likewise.
45046         * modules/isnanl (Files): Likewise.
45047         (Include): Simplify.
45048         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45049         (Include): Simplify.
45050         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45051         (Include): Simplify.
45052         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45054         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45055         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45056         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45057         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45058         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45059         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45060         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45061         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45062         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45064         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45065         * tests/test-isnanl.c: Likewise.
45066         * tests/test-snprintf-posix.h: Likewise.
45067         * tests/test-sprintf-posix.h: Likewise.
45068         * tests/test-vasnprintf-posix.c: Likewise.
45069         * tests/test-vasnprintf-posix2.c: Likewise.
45070         * tests/test-vasprintf-posix.c: Likewise.
45071
45072 2007-04-06  Bruno Haible  <bruno@clisp.org>
45073
45074         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45075         * lib/math_.h [__DECC]: Include the overridden include file through
45076         #include_next, outside the double-inclusion guard.
45077         * lib/stdio_.h [__DECC]: Likewise.
45078         * lib/stdlib_.h [__DECC]: Likewise.
45079         * lib/string_.h [__DECC]: Likewise.
45080         * lib/time_.h [__DECC]: Likewise.
45081         * lib/wchar_.h [__DECC]: Likewise.
45082         * lib/wctype_.h [__DECC]: Likewise.
45083         * lib/inttypes_.h [__DECC]: Likewise.
45084         Reported by Albert Chin <china@thewrittenword.com> in
45085         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45086
45087 2007-04-04  Eric Blake  <ebb9@byu.net>
45088
45089         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45090         1.5.x.
45091
45092 2007-04-04  Bruno Haible  <bruno@clisp.org>
45093
45094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45095         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45096
45097 2007-04-04  Bruno Haible  <bruno@clisp.org>
45098
45099         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45100         results for "%010a" of Infinity and NaN.
45101         * tests/test-vasprintf-posix.c (test_function): Likewise.
45102         * tests/test-snprintf-posix.h (test_function): Likewise.
45103         * tests/test-sprintf-posix.h (test_function): Likewise.
45104         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45105         * tests/test-printf-posix.h (test_function): Likewise.
45106         * tests/test-fprintf-posix.out: Update.
45107         Needed for FreeBSD 6.1.
45108
45109 2007-04-04  Bruno Haible  <bruno@clisp.org>
45110
45111         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45112         directly used by the gnulib modules nor by gnulib-tool.
45113
45114 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45115
45116         * DEPENDENCIES: Give overall description of version dependency
45117         desirability.  Use more-typical names for apps.
45118         Add shell, coreutils, diffutils, grep, tar, gzip.
45119
45120 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45121
45122         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45123
45124 2007-04-04  Karl Berry  <karl@gnu.org>
45125
45126         * MODULES.html.sh (func_module): missing '.
45127
45128 2007-04-03  Bruno Haible  <bruno@clisp.org>
45129
45130         * modules/argmatch-tests (Makefile.am): New variable
45131         test_argmatch_LDADD.
45132         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45133         * modules/array-list-tests (Makefile.am): New variable
45134         test_array_list_LDADD.
45135         * modules/array-oset-tests (Makefile.am): New variable
45136         test_array_oset_LDADD.
45137         * modules/avltree-list-tests (Makefile.am): New variable
45138         test_avltree_list_LDADD.
45139         * modules/avltree-oset-tests (Makefile.am): New variable
45140         test_avltree_oset_LDADD.
45141         * modules/avltreehash-list-tests (Makefile.am): New variable
45142         test_avltreehash_list_LDADD.
45143         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45144         test_canonicalize_lgpl_LDADD.
45145         * modules/carray-list-tests (Makefile.am): New variable
45146         test_carray_list_LDADD.
45147         * modules/dirname-tests (Makefile.am): New variable
45148         test_dirname_LDADD.
45149         * modules/linked-list-tests (Makefile.am): New variable
45150         test_linked_list_LDADD.
45151         * modules/linkedhash-list-tests (Makefile.am): New variable
45152         test_linkedhash_list_LDADD.
45153         * modules/rbtree-list-tests (Makefile.am): New variable
45154         test_rbtree_list_LDADD.
45155         * modules/rbtree-oset-tests (Makefile.am): New variable
45156         test_rbtree_oset_LDADD.
45157         * modules/rbtreehash-list-tests (Makefile.am): New variable
45158         test_rbtreehash_list_LDADD.
45159         * modules/xvasprintf-tests (Makefile.am): New variable
45160         test_xvasprintf_LDADD.
45161         Reported by Eric Blake.
45162
45163 2007-04-03  Eric Blake  <ebb9@byu.net>
45164
45165         * DEPENDENCIES: Weaken m4 requirements.
45166
45167 2007-04-03  Bruno Haible  <bruno@clisp.org>
45168
45169         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45170         * modules/isnanl-tests (configure.ac): Likewise.
45171
45172 2007-04-03  Ben Pfaff  <blp@gnu.org>
45173
45174         * modules/iconv_open: Add $(srcdir)/ to source directory
45175         references in Makefile fragments that call gperf, to fix VPATH
45176         builds.
45177
45178 2007-04-03  Bruno Haible  <bruno@clisp.org>
45179
45180         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45181         * lib/ldexpl.c: Undo last change.
45182
45183 2007-04-03  Bruno Haible  <bruno@clisp.org>
45184
45185         * modules/printf-frexpl (Depends-on): Undo last change.
45186         (Files): Add m4/ldexpl.m4.
45187
45188 2007-04-03  Bruno Haible  <bruno@clisp.org>
45189
45190         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45191         * modules/isnanl (Link): New section.
45192
45193         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45194         * modules/frexp (Link): New section.
45195
45196         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45197         * modules/frexpl (Link): New section.
45198
45199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45200         * modules/ldexpl (Link): New section.
45201
45202 2007-04-03  Bruno Haible  <bruno@clisp.org>
45203
45204         * modules/TEMPLATE-EXTENDED: New file.
45205         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45206
45207 2007-04-03  Bruno Haible  <bruno@clisp.org>
45208
45209         * DEPENDENCIES: New file.
45210         Suggested by Simon Josefsson.
45211
45212 2007-04-03  Bruno Haible  <bruno@clisp.org>
45213
45214         * doc/gnulib.texi: Escape @.
45215
45216 2007-04-03  James Youngman  <jay@gnu.org>
45217         and Paul Eggert  <eggert@cs.ucla.edu>
45218
45219         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45220         birthtime on all systems that have birthtime, not just those which
45221         use st_birthtimensec rather than st_birthtim.  Putting zero in
45222         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45223         that the birth time is not available for files on an NFS mount.
45224
45225 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45226
45227         * modules/memxor: Move back from crypto/, suggested by Bruno.
45228         * modules/crypto/hmac-sha1: Fix memxor dependency.
45229
45230         * modules/crypto/gc: Moved from ../.
45231
45232 2007-04-02  Eric Blake  <ebb9@byu.net>
45233
45234         * lib/ldexpl.c (includes): Avoid libm.
45235
45236         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45237
45238 2007-04-02  Bruno Haible  <bruno@clisp.org>
45239
45240         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45241         on IRIX.
45242
45243 2007-04-02  Bruno Haible  <bruno@clisp.org>
45244
45245         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45246         x86 or x86_64 platforms running MacOS X.
45247         Reported by Ryan Schmidt <@ryandesign.com>.
45248
45249 2007-04-02  Bruno Haible  <bruno@clisp.org>
45250
45251         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45252         i386.
45253
45254 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45255
45256         * modules/crypto/arcfour: Moved from ../.
45257         * modules/crypto/arcfour-tests: Moved from ../.
45258         * modules/crypto/arctwo: Moved from ../.
45259         * modules/crypto/arctwo-tests: Moved from ../.
45260         * modules/crypto/des: Moved from ../.
45261         * modules/crypto/des-tests: Moved from ../.
45262         * modules/crypto/gc-arcfour: Moved from ../.
45263         * modules/crypto/gc-arcfour-tests: Moved from ../.
45264         * modules/crypto/gc-arctwo: Moved from ../.
45265         * modules/crypto/gc-arctwo-tests: Moved from ../.
45266         * modules/crypto/gc-des: Moved from ../.
45267         * modules/crypto/gc-des-tests: Moved from ../.
45268         * modules/crypto/gc-hmac-md5: Moved from ../.
45269         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45270         * modules/crypto/gc-hmac-sha1: Moved from ../.
45271         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45272         * modules/crypto/gc-md2: Moved from ../.
45273         * modules/crypto/gc-md2-tests: Moved from ../.
45274         * modules/crypto/gc-md4: Moved from ../.
45275         * modules/crypto/gc-md4-tests: Moved from ../.
45276         * modules/crypto/gc-md5: Moved from ../.
45277         * modules/crypto/gc-md5-tests: Moved from ../.
45278         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45279         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45280         * modules/crypto/gc-random: Moved from ../.
45281         * modules/crypto/gc-rijndael: Moved from ../.
45282         * modules/crypto/gc-rijndael-tests: Moved from ../.
45283         * modules/crypto/gc-sha1: Moved from ../.
45284         * modules/crypto/gc-sha1-tests: Moved from ../.
45285         * modules/crypto/gc-tests: Moved from ../.
45286         * modules/crypto/hmac-md5: Moved from ../.
45287         * modules/crypto/hmac-md5-tests: Moved from ../.
45288         * modules/crypto/hmac-sha1: Moved from ../.
45289         * modules/crypto/hmac-sha1-tests: Moved from ../.
45290         * modules/crypto/md2: Moved from ../.
45291         * modules/crypto/md2-tests: Moved from ../.
45292         * modules/crypto/md4: Moved from ../.
45293         * modules/crypto/md4-tests: Moved from ../.
45294         * modules/crypto/md5: Moved from ../.
45295         * modules/crypto/md5-tests: Moved from ../.
45296         * modules/crypto/memxor: Moved from ../.
45297         * modules/crypto/rijndael: Moved from ../.
45298         * modules/crypto/rijndael-tests: Moved from ../.
45299         * modules/crypto/sha1: Moved from ../.
45300
45301 2007-03-30  James Youngman  <jay@gnu.org>
45302
45303         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45304         rename() to change the ctime of a file (because ctime is unaffected
45305         by rename on jfs2 on AIX 5.1).
45306         (main): Start by doing cleanup, in case a previous run failed leaving
45307         test files behind.
45308
45309 2007-03-31  Bruno Haible  <bruno@clisp.org>
45310
45311         Support old proprietary implementations of iconv.
45312         * modules/iconv_open: New file.
45313         * lib/iconv_.h: New file.
45314         * m4/iconv_h.m4: New file.
45315         * lib/iconv_open.c: New file.
45316         * lib/iconv_open-aix.gperf: New file.
45317         * lib/iconv_open-hpux.gperf: New file.
45318         * lib/iconv_open-irix.gperf: New file.
45319         * lib/iconv_open-osf.gperf: New file.
45320         * m4/iconv_open.m4: New file.
45321         * modules/linebreak (Depends-on): Add iconv_open.
45322         * modules/striconv (Depends-on): Likewise.
45323         * modules/striconveh (Depends-on): Likewise.
45324         * modules/unicodeio (Depends-on): Likewise.
45325         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45326         (iconv_t)(-1).
45327         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45328         conversion if cd is (iconv_t)(-1).
45329         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45330         is not possible.
45331
45332 2007-03-31  Bruno Haible  <bruno@clisp.org>
45333
45334         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45335         work on Solaris either. Protect also second use of "autodetect_jp".
45336
45337 2007-03-31  Bruno Haible  <bruno@clisp.org>
45338
45339         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45340         the function is not present.
45341
45342 2007-03-31  Bruno Haible  <bruno@clisp.org>
45343
45344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45345         the function is not present.
45346
45347 2007-03-31  Bruno Haible  <bruno@clisp.org>
45348
45349         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45350         a bug in HP-UX iconv_open().
45351
45352 2007-03-31  Bruno Haible  <bruno@clisp.org>
45353
45354         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45355         (Mathematics <math.h>): New section, add fpieee.
45356         (Input/output <stdio.h>): Add fseterr.
45357         (Mathematics <math.h>): New section, add printf-frexp.
45358         (Container data structures): Add sublist.
45359         (Core language properties): Add fpucw, inline.
45360         (Functions for greatest-width integer types <inttypes.h>): Add
45361         imaxabs, imaxdiv, inttypes.
45362         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45363         isnanl-nolibm, ldexp.
45364         (Mathematics <math.h>): New section, add printf-frexpl.
45365         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45366         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45367         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45368         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45369         (Unicode string functions): Add unistr/u*-mbtoucr.
45370         (Java): Add javacomp-script, javaexec-script.
45371         (C#): Add csharpcomp-script, csharpexec-script.
45372         (Support for building libraries and executables): Add havelib,
45373         relocatable-*.
45374         (Support for maintaining and releasing projects): Renamed from
45375         'Support for maintaining and release projects'. Add announce-gen.
45376
45377 2007-03-31  Bruno Haible  <bruno@clisp.org>
45378
45379         * README: Talk primarily about git.
45380         (git and CVS): Renamed from CVS.
45381         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45382         gnulib is available through git.
45383         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45384
45385 2007-03-30  Bruno Haible  <bruno@clisp.org>
45386
45387         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45388         * lib/poll_.h: Likewise.
45389         * lib/stat_.h: Likewise.
45390         * lib/sys_time_.h: Likewise.
45391         * lib/sysexit_.h: Likewise.
45392         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45393         * lib/stdbool_.h: Likewise.
45394         * lib/byteswap_.h: Add double-inclusion guard.
45395
45396 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45397
45398         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45399
45400 2007-03-30  Karl Berry  <karl@gnu.org>
45401
45402         * config/srclist-update: double space after USA in the license
45403         substitution, since that's how it's usually (?) written.
45404
45405 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45406
45407         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45408         reported by Bruno Haible.
45409
45410 2007-03-29  Bruno Haible  <bruno@clisp.org>
45411
45412         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45413         a bug in AIX iconv().
45414
45415 2007-03-29  Bruno Haible  <bruno@clisp.org>
45416
45417         * modules/ldexpl-tests: New file.
45418         * tests/test-ldexpl.c: New file.
45419
45420 2007-03-29  Bruno Haible  <bruno@clisp.org>
45421
45422         * lib/ldexpl.c: Include fpucw.h.
45423         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45424         multiplication.
45425         * modules/ldexpl (Depends-on): Add fpucw.
45426
45427 2007-03-29  Bruno Haible  <bruno@clisp.org>
45428
45429         * modules/ldexpl: New file.
45430         * m4/ldexpl.m4: New file.
45431         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45432         set.
45433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45434         REPLACE_LDEXPL.
45435         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45436         REPLACE_LDEXPL.
45437         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45438         gl_FUNC_LDEXPL_WORKS.
45439         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45440         * modules/mathl (Files): Remove lib/ldexpl.c.
45441         (Depends-on): Add ldexpl.
45442
45443 2007-03-29  Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45446
45447 2007-03-29  Bruno Haible  <bruno@clisp.org>
45448
45449         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45450         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45451         and possibly also HP-UX.
45452         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45453         work on AIX, IRIX, HP-UX, OSF/1.
45454         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45455         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45456         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45457         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45458         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45459         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45460
45461 2007-03-29  Bruno Haible  <bruno@clisp.org>
45462
45463         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45464
45465 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45466
45467         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45468         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45469
45470 2007-03-29  Eric Blake  <ebb9@byu.net>
45471
45472         * lib/acl-internal.h: Remove redundant include.
45473         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45474         Cygwin when a file is locked.
45475
45476 2007-03-29  Bruno Haible  <bruno@clisp.org>
45477
45478         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45479         file.
45480         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45481
45482 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45483
45484         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45485         try to remove a parent directory if the child couldn't be removed
45486         (except for the first rmdir, which could fail because the child
45487         doesn't exist).  Problem reported by Jeff Blaine in
45488         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45489
45490 2007-03-28  Bruno Haible  <bruno@clisp.org>
45491
45492         * lib/striconveh.c (utf8conv_carefully): New function.
45493         (mem_cd_iconveh_internal): Invoke it.
45494
45495 2007-03-28  Bruno Haible  <bruno@clisp.org>
45496
45497         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45498         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45499         input.
45500         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45501         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45502         unistr/u8-uctomb.
45503
45504 2007-03-28  Bruno Haible  <bruno@clisp.org>
45505
45506         * modules/unistr/u8-mbtoucr: New file.
45507         * lib/unistr/u8-mbtoucr.c: New file.
45508         * modules/unistr/u16-mbtoucr: New file.
45509         * lib/unistr/u16-mbtoucr.c: New file.
45510         * modules/unistr/u16-mbtoucr: New file.
45511         * lib/unistr/u16-mbtoucr.c: New file.
45512         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45513
45514 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45515             Bruno Haible  <bruno@clisp.org>
45516
45517         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45518         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45519         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45520
45521         * m4/stdio_h.m4: Add stubs for vasprintf too.
45522
45523         * modules/stdio: Support vasprintf in sed command.
45524
45525         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45526         vasprintf.h.  Add stdio module indicator.
45527
45528         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45529         vasprintf.h.
45530
45531         * lib/vasprintf.h: File removed.
45532
45533         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45534         * lib/vasprintf.c: Ditto.
45535         * lib/xvasprintf.c: Ditto.
45536         * tests/test-vasprintf-posix.c: Ditto.
45537         * tests/test-vasprintf.c: Ditto.
45538
45539 2007-03-27  Bruno Haible  <bruno@clisp.org>
45540
45541         Make vasnprintf multithread-safe.
45542         * lib/vasnprintf.c (decimal_point_char): New function.
45543         (VASNPRINTF): Use it.
45544         Suggested by Simon Josefsson.
45545
45546 2007-03-27  Eric Blake  <ebb9@byu.net>
45547
45548         Support sub-second birthtime on cygwin.
45549         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45550         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45551         (get_stat_birthtime): Also work with st_birthtim.
45552
45553 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45554
45555         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45556         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45557         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45558         (get_stat_birthtime_ns): Simplify compile-time tests.
45559         (get_stat_birthtime): Change the API to look like
45560         get_stat_mtime etc., except return a negative tv_nsec on error.
45561         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45562         Don't check for "spare" fields.
45563         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45564         or for struct stat.st_birthtime, as these tests aren't used.
45565         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45566
45567 2007-03-27  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/stat-time.h: Include <sys/stat.h>.
45570
45571 2007-03-27  James Youngman  <jay@gnu.org>
45572
45573         * lib/stat-time.h (get_stat_birthtime): New function for
45574           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45575         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45576           and its variants.
45577         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45578         * modules/stat-time-test: New file.
45579         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45580
45581 2007-03-26  Bruno Haible  <bruno@clisp.org>
45582
45583         Better support of signalling NaNs.
45584         * lib/atanl.c: Include isnanl.h.
45585         (atanl): Perform test for NaN at the beginning of the function and
45586         through a call to isnanl.
45587         * lib/cosl.c: Include isnanl.h.
45588         (cosl): Perform test for NaN at the beginning of the function and
45589         through a call to isnanl.
45590         * lib/ldexpl.c: Include isnanl.h.
45591         (ldexpl): Perform test for NaN through a call to isnanl.
45592         * lib/logl.c: Include isnanl.h.
45593         (logl): Perform test for NaN at the beginning of the function and
45594         through a call to isnanl.
45595         * lib/sinl.c: Include isnanl.h.
45596         (sinl): Perform test for NaN at the beginning of the function and
45597         through a call to isnanl.
45598         * lib/sqrtl.c: Include isnanl.h.
45599         (sqrtl): Perform test for NaN at the beginning of the function and
45600         through a call to isnanl.
45601         * lib/tanl.c: Include isnanl.h.
45602         (tanl): Perform test for NaN at the beginning of the function and
45603         through a call to isnanl.
45604         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45605         * modules/mathl (Depends-on): Add isnanl.
45606
45607 2007-03-26  Eric Blake  <ebb9@byu.net>
45608
45609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45610         regression in logic sense of previous patch.
45611
45612 2007-03-26  Bruno Haible  <bruno@clisp.org>
45613
45614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45615         unportable shell command "if ! ...".
45616         Reported by Ralf Wildenhues.
45617
45618 2007-03-25  Bruno Haible  <bruno@clisp.org>
45619
45620         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45621         <sysexits.h> file, and only add EX_CONFIG.
45622         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45623         absolute file name and whether it is sufficient. Substitute also
45624         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45625         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45626         ABSOLUTE_SYSEXITS_H into sysexits.h.
45627
45628 2007-03-25  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45631         hints is NULL.
45632
45633 2007-03-25  Bruno Haible  <bruno@clisp.org>
45634
45635         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45636         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45637
45638 2007-03-25  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/vasnprintf.c: Include langinfo.h.
45641         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45642         multithread-safe.
45643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45644         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45645         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45649         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45652         Reported by Simon Josefsson.
45653
45654 2007-03-25  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45657         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45658         * modules/vasnprintf (Depends-on): Add stdint.
45659
45660 2007-03-25  Bruno Haible  <bruno@clisp.org>
45661
45662         * modules/fpieee: New file.
45663         * m4/fpieee.m4: New file.
45664         * modules/isnan-nolibm (Depends-on): Add fpieee.
45665         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45666         * modules/isnanl (Depends-on): Add fpieee.
45667
45668 2007-03-25  Bruno Haible  <bruno@clisp.org>
45669
45670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45671
45672 2007-03-25  Bruno Haible  <bruno@clisp.org>
45673
45674         Avoid test failures on IRIX 6.5.
45675         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45676         (main): Use it.
45677         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45678         macros.
45679         (main): Use them.
45680
45681 2007-03-25  Bruno Haible  <bruno@clisp.org>
45682
45683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45684         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45685         exists but doesn't work.
45686         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45687         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45689         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45690
45691 2007-03-25  Bruno Haible  <bruno@clisp.org>
45692
45693         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45694         returns inf. Needed on IRIX 6.5.
45695
45696 2007-03-25  Bruno Haible  <bruno@clisp.org>
45697
45698         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45699         (main): Use isnanl instead of x != x idiom.
45700         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45701
45702         * tests/test-frexp.c: Include isnan.h.
45703         (main): Use isnan instead of x != x idiom.
45704         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45705
45706 2007-03-25  Bruno Haible  <bruno@clisp.org>
45707
45708         * tests/test-frexp.c (NaN): New function/macro.
45709         (main): Use it instead of 0.0 / 0.0.
45710         * tests/test-isnan.c (NaN): New function/macro.
45711         (main): Use it instead of 0.0 / 0.0.
45712         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45713         (test_function): Use it instead of 0.0 / 0.0.
45714         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45715         (test_function): Use it instead of 0.0 / 0.0.
45716         * tests/test-snprintf-posix.h (NaN): New function/macro.
45717         (test_function): Use it instead of 0.0 / 0.0.
45718         * tests/test-sprintf-posix.h (NaN): New function/macro.
45719         (test_function): Use it instead of 0.0 / 0.0.
45720         * tests/test-fprintf-posix.h (NaN): New function/macro.
45721         (test_function): Use it instead of 0.0 / 0.0.
45722         * tests/test-printf-posix.h (NaN): New function/macro.
45723         (test_function): Use it instead of 0.0 / 0.0.
45724
45725         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45726
45727 2007-03-25  Bruno Haible  <bruno@clisp.org>
45728
45729         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45730
45731 2007-03-25  Bruno Haible  <bruno@clisp.org>
45732
45733         * lib/regexec.c (merge_state_with_log): Make static.
45734
45735 2007-03-25  Bruno Haible  <bruno@clisp.org>
45736
45737         * lib/trigl.c (kernel_rem_pio2): Make static.
45738
45739 2007-03-25  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/sincosl.c (sincosl_table): Make static.
45742
45743 2007-03-25  Bruno Haible  <bruno@clisp.org>
45744
45745         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45746         if the compiler does not support C99.
45747
45748 2007-03-25  Bruno Haible  <bruno@clisp.org>
45749
45750         * modules/time (Makefile.am): Ensure all rule action lines start with a
45751         tab.
45752
45753 2007-03-24  Bruno Haible  <bruno@clisp.org>
45754
45755         * modules/tsearch-tests: New file.
45756         * tests/test-tsearch.sh: New file.
45757         * tests/test-tsearch.c: New file, mostly copied from glibc.
45758
45759         * modules/search-tests: New file.
45760         * tests/test-search.c: New file.
45761
45762         * modules/search: New file.
45763         * lib/search_.h: New file, incorporating lib/tsearch.h.
45764         * m4/search_h.m4: New file.
45765         * lib/tsearch.h: Remove file.
45766         * lib/tsearch.c: Include search.h instead of tsearch.h.
45767         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45768         HAVE_TSEARCH.
45769         * modules/tsearch (Files): Remove lib/tsearch.h.
45770         (Depends-on): Add search.
45771         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45772         (Include): Change tsearch.h into search.h.
45773
45774 2007-03-24  Bruno Haible  <bruno@clisp.org>
45775
45776         * modules/fpucw: New file.
45777         * lib/fpucw.h: New file.
45778         * lib/frexp.c: Include fpucw.h.
45779         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45780         (FUNC): Use them.
45781         * lib/printf-frexp.c: Include fpucw.h.
45782         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45783         (FUNC): Use them.
45784         * lib/vasnprintf.c: Include fpucw.h.
45785         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45786         'long double' calculations.
45787         * tests/test-frexpl.c: Include fpucw.h.
45788         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45789         * tests/test-printf-frexpl.c: Include fpucw.h.
45790         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45791         * modules/frexpl (Depends-on): Add fpucw.
45792         * modules/printf-frexpl (Depends-on): Likewise.
45793         * modules/fprintf-posix (Depends-on): Likewise.
45794         * modules/snprintf-posix (Depends-on): Likewise.
45795         * modules/sprintf-posix (Depends-on): Likewise.
45796         * modules/vasnprintf-posix (Depends-on): Likewise.
45797         * modules/vasprintf-posix (Depends-on): Likewise.
45798         * modules/vfprintf-posix (Depends-on): Likewise.
45799         * modules/vsnprintf-posix (Depends-on): Likewise.
45800         * modules/vsprintf-posix (Depends-on): Likewise.
45801         * modules/frexpl-tests (Depends-on): Likewise.
45802         * modules/printf-frexpl-tests (Depends-on): Likewise.
45803
45804 2007-03-24  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/float+.h: New file.
45807         * lib/isnan.c: Include float+.h.
45808         (SIZE): New macro.
45809         (FUNC): Compare only SIZE bytes of the value.
45810         * lib/vasnprintf.c: Include float+.h.
45811         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45812         SIZEOF_LDBL or SIZEOF_DBL bytes.
45813         * modules/isnan-nolibm (Files): Add lib/float+.h.
45814         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45815         * modules/isnanl (Files): Add lib/float+.h.
45816         * modules/vasnprintf (Files): Add lib/float+.h.
45817
45818 2007-03-24  Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45821         include isnanl-nolibm.h.
45822
45823 2007-03-24  Bruno Haible  <bruno@clisp.org>
45824
45825         * tests/test-read-file.c (main): Don't produce spurious output for
45826         expected situations. Make the test fail if it encountered unexpected
45827         results.
45828
45829 2007-03-24  Bruno Haible  <bruno@clisp.org>
45830
45831         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45832         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45833
45834 2007-03-24  Bruno Haible  <bruno@clisp.org>
45835
45836         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45837
45838 2007-03-24  Bruno Haible  <bruno@clisp.org>
45839
45840         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45841         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45842
45843         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45844         * modules/utf8-ucs4: Turn into a symbolic link to module
45845         unistr/u8-mbtouc.
45846
45847         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45848         utf8-ucs4-unsafe.
45849         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45850         unistr/u8-mbtouc-unsafe.
45851
45852         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45853         * modules/utf16-ucs4: Turn into a symbolic link to module
45854         unistr/u16-mbtouc.
45855
45856         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45857         utf16-ucs4-unsafe.
45858         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45859         unistr/u16-mbtouc-unsafe.
45860
45861         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45862         * modules/ucs4-utf8: Turn into a symbolic link to module
45863         unistr/u8-ubtomb.
45864
45865         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45866         * modules/ucs4-utf16: Turn into a symbolic link to module
45867         unistr/u16-ubtomb.
45868
45869 2007-03-24  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45872         Enable the function only if HAVE_INLINE.
45873         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45874         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45875         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45876         Enable the function only if HAVE_INLINE.
45877         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45878         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45879         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45880         Enable the function only if HAVE_INLINE.
45881         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45882         Enable the function only if HAVE_INLINE.
45883         * modules/utf8-ucs4: Update.
45884         * modules/utf8-ucs4-unsafe: Update.
45885         * modules/utf16-ucs4: Update.
45886         * modules/utf16-ucs4-unsafe: Update.
45887         * modules/ucs4-utf8: Update.
45888         * modules/ucs4-utf16: Update.
45889
45890 2007-03-24  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/utf8-ucs4.h: Remove file.
45893         * lib/utf8-ucs4-unsafe.h: Remove file.
45894         * lib/utf16-ucs4.h: Remove file.
45895         * lib/utf16-ucs4-unsafe.h: Remove file.
45896         * lib/ucs4-utf8.h: Remove file.
45897         * lib/ucs4-utf16.h: Remove file.
45898         * lib/unistr.h: Include their previous contents.
45899         * m4/utf-ucs4.m4: Remove file.
45900         * m4/ucs4-utf.m4: Remove file.
45901         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45902         (Depends-on): Add unistr/base.
45903         (configure.ac): Remove gl_UTF_UCS4.
45904         (Makefile.am): Update.
45905         (Include): Change to unistr.h.
45906         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45907         (Depends-on): Add unistr/base.
45908         (configure.ac): Remove gl_UTF_UCS4.
45909         (Makefile.am): Update.
45910         (Include): Change to unistr.h.
45911         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45912         (Depends-on): Add unistr/base.
45913         (configure.ac): Remove gl_UTF_UCS4.
45914         (Makefile.am): Update.
45915         (Include): Change to unistr.h.
45916         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45917         (Depends-on): Add unistr/base.
45918         (configure.ac): Remove gl_UTF_UCS4.
45919         (Makefile.am): Update.
45920         (Include): Change to unistr.h.
45921         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45922         (Depends-on): Add unistr/base.
45923         (configure.ac): Remove gl_UCS4_UTF.
45924         (Makefile.am): Update.
45925         (Include): Change to unistr.h.
45926         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45927         (Depends-on): Add unistr/base.
45928         (configure.ac): Remove gl_UCS4_UTF.
45929         (Makefile.am): Update.
45930         (Include): Change to unistr.h.
45931         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45932         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45933         utf8-ucs4-unsafe.h.
45934         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45935         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45936         utf16-ucs4-unsafe.h.
45937         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45938         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45939         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45940         * lib/unistr/u8-strchr.c: Likewise.
45941         * lib/unistr/u8-strrchr.c: Likewise.
45942         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45943         * lib/unistr/u16-strchr.c: Likewise.
45944         * lib/unistr/u16-strrchr.c: Likewise.
45945         * lib/striconveh.c: Update.
45946         * lib/linebreak.c: Update.
45947
45948 2007-03-24  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45951         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45952
45953 2007-03-22  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45956
45957 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45958
45959         * MODULES.html.sh (File system functions): New module write-any-file.
45960         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45961         * m4/write-any-file.m4: New files.
45962
45963 2007-03-23  Eric Blake  <ebb9@byu.net>
45964
45965         * gnulib-tool: Rearrange space-tab sequences, since some editors
45966         like to eat them.
45967
45968 2007-03-23  Eric Blake  <ebb9@byu.net>
45969
45970         * lib/version-etc.c (version_etc_va): Update license wording to
45971         be more concise.  Recommended by Richard Stallman.
45972
45973 2007-03-22  Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/poll.c (MSG_PEEK): New fallback definition.
45976
45977 2007-03-22  Bruno Haible  <bruno@clisp.org>
45978
45979         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45980         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45981         (main): Update.
45982         Fixes a compilation error on BeOS.
45983
45984 2007-03-22  Bruno Haible  <bruno@clisp.org>
45985
45986         * modules/frexpl-tests: New file.
45987         * tests/test-frexpl.c: New file.
45988
45989         * modules/frexpl: New file.
45990         * m4/frexpl.m4: New file.
45991         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45992         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45994         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45995         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45996         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45997
45998 2007-03-22  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/frexpl.c: Share code with lib/frexp.c.
46001         * modules/mathl (Files): Add lib/frexp.c.
46002         (Depends-on): Add isnanl-nolibm.
46003
46004 2007-03-22  Bruno Haible  <bruno@clisp.org>
46005
46006         * modules/printf-frexp (Files): Add m4/frexp.m4.
46007         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46008         only if the found frexp function actually works.
46009
46010 2007-03-22  Bruno Haible  <bruno@clisp.org>
46011
46012         * lib/frexp.c: Remove older implementation that uses divisions.
46013
46014 2007-03-21  Bruno Haible  <bruno@clisp.org>
46015
46016         * modules/frexp-tests: New file.
46017         * tests/test-frexp.c: New file.
46018
46019         * modules/frexp: New file.
46020         * lib/frexp.c: New file.
46021         * m4/frexp.m4: New file.
46022         * lib/math_.h (frexp): New declaration.
46023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46024         REPLACE_FREXP.
46025         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46026
46027 2007-03-21  Bruno Haible  <bruno@clisp.org>
46028
46029         * modules/isnanl-tests: New file.
46030         * tests/test-isnanl.c: New file.
46031
46032         * modules/isnanl: New file.
46033         * lib/isnanl.h: New file.
46034         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46035         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46036         gl_FUNC_ISNANL_WORKS.
46037         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46038         New macros.
46039
46040 2007-03-21  Bruno Haible  <bruno@clisp.org>
46041
46042         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46043         lib/isnanl.h.
46044         (Include): Update.
46045         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46046         * lib/vasnprintf.c: Update.
46047         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46048         tests/test-isnanl.h, remove tests/test-isnanl.c.
46049         (Makefile.am): Update.
46050         * tests/test-isnanl-nolibm.c: New file.
46051         * tests/test-isnanl.h: New file.
46052         * tests/test-isnanl.c: Remove file.
46053
46054 2007-03-21  Jim Meyering  <jim@meyering.net>
46055
46056         When trying to open ".", treat ESTALE like EACCES.
46057         * lib/savewd.c (savewd_save): Resort to forking not just upon
46058         failure with EACCES, but also when errno is ESTALE.
46059
46060 2007-03-20  Bruno Haible  <bruno@clisp.org>
46061
46062         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46063         Needed on AIX 5.1. Reported by Matthew Woehlke.
46064
46065 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46066
46067         Suggestions by Bruno Haible:
46068         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46069         our own.
46070         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46071         * modules/acl (Depends-on): Add gettext.
46072
46073 2007-03-19  Bruno Haible  <bruno@clisp.org>
46074
46075         * modules/iconvme: Remove file.
46076         * lib/iconvme.h: Remove file.
46077         * lib/iconvme.c: Remove file.
46078         * m4/iconvme.m4: Remove file.
46079
46080 2007-03-19  Bruno Haible  <bruno@clisp.org>
46081
46082         * doc/relocatable-maint.texi: Break long shell script line.
46083         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46084
46085 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46086
46087         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46088         handle file_has_acl.
46089         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46090         * lib/acl.c: Move header inclusions and related macro defns into
46091         lib/acl-internal.h.
46092         (S_ISLNK): Remove defn, since that's now done for us.
46093         (file_has_acl): Move to lib/file-has-acl.c.
46094         Call acl_trivial if available.  This is the crucial part of the fix.
46095         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46096         shared within the library.  Rewrite a bit, partly to make it compatible
46097         with the GNU coding style.
46098         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46099         Remove unnecessary double-quotes.
46100         Don't test for acl_to_text; the build will catch that.
46101         Replace acl_entries if it doesn't exist and it is needed.
46102         Check for -lsec and acl_trivial (as used on Solaris 10).
46103         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46104         lib/file-has-acl.c.
46105         (Depends-on): Add sys_stat, for S_ISLNK.
46106
46107 2007-03-19  Ben Pfaff  <blp@gnu.org>
46108
46109         * doc/gnulib.texi: Fix typos.
46110         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46111
46112 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46113
46114         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46115         If size is zero here, buf must be zero.
46116
46117 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46118
46119         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46120         <bruno@clisp.org>.
46121
46122 2007-03-18  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46125         Suggested by Eric Blake.
46126
46127 2007-03-18  Ben Pfaff  <blp@gnu.org>
46128
46129         * doc/relocatable.texi: Recommend using as prefix a directory
46130         that does not exist and will never be created.  Based on
46131         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46132         and others.
46133
46134 2007-03-17  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/fchownat.c: Include lchown.h.
46137
46138 2007-03-17  Bruno Haible  <bruno@clisp.org>
46139
46140         Fix endless loop when the given allocated size was > INT_MAX.
46141         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46142         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46143         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46144         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46145         * lib/sprintf.c (sprintf): Likewise.
46146
46147 2007-03-17  Bruno Haible  <bruno@clisp.org>
46148
46149         * tests/test-argp-2.sh (func_compare): Output a context diff.
46150
46151 2007-03-17  Bruno Haible  <bruno@clisp.org>
46152
46153         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46154         locale's decimal-point character.
46155
46156 2007-03-17  Bruno Haible  <bruno@clisp.org>
46157
46158         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46159         before comparing it. Needed because on some platforms (e.g. x86) a
46160         'long double' occupies less bytes than sizeof (long double).
46161
46162 2007-03-17  Bruno Haible  <bruno@clisp.org>
46163
46164         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46165         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46166         * tests/test-getaddrinfo.c (simple): Likewise.
46167         * tests/test-read-file.c (main): Likewise.
46168
46169 2007-03-17  Bruno Haible  <bruno@clisp.org>
46170
46171         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46172
46173 2007-03-17  Bruno Haible  <bruno@clisp.org>
46174
46175         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46176         unused variable.
46177
46178 2007-03-17  Bruno Haible  <bruno@clisp.org>
46179
46180         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46181         * tests/test-c-strncasecmp.c: Likewise.
46182
46183 2007-03-17  Bruno Haible  <bruno@clisp.org>
46184
46185         * modules/stdlib (Depends-on): Add unistd.
46186         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46187         Needed for MacOS X 10.3.
46188
46189 2007-03-17  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46192
46193 2007-03-17  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46196
46197 2007-03-17  Bruno Haible  <bruno@clisp.org>
46198
46199         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46200         to reflect files copied from gnulib (with or without modifications).
46201         Suggested by Jim Meyering.
46202
46203 2007-03-17  Eric Blake  <ebb9@byu.net>
46204
46205         * NEWS: Document stdlib change from 2007-02-18.
46206
46207 2007-03-17  Jim Meyering  <jim@meyering.net>
46208
46209         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46210         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46211         someone uses a name containing shell meta-characters.
46212         Reported by Alfred M. Szmidt.
46213
46214         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46215
46216 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46217
46218         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46219         and copy gettext configuration files only if configure.ac contains
46220         a use of AM_GNU_GETTEXT_VERSION.
46221
46222 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46223
46224         * build-aux/bootstrap (gnulib_name): New variable.
46225         (gnulib_tool_options): Use it.
46226
46227 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46228
46229         * tests/test-des.c: Use new namespace.
46230
46231 2007-03-15  Bruno Haible  <bruno@clisp.org>
46232
46233         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46234         Reported by James Youngman <jay@gnu.org>.
46235
46236 2007-03-15  Bruno Haible  <bruno@clisp.org>
46237
46238         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46239         declared prototype. Needed with cc on OSF/1 5.1.
46240
46241 2007-03-15  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46244         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46245         (struct gl_list_implementation): Add dispose_fn argument to the
46246         'create_empty', 'create' methods.
46247         (struct gl_list_impl_base): Add field 'dispose_fn'.
46248         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46249         argument.
46250         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46251         dispose_fn argument.
46252         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46253         dispose_fn on the dropped values.
46254         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46255         dispose_fn argument.
46256         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46257         dropped values.
46258         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46259         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46260         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46261         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46262         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46263         argument.
46264         (gl_tree_list_free): Call dispose_fn on the dropped values.
46265         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46266         the dropped values.
46267         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46268         Add dispose_fn argument.
46269         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46270         Call dispose_fn on the dropped values.
46271         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46272         Add dispose_fn argument.
46273         (gl_sublist_create): Initialize the 'dispose_fn' field.
46274         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46275         * tests/test-array_list.c (main): Update.
46276         * tests/test-carray_list.c (main): Update.
46277         * tests/test-avltree_list.c (main): Update.
46278         * tests/test-rbtree_list.c (main): Update.
46279         * tests/test-avltreehash_list.c (main): Update.
46280         * tests/test-rbtreehash_list.c (main): Update.
46281         * tests/test-linked_list.c (main): Update.
46282         * tests/test-linkedhash_list.c (main): Update.
46283         * tests/test-array_oset.c (main): Update.
46284
46285 2007-03-15  Bruno Haible  <bruno@clisp.org>
46286
46287         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46288         (gl_oset_create_empty): Add dispose_fn argument.
46289         (struct gl_oset_implementation): Add dispose_fn argument to
46290         'create_empty' method.
46291         (struct gl_oset_impl_base): Add dispose_fn field.
46292         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46293         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46294         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46295         values.
46296         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46297         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46298         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46299         dropped value.
46300         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46301         dropped value.
46302         * tests/test-array_oset.c (main): Update.
46303         * tests/test-avltree_oset.c (main): Update.
46304         * tests/test-rbtree_oset.c (main): Update.
46305         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46306
46307 2007-03-13  Bruno Haible  <bruno@clisp.org>
46308
46309         * tests/test-stdbool.c (i): Update after last patch.
46310
46311 2007-03-12  Bruno Haible  <bruno@clisp.org>
46312
46313         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46314         the iswprint macro. Needed on Solaris 2.5.1.
46315
46316 2007-03-12  Bruno Haible  <bruno@clisp.org>
46317
46318         * tests/test-printf-frexp.c (main): Declare x as volatile.
46319
46320 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46321
46322         * doc/gnulib.texi (Build robot for gnulib): New section.
46323
46324 2007-03-12  Jim Meyering  <jim@meyering.net>
46325
46326         * build-aux/bootstrap: New file.
46327         * build-aux/bootstrap.conf: New file, from coreutils.
46328
46329 2007-03-11  Bruno Haible  <bruno@clisp.org>
46330
46331         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46332
46333 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46334
46335         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46336         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46337         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46338
46339 2007-03-11  Bruno Haible  <bruno@clisp.org>
46340
46341         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46342         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46343
46344 2007-03-11  Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46347         formula. Needed for SunPRO C 5.0.
46348
46349 2007-03-11  Bruno Haible  <bruno@clisp.org>
46350
46351         * modules/long-options (Depends-on): Add getopt.
46352
46353 2007-03-11  Bruno Haible  <bruno@clisp.org>
46354
46355         * modules/modechange (Depends-on): Add stdbool.
46356
46357 2007-03-11  Bruno Haible  <bruno@clisp.org>
46358
46359         * modules/i-ring (Depends-on): Add stdbool.
46360
46361 2007-03-11  Bruno Haible  <bruno@clisp.org>
46362
46363         * modules/gc-des (Depends-on): Add stdbool.
46364
46365 2007-03-11  Bruno Haible  <bruno@clisp.org>
46366
46367         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46368
46369 2007-03-11  Bruno Haible  <bruno@clisp.org>
46370
46371         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46372
46373 2007-03-11  Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46376
46377 2007-03-11  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/vasnprintf.c (sprintf): Undefine.
46380
46381 2007-03-11  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46384         initializers in SunPRO C and Compaq C compilers.
46385
46386 2007-03-11  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46389         decrementing code ANSI C compliant.
46390
46391 2007-03-11  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46394         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46395
46396 2007-03-11  Bruno Haible  <bruno@clisp.org>
46397
46398         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46399         <stdbool.h> substitute doesn't pass.
46400
46401 2007-03-11  Bruno Haible  <bruno@clisp.org>
46402
46403         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46404
46405 2007-03-11  Bruno Haible  <bruno@clisp.org>
46406
46407         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46408         script, for submission to autobuild.josefsson.org.
46409
46410 2007-03-10  Bruno Haible  <bruno@clisp.org>
46411
46412         * modules/canonicalize-lgpl-tests: New file.
46413         * tests/test-canonicalize-lgpl.sh: New file.
46414         * tests/test-canonicalize-lgpl.c: New file.
46415
46416         * modules/c-strcase-tests: New file.
46417         * tests/test-c-strcase.sh: New file.
46418         * tests/test-c-strcasecmp.c: New file.
46419         * tests/test-c-strncasecmp.c: New file.
46420
46421         * modules/atexit-tests: New file.
46422         * tests/test-atexit.sh: New file.
46423         * tests/test-atexit.c: New file.
46424
46425 2007-03-10  Bruno Haible  <bruno@clisp.org>
46426
46427         * tests/test-binary-io.sh: Use temporary filenames that are not so
46428         likely to clash with those of other tests (in a parallel make).
46429         * tests/test-binary-io.c: Likewise.
46430
46431 2007-03-10  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46434         fallback; use #error instead.
46435         Suggested by Simon Josefsson.
46436
46437 2007-03-10  Bruno Haible  <bruno@clisp.org>
46438
46439         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46440         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46441         first and the last.
46442
46443 2007-03-10  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46446
46447 2007-03-10  Bruno Haible  <bruno@clisp.org>
46448
46449         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46450         "make distcheck".
46451         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46452         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46453         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46454
46455 2007-03-10  Bruno Haible  <bruno@clisp.org>
46456
46457         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46458         variable.
46459         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46460         variable.
46461
46462 2007-03-09  Eric Blake  <ebb9@byu.net>
46463         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46464
46465         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46466         types are not being provided by gnulib.
46467         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46468         types are supported.
46469
46470 2007-03-10  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/stdio_.h (__attribute__): New macro.
46473         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46474         vsprintf): Specify __attribute__ __format__ for GCC.
46475         Suggested by Eric Blake.
46476
46477 2007-03-09  Bruno Haible  <bruno@clisp.org>
46478
46479         * modules/printf-posix-tests: New file.
46480         * tests/test-printf-posix.sh: New file.
46481         * tests/test-printf-posix.c: New file.
46482
46483         * modules/printf-posix: New file.
46484         * lib/printf.c: New file.
46485         * m4/printf-posix-rpl.m4: New file.
46486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46487         REPLACE_PRINTF.
46488         * lib/stdio_.h (printf): New declaration.
46489         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46490         ____strfmon____): New macros.
46491         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46492         REPLACE_PRINTF.
46493
46494 2007-03-09  Bruno Haible  <bruno@clisp.org>
46495
46496         * tests/test-vasnprintf-posix2.sh: New file.
46497         * tests/test-vasnprintf-posix2.c: New file.
46498         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46499         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46500         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46501
46502         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46503         a locale dependent decimal point, rather than always '.'.
46504
46505 2007-03-09  Eric Blake  <ebb9@byu.net>
46506
46507         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46508         spite of platforms like Tandem/NSK that define it to -1.
46509
46510 2007-03-08  Bruno Haible  <bruno@clisp.org>
46511
46512         * modules/vprintf-posix-tests: New file.
46513         * tests/test-vprintf-posix.sh: New file.
46514         * tests/test-vprintf-posix.c: New file.
46515         * tests/test-printf-posix.h: New file.
46516
46517         * modules/vprintf-posix: New file.
46518         * lib/vprintf.c: New file.
46519         * m4/vprintf-posix.m4: New file.
46520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46521         REPLACE_VPRINTF.
46522         * lib/stdio_.h (vprintf): New declaration.
46523         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46524         REPLACE_VPRINTF.
46525
46526 2007-03-08  Bruno Haible  <bruno@clisp.org>
46527
46528         * modules/fprintf-posix-tests: New file.
46529         * tests/test-fprintf-posix.sh: New file.
46530         * tests/test-fprintf-posix.c: New file.
46531
46532         * modules/fprintf-posix: New file.
46533         * lib/fprintf.c: New file.
46534         * m4/fprintf-posix.m4: New file.
46535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46536         REPLACE_FPRINTF.
46537         * lib/stdio_.h (fprintf): New declaration.
46538         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46539         REPLACE_FPRINTF.
46540
46541 2007-03-08  Bruno Haible  <bruno@clisp.org>
46542
46543         * modules/vfprintf-posix-tests: New file.
46544         * tests/test-vfprintf-posix.sh: New file.
46545         * tests/test-vfprintf-posix.c: New file.
46546         * tests/test-fprintf-posix.h: New file.
46547         * tests/test-fprintf-posix.out: New file.
46548
46549         * modules/vfprintf-posix: New file.
46550         * lib/vfprintf.c: New file.
46551         * m4/vfprintf-posix.m4: New file.
46552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46553         REPLACE_VFPRINTF.
46554         * lib/stdio_.h (vfprintf): New declaration.
46555         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46556         REPLACE_VFPRINTF.
46557
46558 2007-03-08  Bruno Haible  <bruno@clisp.org>
46559
46560         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46561
46562 2007-03-08  Bruno Haible  <bruno@clisp.org>
46563
46564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46565         instead of 'expr' invocations.
46566         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46571         Suggested by Paul Eggert.
46572
46573 2007-03-08  Bruno Haible  <bruno@clisp.org>
46574
46575         * modules/fseterr-tests: New file.
46576         * tests/test-fseterr.c: New file.
46577
46578         * modules/fseterr: New file.
46579         * lib/fseterr.h: New file.
46580         * lib/fseterr.c: New file.
46581
46582 2007-03-08  Bruno Haible  <bruno@clisp.org>
46583
46584         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46585         * lib/getopt_.h: Likewise.
46586         * lib/mbswidth.h: Likewise.
46587         * lib/setenv.h: Likewise.
46588         * lib/vasnprintf.h: Likewise.
46589         * lib/vasprintf.h: Likewise.
46590         * lib/verror.h: Likewise.
46591         * lib/xsetenv.h: Likewise.
46592         * lib/xvasprintf.h: Likewise.
46593
46594 2007-03-08  Jim Meyering  <jim@meyering.net>
46595
46596         * users.txt: Add parted.
46597
46598         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46599
46600 2007-03-07  Bruno Haible  <bruno@clisp.org>
46601
46602         * m4/printf.m4: Make the shell script snippets copy&pastable.
46603
46604 2007-03-02  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/netinet_in_.h: New file.
46607         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46608         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46609         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46610         (Depends-on): Add absolute-header.
46611         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46612         into netinet/in.h.
46613
46614 2007-03-03  Bruno Haible  <bruno@clisp.org>
46615
46616         * lib/sys_select_.h: New file.
46617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46618         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46619         * modules/sys_select (Files): Add lib/sys_select_.h.
46620         (Depends-on): Add absolute-header.
46621         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46622         into sys/select.h.
46623
46624 2007-03-02  Bruno Haible  <bruno@clisp.org>
46625
46626         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46627         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46628         values.
46629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46630         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46631         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46632         * modules/sys_socket (Depends-on): Add absolute-header.
46633         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46634         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46635         (Include): Remove requirement of inclusion of <sys/types.h>.
46636
46637 2007-03-02  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/byteswap_.h (bswap_32): Fix formula.
46640
46641 2007-03-06  Bruno Haible  <bruno@clisp.org>
46642
46643         * modules/sprintf-posix-tests: New file.
46644         * tests/test-sprintf-posix.c: New file.
46645
46646         * modules/sprintf-posix: New file.
46647         * lib/sprintf.c: New file.
46648         * m4/sprintf-posix.m4: New file.
46649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46650         REPLACE_SPRINTF.
46651         * lib/stdio_.h (sprintf): New declaration.
46652         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46653         REPLACE_SPRINTF.
46654
46655 2007-03-06  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/vsprintf-posix-tests: New file.
46658         * tests/test-vsprintf-posix.c: New file.
46659         * tests/test-sprintf-posix.h: New file.
46660
46661         * modules/vsprintf-posix: New file.
46662         * lib/vsprintf.c: New file.
46663         * m4/vsprintf-posix.m4: New file.
46664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46665         REPLACE_VSPRINTF.
46666         * lib/stdio_.h (vsprintf): New declaration.
46667         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46668         REPLACE_VSPRINTF.
46669
46670 2007-03-06  Bruno Haible  <bruno@clisp.org>
46671
46672         * modules/vsnprintf (Depend-on): Remove minmax.
46673
46674 2007-03-06  Bruno Haible  <bruno@clisp.org>
46675
46676         * modules/snprintf-posix-tests: New file.
46677         * tests/test-snprintf-posix.c: New file.
46678
46679         * modules/snprintf-posix: New file.
46680         * m4/snprintf-posix.m4: New file.
46681         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46682         gl_FUNC_SNPRINTF.
46683         (gl_FUNC_SNPRINTF): Invoke it.
46684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46685         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46686         is set.
46687         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46688
46689 2007-03-06  Bruno Haible  <bruno@clisp.org>
46690
46691         * modules/vsnprintf-posix-tests: New file.
46692         * tests/test-vsnprintf-posix.c: New file.
46693         * tests/test-snprintf-posix.h: New file.
46694
46695         * modules/vsnprintf-posix: New file.
46696         * m4/vsnprintf-posix.m4: New file.
46697         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46698         gl_FUNC_VSNPRINTF.
46699         (gl_FUNC_VSNPRINTF): Invoke it.
46700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46701         * lib/stdio_.h (vsnprintf): Define as a replacement if
46702         REPLACE_VSNPRINTF is set.
46703         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46704
46705 2007-03-06  Bruno Haible  <bruno@clisp.org>
46706
46707         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46709
46710 2007-03-06  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46713         (asinl): Declare also if HAVE_DECL_ASINL is set.
46714         (atanl): Declare also if HAVE_DECL_ATANL is set.
46715         (ceill): Declare also if HAVE_DECL_CEILL is set.
46716         (cosl): Declare also if HAVE_DECL_COSL is set.
46717         (expl): Declare also if HAVE_DECL_EXPL is set.
46718         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46719         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46720         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46721         (logl): Declare also if HAVE_DECL_LOGL is set.
46722         (sinl): Declare also if HAVE_DECL_SINL is set.
46723         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46724         (tanl): Declare also if HAVE_DECL_TANL is set.
46725         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46727         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46728         declaration of frexpl, ldexpl.
46729         * modules/printf-frexpl (Depends-on): Add math.
46730         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46731
46732 2007-03-05  Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46735         frexpl and ldexpl are declared.
46736         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46737
46738 2007-03-05  Bruno Haible  <bruno@clisp.org>
46739
46740         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46741         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46742
46743 2007-03-05  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/stdio_.h: Include <stddef.h>.
46746
46747 2007-03-05  Bruno Haible  <bruno@clisp.org>
46748
46749         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46750
46751 2007-03-05  Bruno Haible  <bruno@clisp.org>
46752
46753         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46754         NetBSD 4, from Ralf Wildenhues.
46755
46756 2007-03-04  Bruno Haible  <bruno@clisp.org>
46757
46758         * lib/vasprintf.h: Update #if logic for the case when the functions
46759         exist but are overridden.
46760
46761 2007-03-04  Bruno Haible  <bruno@clisp.org>
46762
46763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46764         implementations: glibc-2.4 and MacOS X 10.3.
46765         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46766         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46767         * tests/test-vasprintf-posix.c (test_function): Likewise.
46768
46769 2007-03-04  Bruno Haible  <bruno@clisp.org>
46770
46771         * modules/vasprintf-posix-tests: New file.
46772         * tests/test-vasprintf-posix.c: New file.
46773
46774         * modules/vasprintf-posix: New file.
46775         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46776         defined.
46777         * m4/vasprintf-posix.m4: New file.
46778         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46779         gl_FUNC_VASPRINTF.
46780         (gl_FUNC_VASPRINTF): Invoke it.
46781         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46782         here.
46783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46784
46785 2007-03-04  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46788         REPLACE_GETTIMEOFDAY.
46789         * modules/sys_time (Makefile.am): Likewise.
46790         * m4/sys_time_h.m4: Likewise.
46791         * m4/gettimeofday.m4: Likewise.
46792
46793 2007-03-04  Bruno Haible  <bruno@clisp.org>
46794
46795         * modules/vasnprintf-posix-tests: New file.
46796         * tests/test-vasnprintf-posix.c: New file.
46797
46798         * modules/vasnprintf-posix: New file.
46799         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46800         printf-frexpl.h.
46801         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46802         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46803         REPLACE_VASNPRINTF is defined.
46804         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46805         gl_FUNC_VASNPRINTF.
46806         (gl_FUNC_VASNPRINTF): Invoke it.
46807         * m4/vasnprintf-posix.m4: New file.
46808         * m4/printf.m4: New file.
46809
46810 2007-03-04  Bruno Haible  <bruno@clisp.org>
46811
46812         Compile progreloc.c only if --enable-relocatable is specified.
46813         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46814         if --enable-relocatable was specified.
46815         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46816         lib_SOURCES.
46817
46818 2007-03-04  Jim Meyering  <jim@meyering.net>
46819
46820         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46821         Use it consistently, rather than enumerating errno constants.
46822
46823 2007-03-04  Bruno Haible  <bruno@clisp.org>
46824
46825         * modules/xvasprintf-tests: New file.
46826         * tests/test-xvasprintf.c: New file.
46827
46828         * modules/vasprintf-tests: New file.
46829         * tests/test-vasprintf.c: New file.
46830
46831         * modules/vasnprintf-tests: New file.
46832         * tests/test-vasnprintf.c: New file.
46833
46834         * modules/vsnprintf-tests: New file.
46835         * tests/test-vsnprintf.c: New file.
46836
46837         * modules/snprintf-tests: New file.
46838         * tests/test-snprintf.c: New file.
46839
46840 2007-03-04  Bruno Haible  <bruno@clisp.org>
46841
46842         Compile relocatable.c only if --enable-relocatable is specified.
46843         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46844         gl_RELOCATABLE_LIBRARY.
46845         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46846         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46847         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46848         gl_RELOCATABLE_LIBRARY.
46849         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46850         (Makefile.am): Remove lib_SOURCES.
46851         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46852         gl_RELOCATABLE_LIBRARY.
46853         (Makefile.am): Remove lib_SOURCES.
46854         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46855         always.
46856         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46857         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46858
46859 2007-03-04  Bruno Haible  <bruno@clisp.org>
46860
46861         * modules/argmatch-tests: New file.
46862         * tests/test-argmatch.c: New file.
46863
46864         * tests/test-allocsa.c (main): Halve the number of loop runs.
46865
46866         * modules/alloca-opt-tests: New file.
46867         * tests/test-alloca-opt.c: New file.
46868
46869 2007-03-04  Jim Meyering  <jim@meyering.net>
46870
46871         Work around difference between Linux ACLs and Solaris 10 ZFS.
46872         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46873         for EINVAL.
46874
46875 2007-03-03  Bruno Haible  <bruno@clisp.org>
46876
46877         * modules/relocatable-prog (Depends-on): Add back progreloc's
46878         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46879
46880 2007-03-03  Bruno Haible  <bruno@clisp.org>
46881
46882         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46883         * modules/relocatable-lib: New file.
46884
46885 2007-03-03  Bruno Haible  <bruno@clisp.org>
46886
46887         * modules/relocatable-prog: Renamed from modules/relocatable.
46888         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46889
46890 2007-03-03  Bruno Haible  <bruno@clisp.org>
46891
46892         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46893         m4/relocatable-lib.m4.
46894         (Depends-on): Remove 'relocatable'.
46895         (configure.ac): Add gl_RELOCATABLE_NOP.
46896
46897 2007-03-03  Bruno Haible  <bruno@clisp.org>
46898
46899         * modules/relocatable-prog-wrapper: New file.
46900         * modules/relocatable (Depends-on): Add it. Remove all other
46901         dependencies except progname.
46902         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46903
46904         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46905         (gl_FUNC_STRERROR): Nop.
46906         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46907
46908         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46909         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46910
46911         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46912         (gl_FUNC_READLINK): Update.
46913
46914         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46915
46916 2007-03-03  Bruno Haible  <bruno@clisp.org>
46917
46918         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46919         * modules/xreadlink (Depends-on): Add unistd.
46920         * modules/xreadlink-with-size (Depends-on): Likewise.
46921
46922 2007-03-03  Bruno Haible  <bruno@clisp.org>
46923
46924         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46925         extracted from gt_FUNC_SETENV.
46926         (gt_FUNC_SETENV): Remove macro.
46927         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46928         remove gt_FUNC_SETENV.
46929
46930 2007-03-03  Bruno Haible  <bruno@clisp.org>
46931
46932         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46933         ENABLE_RELOCATABLE here.
46934         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46935
46936 2007-03-03  Bruno Haible  <bruno@clisp.org>
46937
46938         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46939         * tests/test-rbtreehash_list.c: Include progname.h.
46940         (main): Call set_program_name.
46941
46942         * modules/rbtree-oset-tests (Depends-on): Add progname.
46943         * tests/test-rbtree_oset.c: Include progname.h.
46944         (main): Call set_program_name.
46945
46946         * modules/rbtree-list-tests (Depends-on): Add progname.
46947         * tests/test-rbtree_list.c: Include progname.h.
46948         (main): Call set_program_name.
46949
46950         * modules/linked-list-tests (Depends-on): Add progname.
46951         * tests/test-linked_list.c: Include progname.h.
46952         (main): Call set_program_name.
46953
46954 2007-03-03  Bruno Haible  <bruno@clisp.org>
46955
46956         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46957         All uses of __restrict changed to _Restrict_.
46958         * lib/glob_.h (__restrict): Remove macro.
46959
46960 2007-03-02  Bruno Haible  <bruno@clisp.org>
46961
46962         * modules/gettext (configure.ac): Require gettext infrastructure
46963         from version 0.16.1.
46964
46965 2007-03-02  Bruno Haible  <bruno@clisp.org>
46966
46967         * modules/linkedhash-list-tests (Depends-on): Add progname.
46968         * tests/test-linkedhash_list.c: Include progname.h.
46969         (main): Call set_program_name.
46970
46971         * modules/carray-list-tests (Depends-on): Add progname.
46972         * tests/test-carray_list.c: Include progname.h.
46973         (main): Call set_program_name.
46974
46975         * modules/avltreehash-list-tests (Depends-on): Add progname.
46976         * tests/test-avltreehash_list.c: Include progname.h.
46977         (main): Call set_program_name.
46978
46979         * modules/avltree-oset-tests (Depends-on): Add progname.
46980         * tests/test-avltree_oset.c: Include progname.h.
46981         (main): Call set_program_name.
46982
46983         * modules/avltree-list-tests (Depends-on): Add progname.
46984         * tests/test-avltree_list.c: Include progname.h.
46985         (main): Call set_program_name.
46986
46987         * modules/array-oset-tests (Depends-on): Add progname.
46988         * tests/test-array_oset.c: Include progname.h.
46989         (main): Call set_program_name.
46990
46991         * modules/array-list-tests (Depends-on): Add progname.
46992         * tests/test-array_list.c: Include progname.h.
46993         (main): Call set_program_name.
46994
46995         * modules/argp-tests (Depends-on): Add progname.
46996         * tests/test-argp.c: Include argp.h first. Include progname.h.
46997         (main): Call set_program_name.
46998
46999 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47000
47001         * doc/gnulib-tool.texi (Initial import): Reword description of
47002         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47003         limited effect even if defined after the first system include.
47004
47005 2007-03-01  Bruno Haible  <bruno@clisp.org>
47006
47007         * build-aux/config.libpath: Update to libtool-1.5.22.
47008         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47009
47010 2007-03-01  Bruno Haible  <bruno@clisp.org>
47011
47012         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47013         foo_CFLAGS.
47014         Reported by Ralf Wildenhues.
47015
47016 2007-03-01  Bruno Haible  <bruno@clisp.org>
47017
47018         * build-aux/install-reloc: Remove object files left over by some
47019         compilers.
47020         Reported by Ralf Wildenhues.
47021
47022 2007-03-01  Bruno Haible  <bruno@clisp.org>
47023
47024         * build-aux/install-reloc: Break long lines.
47025
47026 2007-03-01  Bruno Haible  <bruno@clisp.org>
47027
47028         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47029         Reported by Ralf Wildenhues.
47030
47031 2007-03-01  Bruno Haible  <bruno@clisp.org>
47032
47033         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47034         include ordering constraints.
47035
47036 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47037
47038         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47040         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47041         as another example.
47042         * lib/time_.h: Fix misspelling.
47043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47044         Require gl_HEADER_TIME_H_DEFAULTS.
47045         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47046         * m4/time_r.m4 (gl_TIME_R): Likewise.
47047         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47048
47049 2007-03-01  Bruno Haible  <bruno@clisp.org>
47050
47051         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47052         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47053
47054 2007-03-01  Jim Meyering  <jim@meyering.net>
47055
47056         * modules/xreadlink (Maintainer): Add my name.
47057         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47058
47059 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47060             Bruno Haible  <bruno@clisp.org>
47061
47062         * build-aux/install-reloc: Compile also c-ctype.c.
47063         * build-aux/relocatable.sh.in: New file.
47064         * doc/relocatable.texi: New file.
47065         * doc/relocatable-maint.texi: New file.
47066         * doc/gnulib.texi: Include relocatable-maint.texi.
47067         * lib/progreloc.c: Include unistd.h unconditionally.
47068         * lib/relocwrapper.c: Include unistd.h unconditionally.
47069         Include c-ctype.h.
47070         (add_dotbin): Use c_tolower.
47071         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47072         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47073         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47074         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47075         to m4/relocatable-lib.m4.
47076         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47077         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47078         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47079         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47080         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47081         * modules/relocatable: New file.
47082         * modules/relocatable-lib: New file.
47083         * modules/relocatable-script: New file.
47084
47085 2007-02-28  Bruno Haible  <bruno@clisp.org>
47086
47087         Import --enable-relocatable infrastructure.
47088         * build-aux/config.libpath: New file, from GNU gettext.
47089         * build-aux/install-reloc: New file, from GNU gettext.
47090         * build-aux/reloc-ldflags: New file, from GNU gettext.
47091         * lib/relocatable.h: New file, from GNU gettext.
47092         * lib/relocatable.c: New file, from GNU gettext.
47093         * lib/relocwrapper.c: New file, from GNU gettext.
47094         * m4/relocatable.m4: New file, from GNU gettext.
47095
47096 2007-02-28  Bruno Haible  <bruno@clisp.org>
47097
47098         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47099
47100         * modules/xreadlink: New file, from GNU gettext with modifications.
47101         * lib/xreadlink.c: New file, from GNU gettext.
47102         * lib/xreadlink.h: Add comments.
47103         (xreadlink): New declaration.
47104
47105         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47106         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47107         lib/xreadlink-with-size.c.
47108         (configure.ac): Remove gl_XREADLINK invocation.
47109         (Makefile.am): Augment lib_SOURCES.
47110         * m4/xreadlink.m4: Remove file.
47111         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47112         (xreadlink_with_size): Renamed from xreadink.
47113         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47114         * modules/canonicalize (Depends-on): Replace xreadlink with
47115         xreadlink-with-size.
47116         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47117
47118 2007-02-25  Jim Meyering  <jim@meyering.net>
47119
47120         * build-aux/announce-gen: When complaining about excess arguments,
47121         list them.
47122
47123 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47124
47125         * README: Document signed integer overflow situation more
47126         accurately.
47127
47128 2007-02-25  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47131         'a' or 'A' conversion.
47132
47133 2007-02-25  Bruno Haible  <bruno@clisp.org>
47134
47135         * modules/filename: Renamed from modules/pathname.
47136         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47137         lib/concatpath.c with lib/concat-filename.c.
47138         (Makefile.am): Update.
47139         (Include): Replace pathname.h with filename.h.
47140         * lib/filename.h: Renamed from lib/pathname.h.
47141         (concatenated_filename): Renamed from concatenated_pathname.
47142         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47143         (concatenated_filename): Renamed from concatenated_pathname.
47144         * lib/findprog.c: Include filename.h instead of pathname.h.
47145         (find_in_path): Update.
47146         * lib/javacomp.c: Include filename.h instead of pathname.h.
47147         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47148         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47149         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47150         is_oldgcj_14_13_usable, is_javac_usable): Update.
47151         * lib/javaexec.c: Include filename.h instead of pathname.h.
47152         (execute_java_class): Update.
47153         * modules/findprog: Update.
47154         * modules/javacomp: Update.
47155         * modules/javaexec: Update.
47156         * MODULES.html.sh (File system functions): Add 'filename', remove
47157         'pathname'.
47158
47159 2007-02-25  Bruno Haible  <bruno@clisp.org>
47160
47161         * modules/printf-frexpl-tests: New file.
47162         * tests/test-printf-frexpl.c: New file.
47163
47164         * modules/printf-frexpl: New file.
47165         * lib/printf-frexpl.h: New file.
47166         * lib/printf-frexpl.c: New file.
47167         * m4/printf-frexpl.m4: New file.
47168
47169 2007-02-25  Bruno Haible  <bruno@clisp.org>
47170
47171         * modules/printf-frexp-tests: New file.
47172         * tests/test-printf-frexp.c: New file.
47173
47174         * modules/printf-frexp: New file.
47175         * lib/printf-frexp.h: New file.
47176         * lib/printf-frexp.c: New file.
47177         * m4/printf-frexp.m4: New file.
47178
47179 2007-02-25  Bruno Haible  <bruno@clisp.org>
47180
47181         Assume automake >= 1.10 for the tests.
47182         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47183         * modules/arctwo-tests: Likewise.
47184         * modules/argp-tests: Likewise.
47185         * modules/avltree-list-tests: Likewise.
47186         * modules/avltree-oset-tests: Likewise.
47187         * modules/avltreehash-list-tests: Likewise.
47188         * modules/carray-list-tests: Likewise.
47189         * modules/crc-tests: Likewise.
47190         * modules/des-tests: Likewise.
47191         * modules/gc-arcfour-tests: Likewise.
47192         * modules/gc-arctwo-tests: Likewise.
47193         * modules/gc-des-tests: Likewise.
47194         * modules/gc-hmac-md5-tests: Likewise.
47195         * modules/gc-hmac-sha1-tests: Likewise.
47196         * modules/gc-md2-tests: Likewise.
47197         * modules/gc-md4-tests: Likewise.
47198         * modules/gc-md5-tests: Likewise.
47199         * modules/gc-pbkdf2-sha1-tests: Likewise.
47200         * modules/gc-rijndael-tests: Likewise.
47201         * modules/gc-sha1-tests: Likewise.
47202         * modules/gc-tests: Likewise.
47203         * modules/getaddrinfo-tests: Likewise.
47204         * modules/hmac-md5-tests: Likewise.
47205         * modules/hmac-sha1-tests: Likewise.
47206         * modules/linked-list-tests: Likewise.
47207         * modules/linkedhash-list-tests: Likewise.
47208         * modules/lock-tests: Likewise.
47209         * modules/md2-tests: Likewise.
47210         * modules/md4-tests: Likewise.
47211         * modules/md5-tests: Likewise.
47212         * modules/rbtree-list-tests: Likewise.
47213         * modules/rbtree-oset-tests: Likewise.
47214         * modules/rbtreehash-list-tests: Likewise.
47215         * modules/read-file-tests: Likewise.
47216         * modules/rijndael-tests: Likewise.
47217         * modules/stdint-tests: Likewise.
47218         * modules/tls-tests: Likewise.
47219
47220 2007-02-24  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47223         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47224         function; instead check whether isnan with a double argument links.
47225         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47226         function; instead check whether isnan with a 'long double' argument
47227         links.
47228         Reported by Eric Blake <ebb9@byu.net>.
47229
47230 2007-02-24  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47233         defined.
47234         * lib/isnanl.c: Remove all code. Just include isnan.c.
47235         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47236
47237 2007-02-25  Jim Meyering  <jim@meyering.net>
47238
47239         Avoid conflicting types for 'unsetenv' on FreeBSD.
47240         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47241         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47242         in stdlib.h.
47243
47244 2007-02-24  Bruno Haible  <bruno@clisp.org>
47245
47246         * modules/isnanl-nolibm-tests: New file.
47247         * tests/test-isnanl.c: New file.
47248
47249         * modules/isnanl-nolibm: New file.
47250         * lib/isnanl.h: New file.
47251         * lib/isnanl.c: New file.
47252         * m4/isnanl.m4: New file.
47253
47254 2007-02-24  Bruno Haible  <bruno@clisp.org>
47255
47256         * modules/isnan-nolibm-tests: New file.
47257         * tests/test-isnan.c: New file.
47258
47259         * modules/isnan-nolibm: New file.
47260         * lib/isnan.h: New file.
47261         * lib/isnan.c: New file.
47262         * m4/isnan.m4: New file.
47263
47264 2007-02-24  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47267         assume that an exponent fits in 20 bits.
47268
47269 2007-02-24  Jim Meyering  <jim@meyering.net>
47270
47271         * m4/regex.m4: Update the description of the configure-time option,
47272         --without-included-regex, to state accurately what the defaults are,
47273         and perhaps to give people an idea why using this option is risky.
47274
47275 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47276
47277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47278         loops on small arguments.  This attempts to avoid the problem
47279         Bruno Haible reported for AIX 4.3.2 in
47280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47281
47282 2007-02-23  Bruno Haible  <bruno@clisp.org>
47283
47284         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47285         Needed for help2man.
47286
47287 2007-02-23  Karl Berry  <karl@gnu.org>
47288
47289         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47290         exists, foo.h should be cvs-ignored, not committed.
47291
47292 2007-02-23  Eric Blake  <ebb9@byu.net>
47293
47294         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47295         * lib/stat-time.h (includes): Likewise.
47296         * lib/utimecmp.c (includes): Likewise.
47297         * lib/utimens.h (includes): Likewise.
47298         * lib/getdate.y (includes): Also include "timespec.h" for use
47299         internal to the module.
47300         * modules/utimens (Depends-on): Revert yesterday's patch.
47301         * modules/nanosleep (Depends-on): Add missing dependency.
47302
47303 2007-02-22  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/glob.c: Don't include getlogin_r.h.
47306
47307 2007-02-22  Jim Meyering  <jim@meyering.net>
47308
47309         * modules/utimens (Depends-on): Add timespec, required for
47310         utimens.h's inclusion of timespec.h.
47311
47312 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47313
47314         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47315         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47316         Schwab in
47317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47318         I'll try to think of a better way to fix the Solaris problem.
47319
47320         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47321         like glibc; on Solaris 10, it fails with errno == EINVAL.
47322         POSIX says the behavior is unspecified if the first argument is NULL,
47323         so play it safe and never pass NULL to the system getcwd.
47324
47325 2007-02-21  Jim Meyering  <jim@meyering.net>
47326
47327         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47328         of gettimeofday.  It would conflict with the one now always
47329         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47330         an IRIX 6.5 build failure.
47331
47332 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47333
47334         Minor fixups to port to Solaris 10 with Sun C 5.8.
47335         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47336         * modules/getcwd (Depends-on): Add dirfd.
47337         * lib/putenv.c (putenv): #undef it.
47338         (rpl_putenv): New decl.
47339         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47340
47341 2007-02-20  Bruno Haible  <bruno@clisp.org>
47342
47343         * modules/stdio-tests: New file.
47344         * tests/test-stdio.c: New file.
47345
47346         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47347         (Depends-on): Add stdio.
47348         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47349         (Include): Use <stdio.h> instead of vsnprintf.h.
47350         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47351         HAVE_DECL_VSNPRINTF.
47352         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47353
47354         * modules/snprintf (Files): Remove lib/snprintf.h.
47355         (Depends-on): Add stdio.
47356         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47357         (Include): Use <stdio.h> instead of snprintf.h.
47358         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47359         HAVE_DECL_SNPRINTF.
47360         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47361         * lib/getaddrinfo.c: Likewise.
47362
47363         * modules/stdio: New file.
47364         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47365         * lib/snprintf.h: Remove file.
47366         * lib/vsnprintf.h: Remove file.
47367         * lib/.cppi-disable: Remove snprintf.h.
47368         * m4/stdio_h.m4: New file.
47369         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47370
47371 2007-02-20  Jim Meyering  <jim@meyering.net>
47372
47373         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47374         used by e.g., mingw.  From Bruno Haible.
47375
47376 2007-02-19  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47379         warnings.
47380         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47381
47382 2007-02-19  Bruno Haible  <bruno@clisp.org>
47383
47384         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47385         from mingw users.
47386
47387 2007-02-19  Bruno Haible  <bruno@clisp.org>
47388
47389         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47390         warnings.
47391         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47392
47393 2007-02-19  Jim Meyering  <jim@meyering.net>
47394
47395         Don't use FD after a successful "fdopendir (fd)".
47396         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47397         Reset it by calling dirfd on the just-obtained DIR*.
47398
47399         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47400         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47401
47402 2007-02-18  Bruno Haible  <bruno@clisp.org>
47403
47404         * lib/readlink.c: Include <unistd.h>.
47405         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47406         HAVE_READLINK.
47407         * modules/readlink (Depends-on): Add unistd.
47408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47409         (Include): Add <unistd.h>.
47410
47411         * lib/getlogin_r.h: Remove file.
47412         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47413         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47414         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47415         HAVE_DECL_GETLOGIN_R.
47416         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47418         (Include): Use <unistd.h> instead of getlogin_r.h.
47419
47420         * lib/getcwd.h: Remove file.
47421         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47422         * lib/xgetcwd.c: Likewise.
47423         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47424         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47425         * modules/getcwd (Files): Remove lib/getcwd.h.
47426         (Depends-on): Add unistd.
47427         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47428         (Include): Use <unistd.h> instad of getcwd.h.
47429
47430         * lib/ftruncate.c: Include <unistd.h> first.
47431         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47432         Set HAVE_FTRUNCATE.
47433         * modules/ftruncate (Depends-on): Add unistd.
47434         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47435
47436         * lib/fchdir.c: Include <unistd.h> first.
47437         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47439         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47440         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47441         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47442
47443         * lib/dup2.c: Include <unistd.h> first.
47444         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47445         HAVE_DUP2.
47446         * modules/dup2 (Depends-on): Add unistd.
47447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47448
47449         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47450         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47451         REPLACE_CHOWN. Don't define chown as a macro here.
47452         * modules/chown (Depends-on): Add unistd.
47453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47454
47455         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47456         Add definition for GL_LINK_WARNING.
47457         (chown, dup2): New declarations.
47458         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47459         link warning.
47460         (ftruncate): New declaration.
47461         (getcwd): New declaration, taken from old getcwd.h.
47462         (getlogin_r): New declaration, taken from old getlogin_r.h.
47463         (readlink): New declaration.
47464         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47465         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47466         (gl_PREREQ_UNISTD): Remove macro.
47467         (gl_UNISTD_MODULE_INDICATOR): New macro.
47468         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47469         many new variables. Don't set UNISTD_H.
47470         * modules/unistd (Description): Change.
47471         (Depends-on): Add link-warning.
47472         (configure.ac): Update.
47473         (Makefile.am): Create unistd.h always. Substitute many new variables
47474         into it.
47475
47476 2007-02-18  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47479         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47480         HAVE_GETSUBOPT.
47481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47482         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47483         * lib/getsubopt.h: Remove file.
47484         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47485         (Depends-on): Add stdlib.
47486         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47487         (Includes): Use <stdlib.h> instead of getsubopt.h.
47488         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47489         Set HAVE_GETSUBOPT.
47490         * lib/getsubopt.c: Don't include getsubopt.h.
47491
47492 2007-02-18  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/fchdir (Depends-on): Add dup2.
47495
47496 2007-02-18  Bruno Haible  <bruno@clisp.org>
47497
47498         * lib/stdlib_.h: Handle glibc's special invocation convention
47499         specially.
47500
47501 2007-02-18  Bruno Haible  <bruno@clisp.org>
47502
47503         * modules/stdlib-tests: New file.
47504         * tests/test-stdlib.c: New file.
47505
47506         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47507         (Depends-on): Add stdlib.
47508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47509         (Includes): Use <stdlib.h> instead of mkstemp.h.
47510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47511         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47512         * lib/mkstemp.c: Don't include mkstemp.h.
47513         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47514         * lib/stdlib--.h: Don't include mkstemp.h.
47515
47516         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47517         (Depends-on): Add stdlib.
47518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47519         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47520         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47521         HAVE_MKDTEMP.
47522         * lib/mkdtemp.c: Don't include mkdtemp.h.
47523         * lib/clean-temp.c: Don't include mkdtemp.h.
47524
47525         * modules/exit (Files): Remove lib/exit.h.
47526         (Depends-on): Add stdlib.
47527         (Makefile.am): Remove lib_SOURCES.
47528         (Include): Use <stdlib.h> instead of exit.h.
47529         * lib/argmatch.c: Don't include exit.h.
47530         * lib/execute.c: Likewise.
47531         * lib/pagealign_alloc.c: Likewise.
47532         * lib/pipe.c: Likewise.
47533         * lib/wait-process.c: Likewise.
47534         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47535         * lib/exitfail.c: Likewise.
47536         * lib/savewd.c: Likewise.
47537         * lib/xsetenv.c: Likewise.
47538
47539         * modules/stdlib: New file.
47540         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47541         and extra comments about mkstemp().
47542         * lib/exit.h: Remove file.
47543         * lib/mkdtemp.h: Remove file.
47544         * lib/mkstemp.h: Remove file.
47545         * m4/stdlib_h.m4: New file.
47546         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47547
47548 2007-02-18  Bruno Haible  <bruno@clisp.org>
47549
47550         * modules/math-tests: New file.
47551         * tests/test-math.c: New file.
47552
47553         * modules/math: New file.
47554         * modules/mathl (Files): Remove lib/mathl.h.
47555         (Depends-on): Add math.
47556         (Makefile.am): Don't mention mathl.h.
47557         (Include): Use <math.h> instead of mathl.h.
47558         * lib/math_.h: New file.
47559         * lib/mathl.h: Remove file.
47560         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47561         mathl.h.
47562         * lib/asinl.c: Likewise.
47563         * lib/atanl.c: Likewise.
47564         * lib/ceill.c: Likewise.
47565         * lib/cosl.c: Likewise.
47566         * lib/expl.c: Likewise.
47567         * lib/floorl.c: Likewise.
47568         * lib/frexpl.c: Likewise.
47569         * lib/ldexpl.c: Likewise.
47570         * lib/logl.c: Likewise.
47571         * lib/sincosl.c: Likewise.
47572         * lib/sinl.c: Likewise.
47573         * lib/sqrtl.c: Likewise.
47574         * lib/tanl.c: Likewise.
47575         * lib/trigl.c: Likewise.
47576         * m4/math_h.m4: New file.
47577         * MODULES.html.sh (Mathematics): Add math.
47578
47579 2007-02-17  Bruno Haible  <bruno@clisp.org>
47580
47581         * modules/wctype-tests: New file.
47582         * tests/test-wctype.c: New file.
47583
47584         * modules/wchar-tests: New file.
47585         * tests/test-wchar.c: New file.
47586
47587         * modules/unistd-tests: New file.
47588         * tests/test-unistd.c: New file.
47589
47590         * modules/time-tests: New file.
47591         * tests/test-time.c: New file.
47592
47593         * modules/sysexits-tests: New file.
47594         * tests/test-sysexits.c: New file.
47595
47596         * modules/sys_time-tests: New file.
47597         * tests/test-sys_time.c: New file.
47598
47599         * modules/sys_stat-tests: New file.
47600         * tests/test-sys_stat.c: New file.
47601
47602         * modules/sys_socket-tests: New file.
47603         * tests/test-sys_socket.c: New file.
47604
47605         * modules/sys_select-tests: New file.
47606         * tests/test-sys_select.c: New file.
47607
47608         * modules/string-tests: New file.
47609         * tests/test-string.c: New file.
47610
47611         * modules/stdbool-tests: New file.
47612         * tests/test-stdbool.c: New file.
47613
47614         * modules/netinet_in-tests: New file.
47615         * tests/test-netinet_in.c: New file.
47616
47617         * modules/inttypes-tests: New file.
47618         * tests/test-inttypes.c: New file.
47619
47620         * modules/fcntl-tests: New file.
47621         * tests/test-fcntl.c: New file.
47622
47623         * modules/byteswap-tests: New file.
47624         * tests/test-byteswap.c: New file.
47625
47626         * modules/arpa_inet-tests: New file.
47627         * tests/test-arpa_inet.c: New file.
47628
47629 2007-02-17  Bruno Haible  <bruno@clisp.org>
47630
47631         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47632         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47633         if the corresponding module is not enabled. Emit link warnings if
47634         the function is used nevertheless.
47635         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47636         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47637         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47638         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47639         * modules/inttypes (Depends-on): Add link-warning.
47640         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47641         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47642         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47643         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47644         * modules/imaxdiv (configure.ac): Likewise.
47645         * modules/strtoimax (configure.ac): Likewise.
47646         * modules/strtoumax (configure.ac): Likewise.
47647
47648 2007-02-17  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47651         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47652         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47653         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47654
47655 2007-02-17  Bruno Haible  <bruno@clisp.org>
47656
47657         * modules/link-warning: New file.
47658         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47659         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47660         * modules/string (Depends-on): Add link-warning.
47661         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47662         string.h.
47663         * MODULES.html.sh (Support for building libraries and executables): Add
47664         link-warning.
47665
47666 2007-02-17  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47669         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47670         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47671         long lines.
47672
47673 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47674             Bruno Haible  <bruno@clisp.org>
47675
47676         * modules/tmpfile: New file.
47677         * lib/tmpfile.c: New file.
47678         * m4/tmpfile.m4: New file.
47679         * MODULES.html.sh (func_all_modules): New section "Input/output".
47680
47681 2007-02-15  Bruno Haible  <bruno@clisp.org>
47682
47683         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47684         (supports_delete_on_close): New function.
47685         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47686
47687 2007-02-14  Bruno Haible  <bruno@clisp.org>
47688
47689         * modules/mbspcasecmp-tests: New file.
47690         * tests/test-mbspcasecmp.sh: New file.
47691         * tests/test-mbspcasecmp.c: New file.
47692
47693         New module mbspcasecmp.
47694         * modules/mbspcasecmp: New file.
47695         * lib/mbspcasecmp.c: New file.
47696         * lib/string_.h (strncasecmp): Change warning message.
47697         (mbspcasecmp): New declaration.
47698         * m4/mbspcasecmp.m4: New file.
47699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47700         GNULIB_MBSPCASECMP.
47701         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47702         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47703
47704 2007-02-14  Bruno Haible  <bruno@clisp.org>
47705
47706         * modules/mbsncasecmp-tests: New file.
47707         * tests/test-mbsncasecmp.sh: New file.
47708         * tests/test-mbsncasecmp.c: New file.
47709
47710         New module mbsncasecmp.
47711         * modules/mbsncasecmp: New file.
47712         * lib/mbsncasecmp.c: New file.
47713         * lib/string_.h (mbsncasecmp): New declaration.
47714         * m4/mbsncasecmp.m4: New file.
47715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47716         GNULIB_MBSNCASECMP.
47717         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47718         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47719
47720 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47721
47722         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47723         Verify that it doesn't overlap with our flags.
47724         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47725         do not have the desired effect in multibyte locales; instead, use
47726         mbscasecmp.
47727         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47728         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47729         we don't require GNU fnmatch ourselves (if our users require it, they
47730         should do so explicitly).
47731
47732         Fix regex code so it doesn't rely on strcasecmp.
47733         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47734         Otherwise, include gnulib's langinfo.h.
47735         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47736         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47737         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47738         * modules/regex (FILES): Remove m4/codeset.m4.
47739         (Depends-on): Add localcharset.  Remove strcase.
47740
47741 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47742
47743         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47744         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47745
47746 2007-02-13  Bruno Haible  <bruno@clisp.org>
47747
47748         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47750
47751 2007-02-12  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47754         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47755         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47756         time warning rather than a link error.
47757
47758 2007-02-12  Bruno Haible  <bruno@clisp.org>
47759
47760         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47761         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47763
47764 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47765
47766         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47767         args, not 2.
47768
47769 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47770
47771         New module 'time', so that apps can include <time.h> as per
47772         POSIX and GNU instead of separate include files like time_r.h
47773         and timegm.h.  This implementation tries out a simpler approach
47774         for replacing decls in standard include files (as compared to
47775         the string module), somewhat as an experiment.
47776
47777         * config/srclist.txt: Comment out mktime.c for now.
47778         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47779         since it doesn't apply any more.  Use generic wording instead.
47780         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47781         'time'.
47782         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47783         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47784         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47785         Don't include <sys/types.h>; no longer needed since we assume C89.
47786         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47787         * lib/strftime.c: Likewise.
47788         * lib/time_r.c: Likewise.
47789         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47790         * lib/nanosleep.c: Include <time.h> first, to check interface.
47791         * lib/strptime.c: Likewise.
47792         * lib/time_r.c: Likewise.
47793         * lib/timegm.c: Likewise.
47794         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47795         needed.
47796         * lib/timegm.c: Don't include timegm.h; no longer needed.
47797         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47798         time.h now handles any problems in that area.
47799         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47800         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47801         that time.h defines struct timespec.
47802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47803         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47804         handles that.
47805         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47806         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47807         needed.  Set REPLACE_LOCALTIME.
47808         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47809         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47810         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47811         nanosleep; time_h.m4 now does that.  Don't require
47812         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47813         module handles this now.
47814         * modules/getdate (Depends-on): Remove timespec.  Add time.
47815         * modules/nanosleep (Depends-on): Likewise.
47816         * modules/stat-time (Depends-on): Likewise.
47817         * modules/nanosleep (Include): Include time.h, not timespec.h.
47818         * modules/strptime (Files): Remove lib/strptime.h.
47819         (Depends-on): Add extensions, time.
47820         (Include): Include time.h, not strptime.h.
47821         * modules/time_r (Files): Remove lib/time_r.h.
47822         (Depends-on): Add time.
47823         (Include): Include time.h, not time_r.h.
47824         * modules/timegm: Likewise.
47825         * modules/timespec (Description): Now does timespec-related decls
47826         of our own, instead of struct timespec itself.
47827         (Depends-on): Add time; remove extensions.
47828         (Maintainer): Add self.
47829         * modules/utimecmp (Depends-on): Add time; remove timespec.
47830         * modules/utimens (Depends-on): Likewise.
47831         * modules/xnanosleep (Depends-on): Likewise.
47832
47833 2007-02-11  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/c-strstr.c: Include allocsa.h.
47836         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47837         * lib/c-strcasestr.c: Include allocsa.h.
47838         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47839         * lib/strcasestr.c: Include allocsa.h.
47840         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47841         * lib/mbsstr.c: Include allocsa.h.
47842         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47843         allocsa/freesa instead of malloc/free.
47844         * lib/mbscasestr.c: Include allocsa.h.
47845         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47846         allocsa/freesa instead of malloc/free.
47847         * modules/c-strstr (Depends-on): Add allocsa.
47848         * modules/c-strcasestr (Depends-on): Likewise.
47849         * modules/strcasestr (Depends-on): Likewise.
47850         * modules/mbsstr (Depends-on): Likewise.
47851         * modules/mbscasestr (Depends-on): Likewise.
47852
47853 2007-02-11  Bruno Haible  <bruno@clisp.org>
47854
47855         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47856
47857         * modules/mbsspn-tests: New file.
47858         * tests/test-mbsspn.sh: New file.
47859         * tests/test-mbsspn.c: New file.
47860
47861 2007-02-11  Bruno Haible  <bruno@clisp.org>
47862
47863         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47864
47865         * modules/mbspbrk-tests: New file.
47866         * tests/test-mbspbrk.sh: New file.
47867         * tests/test-mbspbrk.c: New file.
47868
47869 2007-02-11  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47872         unneeded cast.
47873
47874         * modules/mbscspn-tests: New file.
47875         * tests/test-mbscspn.sh: New file.
47876         * tests/test-mbscspn.c: New file.
47877
47878 2007-02-11  Bruno Haible  <bruno@clisp.org>
47879
47880         * modules/mbscasecmp-tests: New file.
47881         * tests/test-mbscasecmp.sh: New file.
47882         * tests/test-mbscasecmp.c: New file.
47883
47884 2007-02-11  Bruno Haible  <bruno@clisp.org>
47885
47886         Ensure O(n) worst-case complexity of mbscasestr.
47887         * lib/mbscasestr.c: Include stdbool.h.
47888         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47889         functions.
47890         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47891         the bookkeeping indicates that it's worth it.
47892         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47893
47894         * modules/mbscasestr-tests: New file.
47895         * tests/test-mbscasestr1.c: New file.
47896         * tests/test-mbscasestr2.sh: New file.
47897         * tests/test-mbscasestr2.c: New file.
47898         * tests/test-mbscasestr3.sh: New file.
47899         * tests/test-mbscasestr3.c: New file.
47900         * tests/test-mbscasestr4.sh: New file.
47901         * tests/test-mbscasestr4.c: New file.
47902         * m4/locale-tr.m4: New file.
47903
47904 2007-02-11  Bruno Haible  <bruno@clisp.org>
47905
47906         Ensure O(n) worst-case complexity of mbsstr.
47907         * lib/mbsstr.c: Include stdbool.h.
47908         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47909         functions.
47910         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47911         bookkeeping indicates that it's worth it.
47912         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47913
47914         * modules/mbsstr-tests: New file.
47915         * tests/test-mbsstr1.c: New file.
47916         * tests/test-mbsstr2.sh: New file.
47917         * tests/test-mbsstr2.c: New file.
47918         * tests/test-mbsstr3.sh: New file.
47919         * tests/test-mbsstr3.c: New file.
47920         * m4/locale-fr.m4: New file.
47921
47922 2007-02-11  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/mbsrchr.c (mbsrchr): Fix bug.
47925
47926         * modules/mbsrchr-tests: New file.
47927         * tests/test-mbsrchr.sh: New file.
47928         * tests/test-mbsrchr.c: New file.
47929
47930 2007-02-11  Bruno Haible  <bruno@clisp.org>
47931
47932         * lib/mbschr.c (mbschr): Fix bug.
47933
47934         * modules/mbschr-tests: New file.
47935         * tests/test-mbschr.sh: New file.
47936         * tests/test-mbschr.c: New file.
47937         * m4/locale-zh.m4: New file.
47938
47939 2007-02-11  Bruno Haible  <bruno@clisp.org>
47940
47941         Support for copying multibyte string iterators.
47942         * lib/mbiter.h: Include <string.h>.
47943         (mbiter_multi_copy): New function.
47944         (mbi_copy): New macro.
47945         * lib/mbuiter.h: Include <string.h>.
47946         (mbuiter_multi_copy): New function.
47947         (mbui_copy): New macro.
47948
47949 2007-02-11  Bruno Haible  <bruno@clisp.org>
47950
47951         New module mbslen.
47952         * modules/mbslen: New file.
47953         * lib/mbslen.c: New file.
47954         * lib/string_.h (mbslen): New declaration.
47955         * m4/mbslen.m4: New file.
47956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47957         GNULIB_MBSLEN.
47958         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47959         * MODULES.html.sh (Internationalization functions): Add mbslen.
47960
47961 2007-02-11  Bruno Haible  <bruno@clisp.org>
47962
47963         Ensure O(n) worst-case complexity of strcasestr substitute.
47964         * lib/strcasestr.c: Include stdbool.h.
47965         (knuth_morris_pratt): New function.
47966         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47967         bookkeeping indicates that it's worth it.
47968         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47969
47970         * modules/strcasestr-tests: New file.
47971         * tests/test-strcasestr.c: New file.
47972
47973 2007-02-11  Bruno Haible  <bruno@clisp.org>
47974
47975         Ensure O(n) worst-case complexity of c_strcasestr.
47976         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47977         (knuth_morris_pratt): New function.
47978         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47979         the bookkeeping indicates that it's worth it.
47980         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47981
47982         * modules/c-strcasestr-tests: New file.
47983         * tests/test-c-strcasestr.c: New file.
47984
47985 2007-02-11  Bruno Haible  <bruno@clisp.org>
47986
47987         Ensure O(n) worst-case complexity of c_strstr.
47988         * lib/c-strstr.c: Include stdbool.h, string.h.
47989         (knuth_morris_pratt): New function.
47990         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47991         bookkeeping indicates that it's worth it.
47992         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47993
47994         * lib/c-strstr.c: Complete rewrite for maintainability.
47995
47996         * modules/c-strstr-tests: New file.
47997         * tests/test-c-strstr.c: New file.
47998
47999 2007-02-11  Bruno Haible  <bruno@clisp.org>
48000
48001         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48002         5.2.1 and earlier, whereby \055 was treated just like the range
48003         delimiter '-'.
48004         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48005
48006 2007-02-08  Bruno Haible  <bruno@clisp.org>
48007
48008         * modules/regex (Depends-on): Add stdbool.
48009         Reported by Dalibor Topic <robilad@kaffe.org>.
48010
48011 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48012
48013         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48014         Prefer returning from main to exiting from it.
48015         Remove unnecessary parens after sizeof.
48016
48017 2007-02-05  Bruno Haible  <bruno@clisp.org>
48018
48019         New module mbssep.
48020         * modules/mbssep: New file.
48021         * lib/mbssep.c: New file.
48022         * lib/string_.h (strsep): Add a conditional link warning.
48023         (mbssep): New declaration.
48024         * m4/mbssep.m4: New file.
48025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48026         GNULIB_MBSSEP.
48027         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48028         * MODULES.html.sh (Internationalization functions): Add mbssep.
48029
48030 2007-02-05  Bruno Haible  <bruno@clisp.org>
48031
48032         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48033         Optimize search in case of 1 delimiter.
48034
48035 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48036
48037         * lib/acl.h: Include sys/types.h before sys/acl.h.
48038
48039 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48040
48041         Merge upstream fix for glibc bugzilla #3957:
48042
48043         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48044
48045         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48046         bit for RE_HAT_LISTS_NOT_NEWLINE.
48047         (build_charclass_op): Remove bogus comment.
48048
48049 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48050
48051         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48052
48053 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48054
48055         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48056         * lib/memmem.c [!defined _LIBC]: Include config.h.
48057
48058 2007-02-04  Bruno Haible  <bruno@clisp.org>
48059
48060         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48061         warning message.
48062
48063 2007-02-04  Bruno Haible  <bruno@clisp.org>
48064
48065         New module mbstok_r.
48066         * modules/mbstok_r: New file.
48067         * lib/mbstok_r.c: New file.
48068         * lib/string_.h (strtok_r): Change argument names to match the
48069         comments. Add a conditional link warning.
48070         (mbstok_r): New declaration.
48071         * m4/mbstok_r.m4: New file.
48072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48073         GNULIB_MBSTOK_R.
48074         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48075         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48076
48077 2007-02-04  Bruno Haible  <bruno@clisp.org>
48078
48079         New module mbsspn.
48080         * modules/mbsspn: New file.
48081         * lib/mbsspn.c: New file.
48082         * lib/string_.h (strspn): Add a conditional link warning.
48083         (mbsspn): New declaration.
48084         * m4/mbsspn.m4: New file.
48085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48086         GNULIB_MBSSPN.
48087         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48088         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48089
48090 2007-02-04  Bruno Haible  <bruno@clisp.org>
48091
48092         New module mbspbrk.
48093         * modules/mbspbrk: New file.
48094         * lib/mbspbrk.c: New file.
48095         * lib/string_.h (strpbrk): Add a conditional link warning.
48096         (mbspbrk): New declaration.
48097         * m4/mbspbrk.m4: New file.
48098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48099         GNULIB_MBSPBRK.
48100         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48101         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48102
48103 2007-02-04  Bruno Haible  <bruno@clisp.org>
48104
48105         New module mbscspn.
48106         * modules/mbscspn: New file.
48107         * lib/mbscspn.c: New file.
48108         * lib/string_.h (strcspn): Add a conditional link warning.
48109         (mbscspn): New declaration.
48110         * m4/mbscspn.m4: New file.
48111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48112         GNULIB_MBSCSPN.
48113         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48114         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48115
48116 2007-02-04  Bruno Haible  <bruno@clisp.org>
48117
48118         New module mbscasestr, reduced goal of strcasestr.
48119         * modules/mbscasestr: New file.
48120         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48121         (mbscasestr): Renamed from strcasestr.
48122         * lib/strcasestr.c: Don't include mbuiter.h.
48123         (strcasestr): Remove support for multibyte locales.
48124         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48125         Change the conditional link warning.
48126         (mbscasestr): New declaration.
48127         * m4/mbscasestr.m4: New file.
48128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48129         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48130         REPLACE_STRCASESTR.
48131         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48133         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48134         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48135         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48136         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48137         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48138         (Depends-on): Remove mbuiter.
48139         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48140
48141 2007-02-04  Bruno Haible  <bruno@clisp.org>
48142
48143         Simplify handling of strncasecmp.
48144         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48145         the conditional link warning.
48146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48147         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48148         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48149         * modules/strcase (configure.ac): Don't invoke
48150         gl_STRING_MODULE_INDICATOR.
48151         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48152
48153 2007-02-04  Bruno Haible  <bruno@clisp.org>
48154
48155         New module mbscasecmp, reduced goal of strcasecmp.
48156         * modules/mbscasecmp: New file.
48157         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48158         (mbscasecmp): Renamed from strcasecmp.
48159         * lib/strcasecmp.c: Don't include mbuiter.h.
48160         (strcasecmp): Remove support for multibyte locales.
48161         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48162         Change the conditional link warning.
48163         (mbscasecmp): New declaration.
48164         * m4/mbscasecmp.m4: New file.
48165         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48166         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48167         REPLACE_STRCASECMP.
48168         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48169         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48170         GNULIB_MBSCASECMP.
48171         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48172         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48173         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48174         (Depends-on): Remove mbuiter.
48175         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48176
48177 2007-02-04  Bruno Haible  <bruno@clisp.org>
48178
48179         New module mbsstr. Remove module strstr.
48180         * modules/mbsstr: New file.
48181         * modules/strstr: Remove file.
48182         * lib/mbsstr.c: Renamed from lib/strstr.c.
48183         (mbsstr): Renamed from strstr.
48184         * lib/string_.h (strstr): Remove declaration. Change the conditional
48185         link warning.
48186         (mbsstr): New declaration.
48187         * m4/mbsstr.m4: New file.
48188         * m4/strstr.m4: Remove file.
48189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48190         REPLACE_STRSTR.
48191         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48192         Don't initialize GNULIB_STRSTR.
48193         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48194         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48195         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48196         (Support for systems lacking ANSI C 89): Remove strstr.
48197
48198 2007-02-04  Bruno Haible  <bruno@clisp.org>
48199
48200         New module mbsrchr.
48201         * modules/mbsrchr: New file.
48202         * lib/mbsrchr.c: New file.
48203         * lib/string_.h (strrchr): Add a conditional link warning.
48204         (mbsrchr): New declaration.
48205         * m4/mbsrchr.m4: New file.
48206         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48207         GNULIB_MBSRCHR.
48208         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48209         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48210
48211 2007-02-04  Bruno Haible  <bruno@clisp.org>
48212
48213         New module mbschr.
48214         * modules/mbschr: New file.
48215         * lib/mbschr.c: New file.
48216         * lib/string_.h (strchr): Add a conditional link warning.
48217         (mbschr): New declaration.
48218         * m4/mbschr.m4: New file.
48219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48220         GNULIB_MBSCHR.
48221         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48222         * MODULES.html.sh (Internationalization functions): Add mbschr.
48223
48224 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48227
48228         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48229
48230 2007-02-04  Bruno Haible  <bruno@clisp.org>
48231
48232         New module description section 'configure.ac-early'.
48233         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48234         (func_get_autoconf_early_snippet): New function.
48235         (func_import, func_create_testdir): Use it. Remove special cases for
48236         modules 'extensions' and 'lock'.
48237         * modules/extensions (configure.ac-early): Require
48238         gl_USE_SYSTEM_EXTENSIONS.
48239         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48240
48241 2007-02-04  Bruno Haible  <bruno@clisp.org>
48242
48243         Make use of gcj-4.3's -fsource and -ftarget option.
48244         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48245         and if so try the options -fsource and -ftarget.
48246         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48247         source_version, ftarget_option, target_version arguments.
48248         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48249         (is_envjavac_oldgcj_14_14_usable): Renamed from
48250         is_envjavac_gcj_14_14_usable.
48251         (is_envjavac_oldgcj_14_13_usable): Renamed from
48252         is_envjavac_gcj_14_13_usable.
48253         (is_gcj_present): Update.
48254         (is_gcj_43, is_gcj43_usable): New functions.
48255         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48256         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48257         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48258         try the options -fsource and -ftarget.
48259
48260 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48261
48262         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48263         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48264         larger value.
48265
48266 2007-02-03  Jim Meyering  <jim@meyering.net>
48267
48268         Give tools a better chance to allocate space for very large buffers.
48269         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48270
48271         Make pwd and readlink work also when run with an unreadable parent dir
48272         on systems with openat support.
48273         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48274         provided getcwd function, even when we have openat support.
48275         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48276
48277 2007-02-02  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48280         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48281         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48282         portability problems if one of these functions is only used on specific
48283         platforms.
48284         Reported by Paul Eggert.
48285
48286 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48287
48288         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48289         is causing more trouble than it's curing.
48290         * lib/regex_internal.h (__mempcpy): Remove.
48291         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48292         (and make the code a tad smaller to boot).
48293         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48294
48295 2007-02-02  Jim Meyering  <jim@meyering.net>
48296
48297         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48298         section, not in the Makefile.am: one.
48299
48300 2007-02-02  Eric Blake  <ebb9@byu.net>
48301
48302         * lib/strchrnul.c: Always include config.h first.
48303
48304         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48305         gnulib strstr is not necessary here.
48306
48307 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48308
48309         * m4/socklen.m4: Fix typo.
48310
48311 2007-02-02  Eric Blake  <ebb9@byu.net>
48312
48313         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48314         * modules/netinet_in (Makefile.am): Likewise.
48315
48316 2007-02-01  Bruno Haible  <bruno@clisp.org>
48317
48318         * lib/string_.h (GL_LINK_WARNING): New macro.
48319         (strcasecmp, strstr, strcasestr): If provided by the system,
48320         conditionally define as a macro that leads to a warning instead of to
48321         an error.
48322         (strncasecmp): Conditionally define as a macro that leads to a warning.
48323
48324 2007-02-01  Karl Berry  <karl@gnu.org>
48325
48326         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48327
48328 2007-02-01  Bruno Haible  <bruno@clisp.org>
48329
48330         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48331         renamings.
48332
48333 2007-02-01  Eric Blake  <ebb9@byu.net>
48334
48335         * modules/regex (Depends-on): Revert dependence on mempcpy.
48336         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48337         module's definition of mempcpy.
48338         Reported by Paul Eggert.
48339
48340 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48341
48342         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48343         the symbol XYZ before redefining it.  This fixes a problem with
48344         programs that don't use XYZ, when compiled on systems that define
48345         XYZ to something else.
48346
48347 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48350         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48351         writeable to group or other and (2) is intended to have a special
48352         mode bit that is set or cleared.  In such a case, the directory
48353         should be neither group- nor other-writeable until the special
48354         mode bits are right.
48355
48356 2007-01-31  Eric Blake  <ebb9@byu.net>
48357
48358         * modules/mountlist (Depends-on): Add strstr.
48359
48360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48361         bug.
48362         * modules/string (Makefile.am): Remove redundant replacement.
48363         * modules/regex (Depends-on): Add mempcpy.
48364
48365 2007-01-31  Bruno Haible  <bruno@clisp.org>
48366
48367         New module description field 'Link'.
48368         * gnulib-tool (func_usage): Document --extract-link-directive.
48369         (sed_extract_prog): Recognize 'Link' directive.
48370         (func_get_link_directive): New function.
48371         (func_import): Show summary of link directives.
48372         Handle --extract-link-directive option.
48373         * modules/acl (Link): New section.
48374         * modules/clock-time (Link): New section.
48375         * modules/euidaccess (Link): New section.
48376         * modules/gettext (Link): New section.
48377         * modules/iconv (Link): New section.
48378         * modules/lock (Link): New section.
48379         * modules/nanosleep (Link): New section.
48380         * modules/readline (Link): New section.
48381
48382 2007-01-27  Bruno Haible  <bruno@clisp.org>
48383
48384         Enforce the use of gnulib modules for unportable <string.h> functions.
48385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48386         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48387         (gl_HEADER_STRING_H_BODY): Require it.
48388         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48389         the symbol XYZ to one that gives a link error.
48390         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48391         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48392         * modules/mempcpy (configure.ac): Likewise.
48393         * modules/memrchr (configure.ac): Likewise.
48394         * modules/stpcpy (configure.ac): Likewise.
48395         * modules/stpncpy (configure.ac): Likewise.
48396         * modules/strcase (configure.ac): Likewise.
48397         * modules/strcasestr (configure.ac): Likewise.
48398         * modules/strchrnul (configure.ac): Likewise.
48399         * modules/strdup (configure.ac): Likewise.
48400         * modules/strndup (configure.ac): Likewise.
48401         * modules/strnlen (configure.ac): Likewise.
48402         * modules/strpbrk (configure.ac): Likewise.
48403         * modules/strsep (configure.ac): Likewise.
48404         * modules/strstr (configure.ac): Likewise.
48405         * modules/strtok_r (configure.ac): Likewise.
48406
48407 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48408
48409         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48410
48411 2007-01-30  Jim Meyering  <jim@meyering.net>
48412
48413         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48414
48415 2007-01-29  Bruno Haible  <bruno@clisp.org>
48416
48417         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48418         * lib/execute.c: Likewise.
48419         * lib/pipe.c: Likewise.
48420         * lib/printf-args.h: Likewise.
48421         * lib/printf-args.c: Likewise.
48422         * lib/printf-parse.c: Likewise.
48423         * lib/vasnprintf.c: Likewise.
48424
48425 2007-01-29  Eric Blake  <ebb9@byu.net>
48426
48427         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48428         declaration.
48429
48430 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48431
48432         * lib/strptime.h (strptime): Use 'restrict' for args where
48433         POSIX requires this.
48434         * lib/strptime.c (strptime): Likewise.
48435         Change license notice from LGPL to GPL, since gnulib-tool will
48436         change this as needed.
48437         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48438         defined.
48439         Include "strptime.h" first, to check interface.
48440         Do not #undef _LIBC and _NL_CURRENT.
48441         Do not include <stdlib.h>; no longer needed.
48442         Include "time_r.h" and declare ptime_locale_status
48443         only if _LIBC is not defined.
48444         (__P): Remove unused macro.
48445         (match_string): Bring back glibc version, but use it only if _LIBC
48446         is defined.
48447         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48448         Remove unnecessary assertion and abort() call.
48449         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48450         * m4/strptime.m4: Fix serial number comment.
48451         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48452         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48453         (Depends-on): Add time_r.
48454
48455 2007-01-29  Bruno Haible  <bruno@clisp.org>
48456
48457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48458         strptime.
48459         * modules/strptime (Depends-on): Add stdbool.
48460         * lib/strptime.h: Include <time.h> always. Add comments.
48461
48462 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48463
48464         * modules/strptime: New file.
48465         * lib/strptime.h: New file.
48466         * lib/strptime.c: New file.
48467         * m4/strptime.m4: New file.
48468
48469 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48470
48471         * MODULES.html.sh: New module mpsort.
48472         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48473
48474         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48475         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48477         All uses changed.
48478         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48479         All uses changed.
48480         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48481         to _Restrict_.
48482         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48483         the parameter matches the prototype.
48484
48485 2007-01-28  Jim Meyering  <jim@meyering.net>
48486
48487         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48488         sys/time.h here, reverting that part of the previous patch:
48489         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48490
48491 2007-01-28  Bruno Haible  <bruno@clisp.org>
48492
48493         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48494         value of $(SYS_TIME_H).
48495         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48496         remove it conditionally, too. [added by Jim Meyering]
48497         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48499         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48500         GETTIMEOFDAY_REPLACEMENT to 1.
48501
48502 2007-01-28  Bruno Haible  <bruno@clisp.org>
48503
48504         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48505         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48507         Set UNISTD_H instead of UNISTD_H2.
48508         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48509
48510 2007-01-28  Bruno Haible  <bruno@clisp.org>
48511
48512         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48513         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48514
48515 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48516
48517         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48518         (func_create_testdir): Ensure C locale for `grep' and `tr'
48519         character ranges.
48520         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48521         ACLOCAL_AMFLAGS parsing state machine.
48522
48523 2007-01-27  Bruno Haible  <bruno@clisp.org>
48524
48525         * modules/unistr/base: Update.
48526
48527 2007-01-27  Bruno Haible  <bruno@clisp.org>
48528
48529         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48530         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48531         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48532         modules/unistr/u32-mbtouc.
48533         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48534         * lib/unistr.h: Update.
48535         * lib/linebreak.c: Update.
48536         * modules/unistr/u32-mbtouc: Renamed from
48537         modules/unistr/u32-mbtouc-safe.
48538         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48539         * lib/unistr.h: Update.
48540         * lib/unistr/u32-to-u8.c: Update.
48541         * lib/unistr/u32-to-u16.c: Update.
48542
48543 2007-01-27  Bruno Haible  <bruno@clisp.org>
48544
48545         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48546         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48547         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48548         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48549         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48550         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48551         modules/unistr/u16-mbtouc.
48552         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48553         * lib/unistr.h: Update.
48554         * lib/linebreak.c: Update.
48555         * modules/linebreak: Update.
48556         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48557         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48558         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48559         * modules/unistr/u16-mbtouc: Renamed from
48560         modules/unistr/u16-mbtouc-safe.
48561         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48562         * lib/unistr.h: Update.
48563         * lib/unistr/u16-to-u8.c: Update.
48564         * modules/unistr/u16-to-u8: Update.
48565         * lib/unistr/u16-to-u32.c: Update.
48566         * modules/unistr/u16-to-u32: Update.
48567
48568 2007-01-27  Bruno Haible  <bruno@clisp.org>
48569
48570         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48571         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48572         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48573         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48574         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48575         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48576         modules/unistr/u8-mbtouc.
48577         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48578         * lib/unistr.h: Update.
48579         * lib/striconveh.c: Update.
48580         * modules/striconveh: Update.
48581         * lib/linebreak.c: Update.
48582         * modules/linebreak: Update.
48583         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48584         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48585         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48586         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48587         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48588         * lib/unistr.h: Update.
48589         * lib/striconveh.c: Update.
48590         * modules/striconveh: Update.
48591         * lib/unistr/u8-to-u16.c: Update.
48592         * modules/unistr/u8-to-u16: Update.
48593         * lib/unistr/u8-to-u32.c: Update.
48594         * modules/unistr/u8-to-u32: Update.
48595
48596 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48597
48598         Sync from Libtool.
48599         * lib/argz.c: Do not include strings.h nor memory.h, include
48600         string.h unconditionally.  Patch by Simon Josefsson.
48601
48602 2007-01-27  Bruno Haible  <bruno@clisp.org>
48603
48604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48605         from gl_HEADER_STRING_H_BODY.
48606         (gl_HEADER_STRING_H_BODY): Require it.
48607         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48608         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48610         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48611         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48612         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48614         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48615         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48616         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48617         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48618         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48619         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48620         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48621         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48622
48623 2007-01-27  Bruno Haible  <bruno@clisp.org>
48624
48625         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48626         check_PROGRAMS into noinst_PROGRAMS.
48627         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48628         check_PROGRAMS in this case.
48629         (func_import): Set for_test to false.
48630         (func_create_testdir): Set for_test to true.
48631
48632 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48633             Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48636         (Depends-on): Add string.
48637         (Includes): Use <string.h> instead of strcasestr.h.
48638         * modules/string (Makefile.am): Also substitute the value of
48639         REPLACE_STRCASESTR.
48640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48641         assume strcasestr is declared in <string.h> not <strings.h>. Also
48642         set REPLACE_STRCASESTR.
48643         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48644         REPLACE_STRCASESTR.
48645         * lib/strcasestr.h: Remove file.
48646         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48647         * lib/string_.h (strcasestr): New declaration.
48648
48649 2007-01-27  Bruno Haible  <bruno@clisp.org>
48650
48651         * lib/string_.h: Use 'extern'.
48652
48653 2007-01-27  Jim Meyering  <jim@meyering.net>
48654
48655         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48656         of set-but-not-used local, "q".
48657
48658         * lib/mempcpy.c: Include <config.h> before <string.h>.
48659         This fixes a compilation error on HP-UX, due to the system's
48660         "restrict"-using mempcpy prototype.
48661
48662 2007-01-26  Bruno Haible  <bruno@clisp.org>
48663
48664         Small optimization.
48665         * lib/javacomp.c: Include c-strstr.h.
48666          (is_envjavac_gcj): Use c_strstr instead of strstr.
48667         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48668
48669 2007-01-26  Bruno Haible  <bruno@clisp.org>
48670
48671         * MODULES.html.sh (Unicode string functions): Add the new modules.
48672
48673         * modules/uniconv/u32-strconv-to-locale: New file.
48674         * lib/uniconv/u32-strconv-to-locale.c: New file.
48675
48676         * modules/uniconv/u16-strconv-to-locale: New file.
48677         * lib/uniconv/u16-strconv-to-locale.c: New file.
48678
48679         * modules/uniconv/u8-strconv-to-locale: New file.
48680         * lib/uniconv/u8-strconv-to-locale.c: New file.
48681
48682         * modules/uniconv/u32-strconv-from-locale: New file.
48683         * lib/uniconv/u32-strconv-from-locale.c: New file.
48684
48685         * modules/uniconv/u16-strconv-from-locale: New file.
48686         * lib/uniconv/u16-strconv-from-locale.c: New file.
48687
48688         * modules/uniconv/u8-strconv-from-locale: New file.
48689         * lib/uniconv/u8-strconv-from-locale.c: New file.
48690
48691         * modules/uniconv/u32-strconv-to-enc: New file.
48692         * lib/uniconv/u32-strconv-to-enc.c: New file.
48693         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48694         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48695
48696         * modules/uniconv/u16-strconv-to-enc: New file.
48697         * lib/uniconv/u16-strconv-to-enc.c: New file.
48698         * lib/uniconv/u-strconv-to-enc.h: New file.
48699         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48700         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48701
48702         * modules/uniconv/u8-strconv-to-enc: New file.
48703         * lib/uniconv/u8-strconv-to-enc.c: New file.
48704         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48705         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48706
48707         * modules/uniconv/u32-strconv-from-enc: New file.
48708         * lib/uniconv/u32-strconv-from-enc.c: New file.
48709         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48710         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48711
48712         * modules/uniconv/u16-strconv-from-enc: New file.
48713         * lib/uniconv/u16-strconv-from-enc.c: New file.
48714         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48715         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48716
48717         * modules/uniconv/u8-strconv-from-enc: New file.
48718         * lib/uniconv/u8-strconv-from-enc.c: New file.
48719         * lib/uniconv/u-strconv-from-enc.h: New file.
48720         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48721         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48722
48723         * modules/uniconv/u32-conv-from-enc: New file.
48724         * lib/uniconv/u32-conv-from-enc.c: New file.
48725         * modules/uniconv/u32-conv-from-enc-tests: New file.
48726         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48727
48728         * modules/uniconv/u16-conv-from-enc: New file.
48729         * lib/uniconv/u16-conv-from-enc.c: New file.
48730         * lib/uniconv/u-conv-from-enc.h: New file.
48731         * modules/uniconv/u16-conv-from-enc-tests: New file.
48732         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48733
48734         * modules/uniconv/u8-conv-from-enc: New file.
48735         * lib/uniconv/u8-conv-from-enc.c: New file.
48736         * modules/uniconv/u8-conv-from-enc-tests: New file.
48737         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48738
48739         * modules/uniconv/base: New file.
48740         * lib/uniconv.h: New file.
48741
48742 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48743
48744         * doc/gnulib-tool.texi (Initial import): Update to match current
48745         behavior with strdup module.
48746         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48747         * lib/memmem.h: Remove; all uses removed.  This is now done
48748         by <string.h>.
48749         * lib/mempcpy.h: Likewise.
48750         * lib/memrchr.h: Likewise.
48751         * lib/stpcpy.h: Likewise.
48752         * lib/stpncpy.h: Likewise.
48753         * lib/strcase.h: Likewise.
48754         * lib/strchrnul.h: Likewise.
48755         * lib/strdup.h: Likewise.
48756         * lib/strndup.h: Likewise.
48757         * lib/strnlen.h: Likewise.
48758         * lib/strpbrk.h: Likewise.
48759         * lib/strsep.h: Likewise.
48760         * lib/strstr.h: Likewise.
48761         * lib/strtok_r.h: Likewise.
48762         * lib/string_.h: New file.
48763         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48764         Rely on <string.h> instead.
48765         * lib/canon-host.c: Likewise.
48766         * lib/chdir-long.c: Likewise.
48767         * lib/concatpath.c: Likewise.
48768         * lib/exclude.c: Likewise.
48769         * lib/fchdir.c: Likewise.
48770         * lib/getaddrinfo.c: Likewise.
48771         * lib/getcwd.c: Likewise.
48772         * lib/getsubopt.c: Likewise.
48773         * lib/glob.c: Likewise.
48774         * lib/hard-locale.c: Likewise.
48775         * lib/iconvme.c: Likewise.
48776         * lib/javacomp.c: Likewise.
48777         * lib/mempcpy.c: Likewise.
48778         * lib/memrchr.c: Likewise.
48779         * lib/regex_internal.h: Likewise.
48780         * lib/stpncpy.c: Likewise.
48781         * lib/strcasecmp.c: Likewise.
48782         * lib/strchrnul.c: Likewise.
48783         * lib/strdup.c: Likewise.
48784         * lib/striconv.c: Likewise.
48785         * lib/striconveh.c: Likewise.
48786         * lib/striconveha.c: Likewise.
48787         * lib/strncasecmp.c: Likewise.
48788         * lib/strndup.c: Likewise.
48789         * lib/strnlen.c: Likewise.
48790         * lib/strsep.c: Likewise.
48791         * lib/strstr.c: Likewise.
48792         * lib/strtok_r.c: Likewise.
48793         * lib/userspec.c: Likewise.
48794         * lib/w32spawn.h: Likewise.
48795         * lib/xstrndup.c: Likewise.
48796         * lib/mountlist.c (strstr): Remove decl.
48797         * m4/string_h.m4: New file.
48798         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48799         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48800         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48801         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48802         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48803         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48804         Set REPLACE_STRCASECMP if necessary.
48805         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48806         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48807         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48809         HAVE_DECL_STRDUP if necessary.
48810         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48811         since gl_FUNC_STRNDUP does that now.
48812         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48813         Check for decl here...
48814         (gl_PREREQ_STRNLEN): ... not here.
48815         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48816         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48817         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48819         necessary.
48820         * modules/string: New file.
48821         * modules/memmem (Files): Remove special-purpose include file.
48822         (Depends-on): Add string.
48823         (Include): Include <string.h>, not the removed file.
48824         * modules/mempcpy: Likewise.
48825         * modules/memrchr: Likewise.
48826         * modules/stpcpy: Likewise.
48827         * modules/stpncpy: Likewise.
48828         * modules/strcase: Likewise.
48829         * modules/strchrnul: Likewise.
48830         * modules/strdup: Likewise.
48831         * modules/strndup: Likewise.
48832         * modules/strnlen: Likewise.
48833         * modules/strpbrk: Likewise.
48834         * modules/strsep: Likewise.
48835         * modules/strstr: Likewise.
48836         * modules/strtok_r: Likewise.
48837         * tests/test-dirname.c: Don't include "strdup.h", since
48838         <string.h> now suffices.
48839         * tests/test-memmem.c: Don't include "memmem.h", since
48840         <string.h> now suffices.
48841
48842 2007-01-25  Bruno Haible  <bruno@clisp.org>
48843
48844         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48845         *resultp is 0.
48846
48847         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48848         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48849         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48850         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48851
48852         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48853         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48854         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48855         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48856         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48857         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48858
48859 2007-01-24  Bruno Haible  <bruno@clisp.org>
48860
48861         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48863         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48864         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48865         gl_FUNC_FTS_CORE.
48866         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48867         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48868         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48869         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48870         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48871         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48872         gl_FUNC_FCHOWNAT.
48873         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48874         gl_FUNC_STRFTIME.
48875         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48876         Reported by Ralf Wildenhues.
48877
48878 2007-01-24  Bruno Haible  <bruno@clisp.org>
48879
48880         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48881         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48882         gl_GETADDRINFO.
48883         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48884         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48885         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48886
48887 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48888
48889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48890         Don't use 'exit'; just return from 'main'.
48891         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48892
48893         * lib/fnmatch_.h: Readjust white space and comments to match
48894         glibc, to avoid spurious diffs.
48895
48896 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48897
48898         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48899         2004-12-01 change by Jakub Jelinek, since this code won't compile
48900         if !LIBC.  Problem reported by Bob Proulx.
48901
48902 2007-01-23  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/striconveh.c: Include c-strcaseeq.h.
48905         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48906         * modules/striconveh (Depends-on): Add c-strcaseeq.
48907
48908 2007-01-23  Bruno Haible  <bruno@clisp.org>
48909
48910         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48911
48912         * modules/c-strcaseeq: New file.
48913         * lib/c-strcaseeq.h: New file.
48914
48915         * modules/streq: New file.
48916         * lib/streq.h: New file.
48917
48918 2007-01-23  Bruno Haible  <bruno@clisp.org>
48919
48920         * modules/striconveha-tests: New file.
48921         * tests/test-striconveha.c: New file.
48922
48923         * lib/striconveha.h: Include <stdbool.h>.
48924         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48925         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48926         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48927         (mem_iconveha): New function.
48928         (str_iconveha_notranslit): Renamed from str_iconveha.
48929         (str_iconveha): New function.
48930         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48931         c-strcase.
48932
48933 2007-01-23  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48936         encodings without forgiving before trying any encoding with handler.
48937         (str_iconveha): Try all encodings without forgiving before trying any
48938         encoding with handler.
48939
48940 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48941
48942         Import the following changes from libc.
48943
48944         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48945
48946         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48947
48948         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48949
48950         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48951         normal_bracket label.
48952
48953         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48954
48955         [BZ #361]
48956         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48957         to normal_bracket after fetching the next character.
48958
48959 2007-01-22  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48962         argument.
48963         * lib/striconveh.c (iconv_carefully_1): New function.
48964         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48965         argument.
48966         (str_cd_iconveh): Update.
48967         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48968         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48969         * tests/test-striconveh.c (MAGIC): New macro.
48970         (new_offsets): New function.
48971         (main): Test call with and without offsets.
48972
48973 2007-01-22  Bruno Haible  <bruno@clisp.org>
48974
48975         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48976         * modules/sys_select (Makefile.am): Likewise.
48977         * modules/sys_socket (Makefile.am): Likewise.
48978         * modules/sys_time (Makefile.am): Likewise.
48979
48980 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48981
48982         * modules/gettimeofday (License): Change from GPL to LGPL, since
48983         gettimeofday is a library function.
48984
48985 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48986
48987         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48988
48989 2007-01-21  Bruno Haible  <bruno@clisp.org>
48990
48991         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48992
48993 2007-01-21  Bruno Haible  <bruno@clisp.org>
48994
48995         * modules/striconveha: New file.
48996         * lib/striconveha.h: New file.
48997         * lib/striconveha.c: New file.
48998         * MODULES.html.sh (Internationalization functions): Add striconveha.
48999         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49000         string.
49001         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49002
49003 2007-01-21  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49006         * lib/striconveh.c (str_iconveh): Likewise.
49007
49008 2007-01-21  Bruno Haible  <bruno@clisp.org>
49009
49010         * lib/striconveh.h (mem_iconveh): New declaration.
49011         * lib/striconveh.c (mem_iconveh): New function.
49012         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49013
49014 2007-01-21  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49017
49018         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49019         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49020         original result buffer.
49021         (str_cd_iconveh): Update.
49022         * tests/test-striconveh.c (main): Update.
49023
49024         * lib/striconv.h (mem_cd_iconv): Change specification.
49025         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49026         result buffer.
49027         (str_cd_iconv): Update.
49028         * tests/test-striconv.c (main): Update.
49029
49030 2007-01-21  Bruno Haible  <bruno@clisp.org>
49031
49032         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49033
49034 2007-01-20  Jim Meyering  <jim@meyering.net>
49035
49036         * lib/userspec.c (parse_with_separator): If a user or group string
49037         starts with "+", skip the corresponding name-to-ID look-up, since
49038         such a look-up must fail: user and group names may not include "+".
49039
49040 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49041
49042         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49043         since we now assume the sys_time module.
49044         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49045         check for sys/time.h; no longer needed.
49046         * modules/poll (Depends-on): Depend on sys_time.
49047
49048 2007-01-18  Bruno Haible  <bruno@clisp.org>
49049
49050         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49051         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49052
49053         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49054         gettimeofday.
49055
49056         * tests/test-gettimeofday.c: Include <time.h>.
49057         (dummy): Remove variable.
49058
49059         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49060         gl_HEADER_SYS_TIME_H.
49061         (gl_HEADER_SYS_TIME_H): New macro.
49062
49063         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49064         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49065         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49066         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49067         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49068         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49069         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49070         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49071         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49072         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49073         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49074
49075         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49076         last change; it caused a compilation error when cross-compiling to
49077         Cygwin.
49078
49079 2007-01-18  Jim Meyering  <jim@meyering.net>
49080
49081         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49082         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49083         than the race-prone "test -d sys || mkdir sys".
49084         (configure.ac): Use AC_PROG_MKDIR_P.
49085         * modules/sys_select: Likewise.
49086         * modules/sys_socket: Likewise.
49087         * modules/sys_time: Likewise.
49088
49089 2007-01-18  Eric Blake  <ebb9@byu.net>
49090
49091         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49092         replace gettimeofday.
49093         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49094         name, to avoid infinite recursion.
49095
49096 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49099         module sys_time.
49100         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49101         assume timespec.h defines struct timeval.
49102         * lib/settime.c: Likewise.
49103         * lib/utimens.c: Likewise.
49104         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49105         since we now assume the gettimeofday module.
49106         * lib/tempname.c (__gen_tempname): Likewise.
49107         * lib/gettimeofday.h: Remove.
49108         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49109         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49110         Include <time.h>, for 'time()'.
49111         (localtime_buffer_addr): Also use this workaround if
49112         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49113         to simplify the uses.  All uses changed.
49114         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49115         that #undef is inside {}, and 'const' follows type name consistently.
49116         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49117         (gettimeofday): Do not use the maximum possible value for
49118         tv->tv_usec, since that might break usages other than ls.c.
49119         Instead, we'll leave ls.c alone.  This undoes today's patch
49120         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49121         we've never observed the problem but might as well keep the
49122         canary.
49123         * lib/nanosleep.c: Include timespec.h first, for interface check.
49124         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49125         now assume the sys_time module.
49126         * lib/tempname.c: Likewise.
49127         * lib/timespec.h: Likewise.
49128         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49129         needed.
49130         * lib/strftime.c: Likewise.
49131         * lib/timespec.h: Likewise.
49132         * lib/posixtm.c: Include posixtm.h first, for interface check.
49133         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49134         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49135         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49136         * lib/sys_time_.h: New file.
49137         * lib/timespec.h (struct timespec): Use long int, not long.
49138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49139         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49140         Remove obsolescent call to AC_HEADER_TIME.
49141         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49143         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49144         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49145         Likewise.
49146         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49147         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49148         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49149         into the sys_time module.  Check for gettimeofday just once.
49150         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49151         for gettimeofday signature to just check the signature.  Merely
49152         compile it, since linking doesn't test signature.  Improve test for
49153         whether gettimeofday.o is actually needed.
49154         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49155         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49156         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49157         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49158         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49159         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49160         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49161         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49162         than worrying about sys/time.h.
49163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49164         Don't bother worrying about TIME_WITH_SYS_TIME.
49165         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49166         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49167         * m4/sys_time_h.m4: New file.
49168         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49169         Don't include sys/time.h.  Return from main rather than exiting.
49170         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49171         all uses changed.
49172         * modules/gethrxtime (Depends-on): Add sys_time.
49173         * modules/gettime (Depends-on): Likewise.
49174         * modules/gettimeofday (Depends-on): Likewise.
49175         * modules/nanosleep (Depends-on): Likewise.
49176         * modules/settime (Depends-on): Likewise.
49177         * modules/tempname (Depends-on): Likewise.
49178         * modules/utimens (Depends-on): Likewise.
49179         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49180         (Include:) Change back to <sys/time.h>.
49181         (Maintainer:) Add self.
49182         * modules/sys_time: New file.
49183         * modules/tempname (Depends-on): Add gettimeofday.
49184         * tests/test-gettimeofday.c: Include <sys/time.h>
49185         rather than gettimeofday.h.
49186
49187 2007-01-17  Bruno Haible  <bruno@clisp.org>
49188
49189         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49190         the license default to GPL.
49191         (func_create_testdir): Don't complain if a module is LGPL and its
49192         tests module depends on GPLed modules.
49193
49194 2007-01-17  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/gettimeofday.c (gettimeofday): Add code for the case
49197         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49198         maximum possible value for tv->tv_usec, rather than the minimum one.
49199
49200 2005-10-08  Martin Lambers  <marlam@marlam.de>
49201 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49202 2007-01-16  Bruno Haible  <bruno@clisp.org>
49203
49204         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49205         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49206         gl_FUNC_GETTIMEOFDAY.
49207         (Include): Add gettimeofday.h.
49208         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49209         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49210         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49211         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49212         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49213         * lib/gettimeofday.h: New file.
49214         * lib/gettimeofday.c: Include <sys/timeb.h>.
49215         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49216         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49217         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49218         fall back on time().
49219
49220         * tests/test-gettimeofday.c: New file.
49221         * modules/gettimeofday-tests: New file.
49222
49223 2007-01-16  Eric Blake  <ebb9@byu.net>
49224
49225         * modules/fnmatch (Depends-on): Depend on wchar.
49226         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49227         * m4/fnmatch.m4: Likewise.
49228         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49229         * m4/mbchar.m4: Likewise.
49230         * modules/mbswidth (Depends-on): Depend on wchar.
49231         * lib/mbswidth.c: Assume <wchar.h>.
49232         * m4/mbswidth.m4: Likewise.
49233         * modules/quotearg (Depends-on): Depend on wchar.
49234         * lib/quotearg.c: Assume <wchar.h>.
49235         * m4/quotearg.m4: Likewise.
49236         * modules/regex (Depends-on): Depend on wchar.
49237         * lib/regex_internal.h: Assume <wchar.h>.
49238         * m4/regex.m4: Likewise.
49239         * modules/stdint (Depends-on): Depend on wchar.
49240         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49241         * m4/stdint.m4: Likewise.
49242         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49243         * modules/strftime (Depends-on): Depend on wchar.
49244         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49245         * modules/strtol (Depends-on): Depend on wchar.
49246         * lib/strtol.c: Assume <wchar.h>.
49247         * modules/wcwidth (Depends-on): Depend on wchar.
49248         * lib/wcwidth.h: Assume <wchar.h>.
49249         * m4/wcwidth.m4: Likewise.
49250
49251 2007-01-16  Bruno Haible  <bruno@clisp.org>
49252
49253         * modules/csharpexec-script: New, created from...
49254         * modules/csharpexec: ... this.
49255
49256 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49257
49258         * modules/javaexec-script: New, created from...
49259         * modules/javaexec: ... this.
49260
49261 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49262
49263         * modules/poll (Dependencies): Add sys_select.
49264
49265 2007-01-15  Jim Meyering  <jim@meyering.net>
49266
49267         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49268         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49269         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49270         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49271
49272 2007-01-15  Bruno Haible  <bruno@clisp.org>
49273
49274         * modules/striconveh: New file.
49275         * lib/striconveh.h: New file.
49276         * lib/striconveh.c: New file.
49277         * MODULES.html.sh (Internationalization functions): Add striconveh.
49278
49279         * modules/striconveh-tests: New file.
49280         * tests/test-striconveh.c: New file.
49281
49282 2007-01-15  Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49285         not from GNU libiconv or GNU libc.
49286
49287 2007-01-15  Bruno Haible  <bruno@clisp.org>
49288
49289         * doc/gnulib-intro.texi (Copyright): Explain the different license
49290         terms for module descriptions, autoconf macros, tests, documentation.
49291
49292 2007-01-14  Bruno Haible  <bruno@clisp.org>
49293
49294         * modules/striconv-tests: New file.
49295         * tests/test-striconv.c: New file.
49296
49297 2007-01-14  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/iconv-tests: New file.
49300         * tests/test-iconv.c: New file.
49301
49302 2007-01-14  Bruno Haible  <bruno@clisp.org>
49303
49304         * gnulib-tool (func_get_license): For test modules, use the license of
49305         the main module.
49306
49307 2007-01-14  Bruno Haible  <bruno@clisp.org>
49308
49309         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49310         if iconv is found to exist.
49311
49312 2007-01-14  Bruno Haible  <bruno@clisp.org>
49313
49314         * modules/c-ctype-tests: New file.
49315         * tests/test-c-ctype.c: New file.
49316
49317 2007-01-14  Bruno Haible  <bruno@clisp.org>
49318
49319         * modules/binary-io-tests: New file.
49320         * tests/test-binary-io.sh: New file.
49321         * tests/test-binary-io.c: New file.
49322
49323 2007-01-14  Bruno Haible  <bruno@clisp.org>
49324
49325         * modules/array-oset-tests: New file.
49326         * tests/test-array_oset.c: New file.
49327
49328 2007-01-14  Bruno Haible  <bruno@clisp.org>
49329
49330         * modules/array-list-tests: New file.
49331         * tests/test-array_list.c: New file.
49332
49333 2007-01-14  Bruno Haible  <bruno@clisp.org>
49334
49335         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49336         and make.
49337         Reported by Simon Josefsson in
49338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49339
49340 2007-01-14  Bruno Haible  <bruno@clisp.org>
49341
49342         * modules/allocsa-tests: New file.
49343         * tests/test-allocsa.c: New file.
49344
49345 2007-01-14  Bruno Haible  <bruno@clisp.org>
49346
49347         * modules/fchdir (Depends-on): Add absolute-header.
49348         * modules/unistd (Depends-on): Likewise.
49349
49350 2006-12-30  Bruno Haible  <bruno@clisp.org>
49351
49352         * modules/fchdir: New file.
49353         * modules/unistd (Files): Add lib/unistd_.h.
49354         (Makefile.am): Generate unistd.h from unistd_.h.
49355         * lib/fchdir.c: New file.
49356         * lib/dirent_.h: New file.
49357         * lib/unistd_.h: New file.
49358         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49359         * m4/fchdir.m4: New file.
49360         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49361         (gl_HEADER_UNISTD): Invoke it.
49362         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49363         function.
49364         * lib/backupfile.c (opendir, closedir): Undefine.
49365         * lib/chown.c (open, close): Undefine.
49366         * lib/clean-temp.c (open, close): Undefine.
49367         * lib/copy-file.c (open, close): Undefine.
49368         * lib/execute.c (open, close): Undefine.
49369         * lib/fsusage.c (open, close): Undefine.
49370         * lib/gc-gnulib.c (open, close): Undefine.
49371         * lib/getcwd.c (opendir, closedir): Undefine.
49372         * lib/glob.c (opendir, closedir): Undefine.
49373         * lib/javacomp.c (open, close): Undefine.
49374         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49375         * lib/openat-proc.c (open, close): Undefine.
49376         * lib/pagealign_alloc.c (open, close): Undefine.
49377         * lib/pipe.c (open, close): Undefine.
49378         * lib/progreloc.c (open, close): Undefine.
49379         * lib/savedir.c (opendir, closedir): Undefine.
49380         * lib/utime.c (open, close): Undefine.
49381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49382
49383 2007-01-10  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49386
49387 2007-01-12  Eric Blake  <ebb9@byu.net>
49388
49389         Provide a robust <wchar.h>.  Further simplifications are now
49390         possible in other modules, but not included here.
49391         * modules/wchar: New module.
49392         * m4/wchar.m4: New file.
49393         * lib/wchar_.h: Likewise.
49394         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49395         of the new module.
49396         * MODULES.html.sh (Extended multibyte and wide character utilities):
49397         New section.
49398
49399 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49400
49401         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49402         to a reasonable default for memory allocation.
49403         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49404         file system that reports garbage st_size values for symlinks.
49405         Problem reported by Liyang Hu.
49406
49407 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49408
49409         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49410         Emacs .#* auto-save files).
49411
49412 2007-01-11  Bruno Haible  <bruno@clisp.org>
49413
49414         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49415         directory.
49416
49417 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49418
49419         Use @...@ consistently in lib/wctype_.h.
49420         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49421         on it being set to 1 or 0.
49422         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49423         go back to AC_SUBSTing it.
49424         * modules/wctype (Makefile.am): Undo previous change.
49425
49426 2007-01-10  Eric Blake  <ebb9@byu.net>
49427
49428         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49429         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49430         * modules/wctype (Makefile.am): Likewise.
49431         Reported by Chris McGuire.
49432
49433 2007-01-10  Jim Meyering  <jim@meyering.net>
49434
49435         fts.c: a small readability/maintainability improvement
49436         * lib/fts.c (fts_read): Make this code slightly more readable and
49437         maintainable by hoisting the "sp->fts_cur = p" assignments to
49438         immediately follow the statements that set P.  Derived from
49439         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49440
49441 2007-01-10  Eric Blake  <ebb9@byu.net>
49442
49443         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49444         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49446         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49447         Reported by Chris McGuire.
49448
49449 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49450
49451         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49452         in sed script.
49453
49454 2007-01-09  Bruno Haible  <bruno@clisp.org>
49455
49456         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49457         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49458         variables.
49459         (func_module): Use them.
49460
49461 2007-01-09  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/unistr/base: New file.
49464         * lib/unistr.h: New file.
49465
49466         * modules/unistr/u8-to-u16: New file.
49467         * lib/unistr/u8-to-u16.c: New file.
49468
49469         * modules/unistr/u8-to-u32: New file.
49470         * lib/unistr/u8-to-u32.c: New file.
49471
49472         * modules/unistr/u16-to-u8: New file.
49473         * lib/unistr/u16-to-u8.c: New file.
49474
49475         * modules/unistr/u16-to-u32: New file.
49476         * lib/unistr/u16-to-u32.c: New file.
49477
49478         * modules/unistr/u32-to-u8: New file.
49479         * lib/unistr/u32-to-u8.c: New file.
49480
49481         * modules/unistr/u32-to-u16: New file.
49482         * lib/unistr/u32-to-u16.c: New file.
49483
49484         * modules/unistr/u8-check: New file.
49485         * modules/unistr/u16-check: New file.
49486         * modules/unistr/u32-check: New file.
49487         * lib/unistr/u8-check.c: New file.
49488         * lib/unistr/u16-check.c: New file.
49489         * lib/unistr/u32-check.c: New file.
49490
49491         * modules/unistr/u8-chr: New file.
49492         * modules/unistr/u16-chr: New file.
49493         * modules/unistr/u32-chr: New file.
49494         * lib/unistr/u8-chr.c: New file.
49495         * lib/unistr/u16-chr.c: New file.
49496         * lib/unistr/u32-chr.c: New file.
49497
49498         * modules/unistr/u8-cmp: New file.
49499         * modules/unistr/u16-cmp: New file.
49500         * modules/unistr/u32-cmp: New file.
49501         * lib/unistr/u8-cmp.c: New file.
49502         * lib/unistr/u16-cmp.c: New file.
49503         * lib/unistr/u32-cmp.c: New file.
49504
49505         * modules/unistr/u8-cpy: New file.
49506         * modules/unistr/u16-cpy: New file.
49507         * modules/unistr/u32-cpy: New file.
49508         * lib/unistr/u8-cpy.c: New file.
49509         * lib/unistr/u16-cpy.c: New file.
49510         * lib/unistr/u32-cpy.c: New file.
49511         * lib/unistr/u-cpy.h: New file.
49512
49513         * modules/unistr/u8-cpy-alloc: New file.
49514         * modules/unistr/u16-cpy-alloc: New file.
49515         * modules/unistr/u32-cpy-alloc: New file.
49516         * lib/unistr/u8-cpy-alloc.c: New file.
49517         * lib/unistr/u16-cpy-alloc.c: New file.
49518         * lib/unistr/u32-cpy-alloc.c: New file.
49519         * lib/unistr/u-cpy-alloc.h: New file.
49520
49521         * modules/unistr/u8-endswith: New file.
49522         * modules/unistr/u16-endswith: New file.
49523         * modules/unistr/u32-endswith: New file.
49524         * lib/unistr/u8-endswith.c: New file.
49525         * lib/unistr/u16-endswith.c: New file.
49526         * lib/unistr/u32-endswith.c: New file.
49527         * lib/unistr/u-endswith.h: New file.
49528
49529         * modules/unistr/u8-mblen: New file.
49530         * modules/unistr/u16-mblen: New file.
49531         * modules/unistr/u32-mblen: New file.
49532         * lib/unistr/u8-mblen.c: New file.
49533         * lib/unistr/u16-mblen.c: New file.
49534         * lib/unistr/u32-mblen.c: New file.
49535
49536         * modules/unistr/u8-mbtouc: New file.
49537         * modules/unistr/u16-mbtouc: New file.
49538         * modules/unistr/u32-mbtouc: New file.
49539         * lib/unistr/u8-mbtouc.c: New file.
49540         * lib/unistr/u16-mbtouc.c: New file.
49541         * lib/unistr/u32-mbtouc.c: New file.
49542
49543         * modules/unistr/u8-mbtouc-safe: New file.
49544         * modules/unistr/u16-mbtouc-safe: New file.
49545         * modules/unistr/u32-mbtouc-safe: New file.
49546         * lib/unistr/u8-mbtouc-safe.c: New file.
49547         * lib/unistr/u16-mbtouc-safe.c: New file.
49548         * lib/unistr/u32-mbtouc-safe.c: New file.
49549
49550         * modules/unistr/u8-move: New file.
49551         * modules/unistr/u16-move: New file.
49552         * modules/unistr/u32-move: New file.
49553         * lib/unistr/u8-move.c: New file.
49554         * lib/unistr/u16-move.c: New file.
49555         * lib/unistr/u32-move.c: New file.
49556         * lib/unistr/u-move.h: New file.
49557
49558         * modules/unistr/u8-next: New file.
49559         * modules/unistr/u16-next: New file.
49560         * modules/unistr/u32-next: New file.
49561         * lib/unistr/u8-next.c: New file.
49562         * lib/unistr/u16-next.c: New file.
49563         * lib/unistr/u32-next.c: New file.
49564
49565         * modules/unistr/u8-prev: New file.
49566         * modules/unistr/u16-prev: New file.
49567         * modules/unistr/u32-prev: New file.
49568         * lib/unistr/u8-prev.c: New file.
49569         * lib/unistr/u16-prev.c: New file.
49570         * lib/unistr/u32-prev.c: New file.
49571
49572         * modules/unistr/u8-set: New file.
49573         * modules/unistr/u16-set: New file.
49574         * modules/unistr/u32-set: New file.
49575         * lib/unistr/u8-set.c: New file.
49576         * lib/unistr/u16-set.c: New file.
49577         * lib/unistr/u32-set.c: New file.
49578         * lib/unistr/u-set.h: New file.
49579
49580         * modules/unistr/u8-startswith: New file.
49581         * modules/unistr/u16-startswith: New file.
49582         * modules/unistr/u32-startswith: New file.
49583         * lib/unistr/u8-startswith.c: New file.
49584         * lib/unistr/u16-startswith.c: New file.
49585         * lib/unistr/u32-startswith.c: New file.
49586         * lib/unistr/u-startswith.h: New file.
49587
49588         * modules/unistr/u8-stpcpy: New file.
49589         * modules/unistr/u16-stpcpy: New file.
49590         * modules/unistr/u32-stpcpy: New file.
49591         * lib/unistr/u8-stpcpy.c: New file.
49592         * lib/unistr/u16-stpcpy.c: New file.
49593         * lib/unistr/u32-stpcpy.c: New file.
49594         * lib/unistr/u-stpcpy.h: New file.
49595
49596         * modules/unistr/u8-stpncpy: New file.
49597         * modules/unistr/u16-stpncpy: New file.
49598         * modules/unistr/u32-stpncpy: New file.
49599         * lib/unistr/u8-stpncpy.c: New file.
49600         * lib/unistr/u16-stpncpy.c: New file.
49601         * lib/unistr/u32-stpncpy.c: New file.
49602         * lib/unistr/u-stpncpy.h: New file.
49603
49604         * modules/unistr/u8-strcat: New file.
49605         * modules/unistr/u16-strcat: New file.
49606         * modules/unistr/u32-strcat: New file.
49607         * lib/unistr/u8-strcat.c: New file.
49608         * lib/unistr/u16-strcat.c: New file.
49609         * lib/unistr/u32-strcat.c: New file.
49610         * lib/unistr/u-strcat.h: New file.
49611
49612         * modules/unistr/u8-strchr: New file.
49613         * modules/unistr/u16-strchr: New file.
49614         * modules/unistr/u32-strchr: New file.
49615         * lib/unistr/u8-strchr.c: New file.
49616         * lib/unistr/u16-strchr.c: New file.
49617         * lib/unistr/u32-strchr.c: New file.
49618
49619         * modules/unistr/u8-strcmp: New file.
49620         * modules/unistr/u16-strcmp: New file.
49621         * modules/unistr/u32-strcmp: New file.
49622         * lib/unistr/u8-strcmp.c: New file.
49623         * lib/unistr/u16-strcmp.c: New file.
49624         * lib/unistr/u32-strcmp.c: New file.
49625
49626         * modules/unistr/u8-strcpy: New file.
49627         * modules/unistr/u16-strcpy: New file.
49628         * modules/unistr/u32-strcpy: New file.
49629         * lib/unistr/u8-strcpy.c: New file.
49630         * lib/unistr/u16-strcpy.c: New file.
49631         * lib/unistr/u32-strcpy.c: New file.
49632         * lib/unistr/u-strcpy.h: New file.
49633
49634         * modules/unistr/u8-strcspn: New file.
49635         * modules/unistr/u16-strcspn: New file.
49636         * modules/unistr/u32-strcspn: New file.
49637         * lib/unistr/u8-strcspn.c: New file.
49638         * lib/unistr/u16-strcspn.c: New file.
49639         * lib/unistr/u32-strcspn.c: New file.
49640         * lib/unistr/u-strcspn.h: New file.
49641
49642         * modules/unistr/u8-strdup: New file.
49643         * modules/unistr/u16-strdup: New file.
49644         * modules/unistr/u32-strdup: New file.
49645         * lib/unistr/u8-strdup.c: New file.
49646         * lib/unistr/u16-strdup.c: New file.
49647         * lib/unistr/u32-strdup.c: New file.
49648         * lib/unistr/u-strdup.h: New file.
49649
49650         * modules/unistr/u8-strlen: New file.
49651         * modules/unistr/u16-strlen: New file.
49652         * modules/unistr/u32-strlen: New file.
49653         * lib/unistr/u8-strlen.c: New file.
49654         * lib/unistr/u16-strlen.c: New file.
49655         * lib/unistr/u32-strlen.c: New file.
49656         * lib/unistr/u-strlen.h: New file.
49657
49658         * modules/unistr/u8-strmblen: New file.
49659         * modules/unistr/u16-strmblen: New file.
49660         * modules/unistr/u32-strmblen: New file.
49661         * lib/unistr/u8-strmblen.c: New file.
49662         * lib/unistr/u16-strmblen.c: New file.
49663         * lib/unistr/u32-strmblen.c: New file.
49664
49665         * modules/unistr/u8-strmbtouc: New file.
49666         * modules/unistr/u16-strmbtouc: New file.
49667         * modules/unistr/u32-strmbtouc: New file.
49668         * lib/unistr/u8-strmbtouc.c: New file.
49669         * lib/unistr/u16-strmbtouc.c: New file.
49670         * lib/unistr/u32-strmbtouc.c: New file.
49671
49672         * modules/unistr/u8-strncat: New file.
49673         * modules/unistr/u16-strncat: New file.
49674         * modules/unistr/u32-strncat: New file.
49675         * lib/unistr/u8-strncat.c: New file.
49676         * lib/unistr/u16-strncat.c: New file.
49677         * lib/unistr/u32-strncat.c: New file.
49678         * lib/unistr/u-strncat.h: New file.
49679
49680         * modules/unistr/u8-strncmp: New file.
49681         * modules/unistr/u16-strncmp: New file.
49682         * modules/unistr/u32-strncmp: New file.
49683         * lib/unistr/u8-strncmp.c: New file.
49684         * lib/unistr/u16-strncmp.c: New file.
49685         * lib/unistr/u32-strncmp.c: New file.
49686
49687         * modules/unistr/u8-strncpy: New file.
49688         * modules/unistr/u16-strncpy: New file.
49689         * modules/unistr/u32-strncpy: New file.
49690         * lib/unistr/u8-strncpy.c: New file.
49691         * lib/unistr/u16-strncpy.c: New file.
49692         * lib/unistr/u32-strncpy.c: New file.
49693         * lib/unistr/u-strncpy.h: New file.
49694
49695         * modules/unistr/u8-strnlen: New file.
49696         * modules/unistr/u16-strnlen: New file.
49697         * modules/unistr/u32-strnlen: New file.
49698         * lib/unistr/u8-strnlen.c: New file.
49699         * lib/unistr/u16-strnlen.c: New file.
49700         * lib/unistr/u32-strnlen.c: New file.
49701         * lib/unistr/u-strnlen.h: New file.
49702
49703         * modules/unistr/u8-strpbrk: New file.
49704         * modules/unistr/u16-strpbrk: New file.
49705         * modules/unistr/u32-strpbrk: New file.
49706         * lib/unistr/u8-strpbrk.c: New file.
49707         * lib/unistr/u16-strpbrk.c: New file.
49708         * lib/unistr/u32-strpbrk.c: New file.
49709         * lib/unistr/u-strpbrk.h: New file.
49710
49711         * modules/unistr/u8-strrchr: New file.
49712         * modules/unistr/u16-strrchr: New file.
49713         * modules/unistr/u32-strrchr: New file.
49714         * lib/unistr/u8-strrchr.c: New file.
49715         * lib/unistr/u16-strrchr.c: New file.
49716         * lib/unistr/u32-strrchr.c: New file.
49717
49718         * modules/unistr/u8-strspn: New file.
49719         * modules/unistr/u16-strspn: New file.
49720         * modules/unistr/u32-strspn: New file.
49721         * lib/unistr/u8-strspn.c: New file.
49722         * lib/unistr/u16-strspn.c: New file.
49723         * lib/unistr/u32-strspn.c: New file.
49724         * lib/unistr/u-strspn.h: New file.
49725
49726         * modules/unistr/u8-strstr: New file.
49727         * modules/unistr/u16-strstr: New file.
49728         * modules/unistr/u32-strstr: New file.
49729         * lib/unistr/u8-strstr.c: New file.
49730         * lib/unistr/u16-strstr.c: New file.
49731         * lib/unistr/u32-strstr.c: New file.
49732         * lib/unistr/u-strstr.h: New file.
49733
49734         * modules/unistr/u8-strtok: New file.
49735         * modules/unistr/u16-strtok: New file.
49736         * modules/unistr/u32-strtok: New file.
49737         * lib/unistr/u8-strtok.c: New file.
49738         * lib/unistr/u16-strtok.c: New file.
49739         * lib/unistr/u32-strtok.c: New file.
49740         * lib/unistr/u-strtok.h: New file.
49741
49742         * modules/unistr/u8-uctomb: New file.
49743         * modules/unistr/u16-uctomb: New file.
49744         * modules/unistr/u32-uctomb: New file.
49745         * lib/unistr/u8-uctomb.c: New file.
49746         * lib/unistr/u16-uctomb.c: New file.
49747         * lib/unistr/u32-uctomb.c: New file.
49748
49749         * MODULES.html.sh (Unicode string functions): Add the new modules.
49750
49751 2007-01-08  Bruno Haible  <bruno@clisp.org>
49752
49753         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49754         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49755         subdirectories.
49756
49757 2007-01-08  Karl Berry  <karl@gnu.org>
49758
49759         * doc/error.texi: mention that main() fns must set program_name
49760         when progname is used.
49761
49762 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49763
49764         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49765         WCTYPE_H is empty, for the benefit of builds from non-distclean
49766         directories.  Problem reported by Eric Blake in
49767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49768
49769 2007-01-08  Bruno Haible  <bruno@clisp.org>
49770
49771         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49772         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49773         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49774         PROVIDE_CANONICALIZE_FILENAME_MODE.
49775         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49776
49777 2007-01-08  Bruno Haible  <bruno@clisp.org>
49778
49779         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49780         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49781         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49782         * lib/fts.c: Likewise.
49783         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49784
49785 2006-12-25  Bruno Haible  <bruno@clisp.org>
49786
49787         * modules/utf8-ucs4-safe: New file.
49788         * lib/utf8-ucs4-safe.h: New file.
49789         * lib/unistr/utf8-ucs4-safe.c: New file.
49790
49791         * modules/utf16-ucs4-safe: New file.
49792         * lib/utf16-ucs4-safe.h: New file.
49793         * lib/unistr/utf16-ucs4-safe.c: New file.
49794
49795         * MODULES.html.sh (Unicode string functions): Add the new modules.
49796
49797 2007-01-08  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49800         (Depends-on): Add unitypes.
49801         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49802         (u8_mbtouc_aux): Move out to separate file.
49803         (u8_mbtouc): Use ucs4_t, uint8_t types.
49804         * lib/unistr/utf8-ucs4.c: New file.
49805
49806         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49807         (Depends-on): Add unitypes.
49808         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49809         (u16_mbtouc_aux): Move out to separate file.
49810         (u16_mbtouc): Use ucs4_t, uint16_t types.
49811         * lib/unistr/utf16-ucs4.c: New file.
49812
49813         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49814         (Depends-on): Add unitypes.
49815         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49816         (u8_uctomb_aux): Move out to separate file.
49817         (u8_uctomb): Use ucs4_t, uint8_t types.
49818         * lib/unistr/ucs4-utf8.c: New file.
49819
49820         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49821         (Depends-on): Add unitypes.
49822         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49823         (u16_uctomb_aux): Move out to separate file.
49824         (u16_uctomb): Use ucs4_t, uint16_t types.
49825         * lib/unistr/ucs4-utf16.c: New file.
49826
49827 2006-12-25  Bruno Haible  <bruno@clisp.org>
49828
49829         * modules/unitypes: New file.
49830         * lib/unitypes.h: New file.
49831         * MODULES.html.sh (func_all_modules): New section "Unicode string
49832         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49833         this section. Add unitypes.
49834
49835 2007-01-08  Bruno Haible  <bruno@clisp.org>
49836
49837         Avoid variable names that conflict with those from libtool.
49838         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49839         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49840         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49841         library_names_spec to acl_library_names_spec, hardcode_* to
49842         acl_hardcode_*.
49843         Reported by Ralf Wildenhues.
49844
49845 2007-01-08  Bruno Haible  <bruno@clisp.org>
49846
49847         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49848         definition.
49849         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49850         definition.
49851         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49852         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49853         definition.
49854         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49855         definition.
49856         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49857         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49858         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49859         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49860         definition.
49861         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49862         definition.
49863         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49864         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49865         GC_USE_<algorithm>.
49866         * lib/gc-libgcrypt.c: Likewise.
49867         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49868         * modules/gc-arctwo (configure.ac): Likewise.
49869         * modules/gc-des (configure.ac): Likewise.
49870         * modules/gc-hmac-md5 (configure.ac): Likewise.
49871         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49872         * modules/gc-md2 (configure.ac): Likewise.
49873         * modules/gc-md4 (configure.ac): Likewise.
49874         * modules/gc-md5 (configure.ac): Likewise.
49875         * modules/gc-random (configure.ac): Likewise.
49876         * modules/gc-rijndael (configure.ac): Likewise.
49877         * modules/gc-sha1 (configure.ac): Likewise.
49878
49879 2007-01-08  Bruno Haible  <bruno@clisp.org>
49880
49881         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49882         macro definition.
49883         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49884         definition.
49885         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49886         definition.
49887         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49888         * modules/fcntl-safer (configure.ac): Likewise.
49889         * modules/fopen-safer (configure.ac): Likewise.
49890         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49891         GNULIB_FWRITEERROR macro definition.
49892
49893 2007-01-08  Bruno Haible  <bruno@clisp.org>
49894
49895         * m4/gnulib-common.m4: New file.
49896         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49897         (func_get_filelist): Add m4/gnulib-common.m4.
49898
49899 2007-01-08  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49902         command.
49903
49904 2007-01-08  Jim Meyering  <jim@meyering.net>
49905
49906         Use a more robust test for a "can't happen" condition.
49907         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49908         narrowed the st_size value.  Presuming the "can't happen" condition
49909         is true, that narrowing could conceivably convert an invalid st_size
49910         value into a valid one.  Instead, use a change based on Matthew
49911         Woehlke's original patch.
49912
49913         Slight readability improvement: use an assert-like macro
49914         in place of literal "abort ()" uses.
49915         * lib/fts.c (fts_assert): Define.
49916         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49917         Use this macro instead of a bare 'abort'.
49918
49919 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49920
49921         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49922         simply work around them.
49923         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49924         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49925         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49926         declaring.
49927         Don't bother to define as macros, since the standard doesn't require it.
49928         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49929         longer worry about IRIX 5.3.
49930         (HAVE_WCTYPE_CTMP_BUG): Remove.
49931
49932 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49933
49934         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49935         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49936         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49937         Problems reported by Georg Schwarz for IRIX 5.3.
49938
49939         * gnulib-tool (autoconf_minversion): Take the maximum version number
49940         found, not the minimum.  Problem reported by James Youngman.
49941
49942 2007-01-03  Karl Berry  <karl@gnu.org>
49943
49944         * doc/error.texi: new file, explaining interaction with progname.
49945         * doc/gnulib.texi: include it.  Update copyright.
49946
49947 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49948
49949         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49950         AC_CANONICAL_HOST, to improve autobuild outputs.
49951
49952 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49953             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49954
49955         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49956         sockets, server sockets, and other file descriptors.  Count errors
49957         to compute the return value.  Reorder the code a bit to be easier
49958         to follow.  Don't set event bits that were not requested (except
49959         POLLERR and POLLHUP).
49960
49961 2007-01-01  Bruno Haible  <bruno@clisp.org>
49962
49963         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49964
49965 2007-01-03  Jim Meyering  <jim@meyering.net>
49966
49967         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49968
49969 2007-01-02  Bruno Haible  <bruno@clisp.org>
49970
49971         * modules/settime (Include): Require timespec.h.
49972         * modules/nanosleep (Include): Likewise.
49973
49974 2007-01-01  Bruno Haible  <bruno@clisp.org>
49975
49976         * gnulib-tool (func_emit_copyright_notice): Bump year.
49977         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49978
49979 2007-01-01  Bruno Haible  <bruno@clisp.org>
49980
49981         Improve support for OpenBSD.
49982         * build-aux/config.rpath (libname_spec): Export.
49983         (library_names_spec): New variable. Export.
49984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49985         library_names_spec from the config.rpath output. Locate shared library
49986         through the name pattern in library_names_spec.
49987
49988 2007-01-01  Eric Blake  <ebb9@byu.net>
49989
49990         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49991
49992 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49993
49994         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49995         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49996         assume the C locale, and avoid an "eval" that could cause trouble.
49997         Problem with SORT reported by Bob Proulx.
49998
49999         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50000         Define.  Trivial patch from Henning Nielsen Lund, originally
50001         sent to bug-grep@gnu.org today.
50002
50003 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50004
50005         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50006         struct stat.  Problem reported by Henning Nielsen Lund.
50007         * lib/acl.c: Include acl.h first, to check interface.  Don't
50008         bother to include sys/types.h and sys/stat.h again.
50009
50010 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50011
50012         Import the following change from libc; problem reported by
50013         Sven Verdoolaege.
50014
50015         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50016
50017         [BZ #1373]
50018         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50019
50020 2006-12-28  Jim Meyering  <jim@meyering.net>
50021
50022         * build-aux/announce-gen: Do not assume that the package
50023         builds any of tar.gz, tar.bz2, and .xdelta files.
50024         Suggestion from Simon Josefsson.
50025
50026 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50027
50028         * modules/announce-gen: New file.
50029
50030 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50031
50032         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50033         handles its gotchas now.
50034         * lib/mbswidth.c: Likewise.
50035         * lib/wcwidth.h: Likewise.
50036         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50037         and iswcntrl; the wctype module does this stuff now.
50038         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50039         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50040         * modules/mbchar (Depends-on): Add wctype.
50041         * modules/mbswidth (Depends-on): Likewise.
50042         * modules/wcwidth (Depends-on): Likewise.
50043
50044 2006-12-27  Eric Blake  <ebb9@byu.net>
50045
50046         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50047         module uses more than what <wctype.h> is required to provide.
50048
50049 2006-12-26  Eric Blake  <ebb9@byu.net>
50050
50051         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50052
50053 2006-12-26  Eric Blake  <ebb9@byu.net>
50054
50055         * modules/absolute-header: New module.
50056         * modules/fcntl (Depends-on): Depend on it.
50057         * modules/inttypes (Depends-on): Likewise.
50058         * modules/stdint (Depends-on): Likewise.
50059         * modules/sys_stat (Depends-on): Likewise.
50060         * modules/wctype (Depends-on): Likewise.
50061         * MODULES.html.sh (Support for building libraries and
50062         executables): Document it.
50063
50064 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50065
50066         * gnulib-tool (SED): Remove, undoing previous change.
50067         The problem was that it broke coreutils on Solaris, because
50068         "sed --posix" leaked into a makefile.
50069         (sed): New alias, if 'alias' and GNU sed.
50070
50071 2006-12-24  Jim Meyering  <jim@meyering.net>
50072
50073         Work around an fchownat bug in glibc-2.4:
50074         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50075         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50076         in spite of the -P option.
50077         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50078         New macros.
50079         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50080         * modules/openat (Files): Add lib/fchownat.c.
50081         * lib/openat.c (fchownat): Don't define here.  Move to...
50082         * lib/fchownat.c: ...this new file.
50083
50084 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50085
50086         Fix bug reported by Bruno Haible in
50087         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50088         where quotearg.c didn't compile on Mac OS X 10.2 because it
50089         lacks <wchar.h> and wint_t.
50090         * lib/wctype_.h (__wctype_wint_t): New type.
50091         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50092         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50093         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50094         Arg is now of type __wctype_wint_t, not wint_t.
50095         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50096         substitute HAVE_WINT_T.
50097         * modules/wctype (Files): Add m4/wint_t.m4.
50098         (wctype.h): Substitute HAVE_WINT_T.
50099
50100 2006-12-23  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50103
50104 2006-12-23  Bruno Haible  <bruno@clisp.org>
50105
50106         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50107         S_ISLNK.
50108         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50109         mingw.
50110
50111 2006-12-22  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/copy-file.c: Include acl.h.
50114         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50115         Close the file descriptors only after being done with copy_acl.
50116         * modules/copy-file (Depends-on): Add acl.
50117
50118 2006-12-22  Bruno Haible  <bruno@clisp.org>
50119
50120         * gnulib-tool (SED): New variable.
50121         Use $SED instead of sed everywhere.
50122
50123 2006-12-22  Bruno Haible  <bruno@clisp.org>
50124
50125         * modules/no-c++: New file.
50126         * m4/no-c++.m4: New file.
50127         * MODULES.html.sh (Support for building libraries and executables):
50128         Add no-c++.
50129
50130 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50131
50132         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50133         Include <limits.h>, and use its INT_MAX to rewrite the
50134         j loop so that it does not overflow 'int'.  Problem reported by
50135         Ralf Wildenhues in
50136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50137         Play it safe by shifting left by 1 rather than multiplying by 2,
50138         as GCC is less likely to optimize this away when the value
50139         is signed (when it assumes overflow leads to undefined behavior).
50140         Also, don't assume time_t uses two's complement.
50141
50142 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50143
50144         * MODULES.html.sh: New module wctype.
50145         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50146         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50147         <wctype.h>, since the new wctype module should fix this.
50148         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50149         the wctype module should arrange for it.
50150         * lib/regex_internal.h: Likewise.
50151         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50152         since the wctype module should handle this now.
50153         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50154         * modules/fnmatch (Depends-on): Add wctype.
50155         * modules/quotearg (Depends-on): Likewise.
50156         * modules/regex (Depends-on): Likewise.
50157
50158 2006-12-19  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50161         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50162
50163 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50164
50165         * modules/savewd (Depends-on): Fix dependency on fcntl.
50166
50167 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50168
50169         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50170         conforms to C99, rather than relying on the user's environment
50171         setting of STDINT_H.
50172
50173 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50174         and Eric Blake  <ebb9@byu.net>
50175
50176         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50177         This is more consistent with the other defines here.
50178         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50179         Port to z/OS.  Problem reported by Paul Gilmartin.
50180         Change local vars to use gl_ prefix rather than ac_.
50181         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50182         with other defines.
50183         * modules/double-slash-root: New module.
50184         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50185         (Depends-on): Add double-slash-root.
50186         * MODULES.html.sh (File system functions): Mention new module.
50187
50188 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50189
50190         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50191         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50192         This is for the benefit of gzip, which doesn't do i18n.
50193
50194 2006-12-12  Jim Meyering  <jim@meyering.net>
50195
50196         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50197         Reported by Andreas Schwab <schwab@suse.de>.
50198
50199 2006-12-12  Bruno Haible  <bruno@clisp.org>
50200
50201         Merge these changes.
50202         2006-09-05  Bruno Haible  <bruno@clisp.org>
50203         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50204         iconv_alloc succeeded.
50205         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50206         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50207         test for " && dest " at the end - dest is always != NULL there. Call
50208         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50209         with 2xNULL arguments, also to flush the state storage. Handle the
50210         IRIX iconv behaviour. Realloc the final result, to throw away unused
50211         memory.
50212
50213 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50214
50215         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50216         and fchmodat unconditionally, since glibc 2.4 has them.
50217         Problem reported by Arkadiusz Miskiewicz.
50218
50219 2006-12-10  Bruno Haible  <bruno@clisp.org>
50220
50221         * gnulib-tool (func_import): Show the include files only for those
50222         modules that are copied and specified.
50223         Reported by Karl Berry.
50224
50225 2006-12-08  Jim Meyering  <jim@meyering.net>
50226
50227         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50228         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50229
50230         * build-aux/announce-gen: Add two new options, both optional:
50231         --bootstrap-tools=TOOL_LIST
50232               a comma-separated list of tools, e.g.,
50233               autoconf,automake,bison,gnulib
50234         --gnulib-snapshot-date=DATE
50235               if gnulib is in the bootstrap tool list,
50236               then report this as the snapshot date.
50237               If not specified, use the current date/time.
50238               If you specify a date here, be sure it's UTC.
50239
50240 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50241
50242         * tests/test-argp-2.sh: Fix test to match actual output.
50243         (func_compare): Fix sed script to be portable.
50244
50245 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50248         workaround for this case.  It is not autoconfigured now; offhand
50249         it's hard to see how to autoconfigure it.
50250
50251 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50252
50253         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50254         a directory that is about to be chowned.  Such a directory's
50255         initial file permissions should permit the owner only and this
50256         should not be changed until after the chown, since the group and
50257         other bits would be incorrect if they granted permission before
50258         the chown.
50259
50260         Fix porting problem for iswctype reported by Georg Schwarz in:
50261         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50262         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50263         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50265         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50266
50267 2006-12-03  Jim Meyering  <jim@meyering.net>
50268
50269         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50270         p->fts_statp may not yet be defined.
50271         (fts_read): Instead, set it in the caller, once p->fts_statp is
50272         sure to be defined, and corresponds to a top-level directory.
50273         This bug made du -x fail.  Here's the coreutils test case:
50274         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50275         Reported by Mike Frysinger.
50276
50277 2006-12-01  Jim Meyering  <jim@meyering.net>
50278
50279         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50280         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50281         Reported by Simon Josefsson.
50282
50283 2006-11-30  Jim Meyering  <jim@meyering.net>
50284
50285         * m4/warning.m4: Use the all-permissive copyright notice
50286         recommended by RMS (rather than LGPL).
50287         * m4/vararrays.m4: Likewise.
50288         * m4/flexmember.m4: Likewise.
50289
50290 2006-11-29  Bruno Haible  <bruno@clisp.org>
50291
50292         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50293         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50294         using +=.
50295         Reported by Simon Josefsson <simon@josefsson.org>.
50296
50297 2006-11-28  James Youngman <jay@gnu.org>
50298
50299         * README: Advise users that they might find the bug-gnulib@gnu.org
50300         and autotools-announce@gnu.org mailing lists useful.
50301
50302 2006-11-28  Bruno Haible  <bruno@clisp.org>
50303
50304         * m4/ptrdiff_max.m4: Remove file.
50305
50306 2006-11-21  Bruno Haible  <bruno@clisp.org>
50307
50308         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50309         _AC_COMPUTE_INT.
50310         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50311         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50312         _AC_COMPUTE_INT.
50313         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50314         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50315         _AC_COMPUTE_INT.
50316         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50317
50318 2006-11-28  Jim Meyering  <jim@meyering.net>
50319
50320         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50321         warning from "gcc -Wshadow" about shadowing the builtin.
50322
50323 2006-11-27  Bruno Haible  <bruno@clisp.org>
50324
50325         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50326         _AC_COMPUTE_INT.
50327         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50328
50329 2006-11-27  Bruno Haible  <bruno@clisp.org>
50330             Paul Eggert  <eggert@cs.ucla.edu>
50331
50332         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50333
50334 2006-11-26  Bruno Haible  <bruno@clisp.org>
50335
50336         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50337         noinst_LTLIBRARIES.
50338
50339 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50340             Bruno Haible  <bruno@clisp.org>
50341
50342         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50343         if compiling with "gcc -ansi".
50344
50345 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50346
50347         Fix some incompatibilities with gcc -ansi -pedantic.
50348         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50349         if compiling pedantically with GCC, unless it's C99 or later.
50350         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50351         it mishandles gcc -ansi -pedantic as well.
50352         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50353         if gcc -pedantic.
50354         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50355         initializers for struct if -pedantic, unless it's C99 or later.
50356
50357 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50358
50359         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50360         Don't close an fd more than once. Identical atimes indicate
50361         success, not failure.
50362
50363 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50364
50365         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50366
50367 2006-11-23  Jim Meyering  <jim@meyering.net>
50368
50369         * build-aux/announce-gen: New file.  From coreutils.
50370
50371 2006-11-22  Jim Meyering  <jim@meyering.net>
50372
50373         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50374         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50375         (fts_read): Use a temporary to narrow the overused st_size member
50376         before using it in a switch statement.  Reported by Matthew Woehlke.
50377
50378         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50380
50381 2006-11-20  Bruno Haible  <bruno@clisp.org>
50382
50383         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50384         changequote instead of pairs of brackets.
50385         Reported by Andreas Schwab <schwab@suse.de>.
50386
50387 2006-11-21  Jim Meyering  <jim@meyering.net>
50388
50389         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50390         so as to remain compatible with older compilers.
50391         Patch from Michael Deutschmann.
50392
50393 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         * MODULES.html.sh (File system functions): Add openat.
50396
50397         * lib/openat.h (rpl_fstatat): New macro, if
50398         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50399         (fstatat): Define to rpl_fstatat under the same conditions,
50400         unless COMPILING_FSTATAT.
50401         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50402         seems to have the bug.
50403         * lib/fstatat.c: New file.
50404         * modules/openat (Files): Add it.
50405
50406 2006-11-20  Bruno Haible  <bruno@clisp.org>
50407
50408         * Makefile: New file.
50409
50410 2006-11-20  Jim Meyering  <jim@meyering.net>
50411
50412         The beginnings of syntax-related checks for gnulib.
50413         * lib/Makefile: New file.
50414         * lib/t-idcache: New script.  Ensure that the two halves of
50415         idcache.c stay in sync.
50416
50417         * lib/idcache.c: Adjust comments in user- and group- portions to
50418         be more accurate, and to be consistent with one another.
50419
50420 2006-11-20  Jim Meyering  <jim@meyering.net>
50421
50422         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50423         continue using the flexible array member (thus, this module performs
50424         half as many malloc calls), with the addition that...
50425         (getgroup, getuser): Consistently record a non-match via an empty
50426         "name" string, and map an empty string match to a NULL return value.
50427         * modules/idcache (Depends-on): Re-add flexmember.
50428
50429         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50430         (getuidbyname, getgroup, getgidbyname): Likewise.
50431
50432         Use cleaner syntax: NULL rather than 0.
50433         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50434
50435 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50436
50437         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50438         It mishandled the case where the group was missing.
50439         Problem reported by Greg Schafer.
50440         * modules/idcache: Likewise.
50441
50442 2006-11-18  Jim Meyering  <jim@meyering.net>
50443
50444         * check-module (%exempt_header): Add exception for some
50445         conditionally-included headers.
50446
50447         * modules/i-ring (Depends-on): Add verify.
50448         (License): Change to LGPL.
50449
50450 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50453         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50454         and inttostr.h.  Use snprintf rather than uinttostr, so that
50455         LGPLed code doesn't depend on GPLed.
50456
50457 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         * modules/inline (License): Change from GPL to LGPL.
50460
50461 2006-11-17  Jim Meyering  <jim@meyering.net>
50462
50463         * modules/d-type (License): Switch to LGPL.
50464
50465 2006-11-15  Bruno Haible  <bruno@clisp.org>
50466
50467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50468
50469 2006-11-15  Eric Blake  <ebb9@byu.net>
50470
50471         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50472         the module dependency.
50473
50474 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50475             Bruno Haible  <bruno@clisp.org>
50476
50477         * gnulib-tool (func_create_testdir): Add license consistency check.
50478
50479 2006-11-15  Eric Blake  <ebb9@byu.net>
50480
50481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50482         random "(cached)" in configure output.
50483
50484 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50485
50486         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50487         test for conforming inttypes.h is both announced and cached.
50488
50489         * MODULES.html.sh (seen_modules, seen_files): New variables.
50490         (func_module): Rewrite to use a few less gnulib-tool and sed
50491         invocations.  Avoid a couple of quadratic algorithms for ...
50492         (missed_modules, missed_files): ... these, with ...
50493         (func_append, func_tmpdir): ... these new functions, from
50494         gnulib-tool.  Analogously, install traps for cleanup.
50495
50496         * tests/test-gc.c (main): Remove unused variables.
50497         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50498
50499 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50500
50501         * modules/inttostr (License): Change to LGPL.
50502
50503 2006-11-14  Eric Blake  <ebb9@byu.net>
50504
50505         * modules/tempname (License): Change to LGPL.
50506
50507 2006-11-14  Eric Blake  <ebb9@byu.net>
50508
50509         * doc/functions.texi (Function Portability): *printf functions on
50510         Cygwin now understand all POSIX size specifiers.
50511
50512 2006-11-14  Bruno Haible  <bruno@clisp.org>
50513
50514         * modules/c-ctype (License): Change to LGPL.
50515
50516 2006-11-12  Bruno Haible  <bruno@clisp.org>
50517
50518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50519         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50520         for GNOME libraries, for which the include files are installed in
50521         subdirectories of $prefix/include.
50522
50523 2006-11-12  Bruno Haible  <bruno@clisp.org>
50524
50525         * m4/lib-link.m4: Require at least autoconf-2.54.
50526         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50527         name to underscores for the --with option.
50528
50529 2006-11-13  Bruno Haible  <bruno@clisp.org>
50530
50531         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50532         the tests directory.
50533         Reported by Ralf Wildenhues.
50534
50535 2006-11-13  Bruno Haible  <bruno@clisp.org>
50536
50537         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50538         (func_emit_initmacro_end): Undo the override here.
50539         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50540         Works around the famous automake error in coreutils.
50541
50542 2006-11-13  Eric Blake  <ebb9@byu.net>
50543
50544         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50545         element, not its node.
50546
50547 2006-11-12  Bruno Haible  <bruno@clisp.org>
50548
50549         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50550         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50551
50552 2006-11-12  Bruno Haible  <bruno@clisp.org>
50553
50554         * gnulib-tool: New option --local-symlink.
50555         (func_usage): Document it.
50556         (lsymbolic): New variable.
50557         (func_import, func_create_testdir): If --symlink was not specified,
50558         test whether --local-symlink was specified and the file comes from
50559         the local_gnulib_dir.
50560
50561 2006-11-12  Bruno Haible  <bruno@clisp.org>
50562
50563         * gnulib-tool (func_ln): New function.
50564         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50565
50566 2006-11-12  Bruno Haible  <bruno@clisp.org>
50567
50568         Finish support for source files in subdirectories.
50569         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50570         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50571         AUTOMAKE_OPTIONS.
50572         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50573
50574 2006-11-12  Bruno Haible  <bruno@clisp.org>
50575
50576         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50577         EXTRA_lib_SOURCES augmentation.
50578         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50579
50580 2006-11-12  Jim Meyering  <jim@meyering.net>
50581
50582         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50583         file descriptors.  This also averts a failure on systems with
50584         native openat support when a traversed directory lacks "x" access.
50585         * lib/fts_.h: Include "i-ring.h"
50586         (struct FTS) [fts_fd_ring]: New member.
50587         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50588         (FCHDIR): Add parentheses.
50589         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50590         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50591         When descending, rather than simply closing the previous
50592         fts_cwd_fd value, push that file descriptor onto the ring.
50593         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50594         (fts_open): Initialize the new fd_ring member.
50595         (fts_close): Clear the ring.
50596         (fts_safe_changedir): When possible, use our new fd_ring to skip
50597         the diropen and fstat and dev/ino comparison that would normally
50598         accompany a virtual `chdir ("..")'.
50599
50600         * modules/fts (Depends-on): Add i-ring.
50601         * modules/i-ring: New module.
50602         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50603         * m4/i-ring.m4: New file.
50604
50605 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50606
50607         * gnulib-tool (func_create_testdir): Fix replacement of
50608         `build-aux' in configure.ac.  Run autotools in gltests
50609         subdirectory.
50610         (func_create_testdir, func_create_megatestdir, test): There is
50611         no need for '--force' in most autotool invocations in a new
50612         tree.  Actually fail the whole test if any of the tools, or the
50613         configure or make stages fail.
50614
50615         Sync from Automake.
50616         * build-aux/gnupload: Revert last change.  Add pointer to upload
50617         instructions of the GNU Maintenance Instructions.
50618         Suggestion by Karl Berry.
50619
50620 2006-11-10  Jim Meyering  <jim@meyering.net>
50621
50622         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50623
50624 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50625
50626         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50627         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50628         (bind_textdomain_codeset) [! ENABLE_NLS]:
50629         Evaluate all the arguments.  That way, callers get compatible behavior
50630         if the arguments have side effects.  Also, it avoids some GCC
50631         diagnostics in some cases; Joel E. Denny reported problems when Bison
50632         was configured with --enable-gcc-warnigs.
50633
50634 2006-11-10  Jim Meyering  <jim@meyering.net>
50635
50636         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50637         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50638         account.
50639
50640 2006-11-10  Jim Meyering  <jim@meyering.net>
50641
50642         * modules/inline: New file/module.
50643         * modules/xalloc (Files): Remove m4/inline.m4.
50644         (Depends-on): Add inline, instead.
50645         * modules/oset: Likewise.
50646         * modules/list: Likewise.
50647
50648 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50651         Problem reported by Matthew Woehlke.
50652
50653 2006-11-09  Bruno Haible  <bruno@clisp.org>
50654
50655         * lib/tempname.c (gen_tempname): Remove variant that invokes
50656         __gen_tempname.
50657         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50658         __gen_tempname.
50659
50660 2006-11-08  Bruno Haible  <bruno@clisp.org>
50661
50662         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50663         to 'yes' instead of 'cross-compiling'.
50664
50665 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50666
50667         * lib/quotearg.h (quotearg_free): New decl.
50668         * lib/quotearg.c (quotearg_free): New function.
50669         (slot0, nslots, slotvec0, slotvec):
50670         Now file-scope so that quotearg_free can get at them.
50671
50672 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50673
50674         Sync from Automake.
50675         * build-aux/gnupload: Add missing 'gnu' to example URL.
50676         Report by Karl Berry.
50677
50678 2006-11-08  Bruno Haible  <bruno@clisp.org>
50679
50680         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50681         Suggested by Paul Eggert.
50682
50683 2006-11-08  Jim Meyering  <jim@meyering.net>
50684
50685         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50686         It's already included if !_LIBC.
50687         (fts_safe_changedir): Add a comment.
50688
50689 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50692         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50693         Matthew Woehlke.
50694
50695         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50696         definitions up, to avoid colliding with change below.
50697         (static_inline) [HAVE_INLINE]: New macro.
50698         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50699         Provide extern decls when !HAVE_INLINE.  Do not define unless
50700         static_inline is defined, either by us or by xmalloc.c.  Use
50701         static_inline rather than static inline.
50702         (XCALLOC): Optimize sizeof(T) = 1 case.
50703         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50704
50705 2006-11-07  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50708         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50709         AC_C_INLINE.
50710         * modules/xalloc (Files): Add m4/inline.m4.
50711
50712 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50713
50714         * README: Fix typo.
50715         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50716         (Miscellanous Notes): ...from this.
50717
50718 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50719
50720         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50721         Mention that offsetof should be used instead of sizeof.
50722         From Bruno Haible.
50723
50724 2006-11-07  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50727
50728 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50731         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50732         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50733         (gl_tree_add_before, gl_tree_add_after):
50734         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50735         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50736         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50737         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50738         (gl_linked_add_after, gl_linked_add_at): Likewise.
50739         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50740         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50741         (gl_tree_add_before, gl_tree_add_after): Likewise.
50742         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50743         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50744         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50745
50746 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50747
50748         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50749
50750 2006-11-06  Bruno Haible  <bruno@clisp.org>
50751
50752         * m4/inline.m4: New file.
50753         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50754         * modules/list (Files): Add m4/inline.m4.
50755         * modules/oset (Files): Likewise.
50756
50757 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50758
50759         * lib/idcache.c: Include <stddef.h>, for offsetof.
50760         (struct userid.name): Change from char * to a flexible array member.
50761         All uses changed.
50762         * modules/idcache (Depends-on): Add flexmember.
50763
50764         * MODULES.html.sh (Core language properties): New module flexmember.
50765         * modules/flexmember, m4/flexmember.m4: New files.
50766
50767         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50768         inline functions that are identical with the old xnmalloc_inline,
50769         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50770         that we can avoid some unnecessary integer multiplications and
50771         divisions in the common case where the element size is known at
50772         compile time.
50773         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50774         needed.
50775         (xnboundedmalloc): Remove.
50776         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50777         arguments, for consistency with rest of this header.
50778         (xcharalloc): Rewrite using XNMALLOC.
50779         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50780         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50781         versions have been moved to lib/xalloc.h and renamed to be the
50782         non-*_inline versions.
50783         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50784         and xnrealloc functions, since those functions are now inline and
50785         now call us.
50786         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50787         renaming described above.
50788         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50789         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50790         captures the dependency in AC_C_INLINE.
50791
50792         New module canonicalize-lgpl, proposed by Charles Wilson in
50793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50794         with a few small changes afterwards.
50795         * MODULES.html.sh (File system functions): New module
50796         canonicalize-lgpl.
50797         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50798         and canonicalize_file_name.
50799         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50800         * modules/canonicalize-lgpl: New files.
50801
50802 2006-11-05  Bruno Haible  <bruno@clisp.org>
50803
50804         * gnulib-tool (func_import, func_create_testdir): Create directories
50805         also for files in subdirectories of lib/.
50806
50807 2006-11-05  Bruno Haible  <bruno@clisp.org>
50808
50809         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50810         ANSI C compliant.
50811
50812 2006-11-03  Bruno Haible  <bruno@clisp.org>
50813
50814         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50815         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50816         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50817         (xnboundedmalloc): New inline function.
50818         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50819         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50820         xmalloc.
50821         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50822         xmalloc.
50823         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50824         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50825         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50826         xmalloc.
50827         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50828         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50829         xmalloc.
50830         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50831         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50832         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50833         xmalloc.
50834         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50835         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50836         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50837         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50838         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50839         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50840         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50841
50842 2006-11-03  Bruno Haible  <bruno@clisp.org>
50843
50844         * lib/c-ctype.h [C++]: Define functions without name mangling.
50845         * lib/fwriteerror.h [C++]: Likewise.
50846         * lib/gcd.h [C++]: Likewise.
50847         * lib/linebreak.h [C++]: Likewise.
50848
50849 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50850
50851         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50852         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50853         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50854         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50855         Check for functions and headers just once.
50856         Check for declaration of canonicalize_file_name.
50857         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50858
50859 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50860
50861         * gnulib-tool (func_import): Fix typo in actioncmd.
50862
50863 2006-11-02  Bruno Haible  <bruno@clisp.org>
50864
50865         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50866         newline sequence in the Makefile.am snippet as a space, like "make"
50867         does.
50868         Reported by Roger Persson <perrog@gmail.com>.
50869
50870 2006-11-01  Bruno Haible  <bruno@clisp.org>
50871
50872         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50873         already declared in <string.h>.
50874         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50875
50876 2006-11-01  Bruno Haible  <bruno@clisp.org>
50877
50878         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50879         * lib/strcase.h: Include <string.h>.
50880         (strcasecmp): Define to rpl_strcasecmp here.
50881
50882 2006-11-01  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50885
50886 2006-11-01  Eric Blake  <ebb9@byu.net>
50887
50888         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50889
50890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50891
50892 2006-10-29  Bruno Haible  <bruno@clisp.org>
50893
50894         Make it compile in C++ mode.
50895         * lib/full-write.c (full_rw): Add a cast.
50896
50897 2006-11-01  Bruno Haible  <bruno@clisp.org>
50898
50899         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50900         be POSIX compliant.
50901         Reported by Roger Persson <perrog@gmail.com>.
50902
50903 2006-11-01  Eric Blake  <ebb9@byu.net>
50904
50905         * lib/getopt_.h: Fix comments.
50906
50907 2006-10-31  Eric Blake  <ebb9@byu.net>
50908
50909         * modules/tmpdir (Depends-on): Add sys_stat.
50910         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50911         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50912         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50913         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50914         tempname.
50915
50916 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50917
50918         Avoid some C++ diagnostics reported by Bruno Haible.
50919         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50920         xmalloc.
50921         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50922         (struct slotvec): Move to top level.
50923         (quotearg_n_options): Rewrite to avoid xmalloc.
50924         * lib/xalloc.h (xcharalloc): New function.
50925         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50926         [defined __cplusplus]: Add function template that provides result
50927         type propagation.  This part of the change is from Bruno Haible.
50928
50929 2006-10-29  Bruno Haible  <bruno@clisp.org>
50930
50931         Make it compile in C++ mode.
50932         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50933         * lib/strnlen1.c (strnlen1): Cast memchr result.
50934         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50935         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50936         (create_temp_dir): Rename local variable 'template'.
50937         (compile_csharp_using_sscli): Add cast.
50938         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50939         * lib/findprog.c (find_in_path): Likewise.
50940         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50941         * lib/wait-process.c (register_slave_subprocess): Likewise.
50942
50943 2006-10-22  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/tsearch: New file.
50946         * lib/tsearch.h: New file.
50947         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50948         * m4/tsearch.m4: New file.
50949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50950
50951 2006-10-29  Eric Blake  <ebb9@byu.net>
50952
50953         * lib/arcfour.c: Assume config.h.
50954         * lib/arctwo.c: Likewise.
50955         * lib/base64.c: Likewise.
50956         * lib/check-version.c: Likewise.
50957         * lib/crc.c: Likewise.
50958         * lib/des.c: Likewise.
50959         * lib/gc-gnulib.c: Likewise.
50960         * lib/gc-libgcrypt.c: Likewise.
50961         * lib/gc-pbkdf2-sha1.c: Likewise.
50962         * lib/getaddrinfo.c: Likewise.
50963         * lib/getdelim.c: Likewise.
50964         * lib/getline.c: Likewise.
50965         * lib/hmac-md5.c: Likewise.
50966         * lib/hmac-sha1.c: Likewise.
50967         * lib/iconvme.c: Likewise.
50968         * lib/md2.c: Likewise.
50969         * lib/md4.c: Likewise.
50970         * lib/memxor.c: Likewise.
50971         * lib/read-file.c: Likewise.
50972         * lib/readline.c: Likewise.
50973         * lib/rijndael-alg-fst.c: Likewise.
50974         * lib/rijndael-api-fst.c: Likewise.
50975         * lib/xgetdomainname.c: Likewise.
50976
50977 2006-10-28  Eric Blake  <ebb9@byu.net>
50978
50979         * lib/xstrndup.c: Assume config.h.
50980
50981 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50982
50983         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50984         stat-macros.h is now for our own macros, whereas stat_h is for
50985         macros in the <sys/stat.h> name space.
50986         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50987         (STAT_MACROS_H): Remove.
50988         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50989         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50990         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50991         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50992         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50993         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50994         Move these macros to ...
50995         * lib/stat_.h: here.  Don't include stat-macros.h.
50996         * lib/canonicalize.c: Don't include stat-macros.h.
50997         * lib/chown.c: Likewise.
50998         * lib/euidaccess.c: Likewise.
50999         * lib/file-type.c: Likewise.
51000         * lib/filemode.c: Likewise.
51001         * lib/glob.c: Likewise.
51002         * lib/isapipe.c: Likewise.
51003         * lib/lchown.c: Likewise.
51004         * lib/lstat.c: Likewise.
51005         * lib/mkdir-p.c: Likewise.
51006         * lib/rmdir.c: Likewise.
51007         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51009         unless mkdir isn't declared, to speed up 'configure'.
51010         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51011         would define all the S_* symbols.
51012         * modules/canonicalize (Depends-on):
51013         Depend on sys_stat, not stat-macros.
51014         * modules/chown: Likewise.
51015         * modules/euidaccess: Likewise.
51016         * modules/filemode: Likewise.
51017         * modules/file-type: Likewise.
51018         * modules/glob: Likewise.
51019         * modules/isapipe: Likewise.
51020         * modules/lchown: Likewise.
51021         * modules/lstat: Likewise.
51022         * modules/mkancesdirs: Likewise.
51023         * modules/rmdir: Likewise.
51024         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51025         * modules/modechange: Likewise.
51026         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51027         (configure.ac): Remove gl_STAT_MACROS.
51028         * modules/sys_stat (Depends-on): Remove stat-macros.
51029
51030 2006-10-27  Bruno Haible  <bruno@clisp.org>
51031
51032         * m4/signed.m4: Remove file.
51033         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51034         invocation.
51035         * modules/vasnprintf (Files): Remove m4/signed.m4.
51036
51037 2006-10-27  Bruno Haible  <bruno@clisp.org>
51038
51039         Update to GNU gettext 0.16.
51040         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51041         m4/inttypes-h.m4, m4/signed.m4.
51042         * m4/gettext.m4: Update to GNU gettext 0.16.
51043         * m4/intl.m4: New file, from GNU gettext.
51044         * m4/intldir.m4: New file, from GNU gettext.
51045         * config/srclist.txt: Update
51046
51047 2006-10-27  Eric Blake  <ebb9@byu.net>
51048
51049         * MODULES.html.sh: Document tempname.
51050         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51051         dependencies.
51052         (Files): Move lib/tempname.c...
51053         * modules/tempname: ...to this new module.
51054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51055         (gl_PREREQ_TEMPNAME): Move...
51056         * m4/tempname.m4: ...to this new file.
51057         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51058         * modules/sys_stat (Depends-on): Add stat-macros.
51059         * lib/stat_.h (includes): Pick up stat macros.
51060         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51061         if stat macros are broken.
51062         * lib/tempname.c (includes): No need to include "stat-macros.h".
51063         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51064         (direxists, __path_search) [!_LIBC]: Don't compile these in
51065         gnulib; the tmpdir module covers that.
51066         * lib/tempname.h: New file.
51067
51068 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51069
51070         * COPYING: Explain how gnulib-tool converts licence headers.
51071         Almost all wording by Eric Blake.
51072
51073 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         * lib/mbchar.h (is_basic_table): Make read-only.
51076         * lib/mbchar.c (is_basic_table): Likewise.
51077         Reported by John Darrington.
51078
51079 2006-10-25  Bruno Haible  <bruno@clisp.org>
51080
51081         * lib/progname.h (set_program_name): Undefine before defining.
51082
51083 2006-10-25  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51086         false for non-gcc C++ compilers.
51087         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51088
51089 2006-10-24  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51092         iconv implementations like Irix iconv.
51093
51094 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         * modules/vararrays: New file.
51097         * m4/vararrays.m4: New file, taken from diffutils.
51098         * MODULES.html.sh: New module vararrays.
51099
51100 2006-10-24  Karl Berry  <karl@gnu.org>
51101
51102         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51103         Don't call GNU Unix.
51104
51105 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51106
51107         * users.txt: Add Libtool.
51108
51109         Sync from Libtool:
51110
51111         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51114         to gnulib's policy of including config.h unconditionally.
51115
51116 2006-10-24  Bruno Haible  <bruno@clisp.org>
51117
51118         * modules/wcwidth (Files): Add m4/wint_t.m4.
51119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51120         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51121
51122 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51123
51124         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51125         to pacify GCC with some -W flags enabled.  Problem reported by
51126         Bruno Haible.
51127
51128 2006-10-24  Jim Meyering  <jim@meyering.net>
51129
51130         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51131         Reported by Karl Berry.
51132
51133 2006-10-23  Bruno Haible  <bruno@clisp.org>
51134
51135         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51136
51137 2006-10-24  Bruno Haible  <bruno@clisp.org>
51138
51139         * lib/gl_list.h: Use C comment style, not C++ comment style.
51140
51141 2006-10-23  Eric Blake  <ebb9@byu.net>
51142
51143         * lib/getaddrinfo.c (includes): Add missing include.
51144
51145 2006-10-23  Bruno Haible  <bruno@clisp.org>
51146             Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         Ability to rename obstack_free.
51149         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51150         obstack_free.
51151         (obstack_free): Invoke the __obstack_free macro.
51152         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51153
51154 2006-10-23  Bruno Haible  <bruno@clisp.org>
51155             Paul Eggert  <eggert@cs.ucla.edu>
51156
51157         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51158         __argc, __argv from the declaration. (They are defined as macros on
51159         mingw.)
51160
51161 2006-10-22  Bruno Haible  <bruno@clisp.org>
51162
51163         * doc/gnulib-intro.texi: New file.
51164         * doc/gnulib.texi: Include it.
51165
51166 2006-10-21  Bruno Haible  <bruno@clisp.org>
51167
51168         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51169         "Introduction", "Miscellanous Notes", "Particular Modules".
51170
51171 2006-10-21  Bruno Haible  <bruno@clisp.org>
51172
51173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51174         Change mostlyclean-local rule to avoid sh syntax error from bash
51175         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51176
51177 2006-10-23  Jim Meyering  <jim@meyering.net>
51178
51179         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51180         in place of snprintf.
51181
51182         * modules/inttostr (Files): Add lib/uinttostr.c.
51183         * lib/uinttostr.c (inttostr): New file/function.
51184         * lib/inttostr.h (uinttostr): Declare.
51185         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51186         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51187         Add uinttostr.
51188         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51189
51190 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51191
51192         * lib/canonicalize.c (ELOOP): Define if not already defined.
51193         Problem reported by Bruno Haible in
51194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51195
51196 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51197
51198         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51199         Problem reported by Perry Smith and Ville Laurikari.
51200
51201         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51202         uses.
51203
51204 2006-10-19  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51207         for mingw.
51208
51209 2006-10-19  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51212         Needed for mingw.
51213
51214 2006-10-19  Bruno Haible  <bruno@clisp.org>
51215
51216         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51217
51218 2006-10-19  Bruno Haible  <bruno@clisp.org>
51219
51220         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51221         it.
51222
51223 2006-10-19  Bruno Haible  <bruno@clisp.org>
51224
51225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51226         invocation.
51227
51228 2006-10-19  Bruno Haible  <bruno@clisp.org>
51229
51230         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51231         mountlist by default.
51232
51233 2006-10-16  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/c-strstr.c: Include c-strstr.h.
51236
51237 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51238
51239         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51240         in a slash.
51241
51242 2006-10-18  Bruno Haible  <bruno@clisp.org>
51243
51244         * lib/lock.h [C++]: Wrap definitions in extern "C".
51245
51246 2006-10-18  Bruno Haible  <bruno@clisp.org>
51247
51248         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51249         gl_LIBOBJS list.
51250
51251 2006-10-18  Bruno Haible  <bruno@clisp.org>
51252
51253         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51254
51255 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51256
51257         * lib/xstrtol.h: Include gettext.h.
51258         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51259         Problem reported by Eric Blake.
51260         * modules/xstrtol (Depends-on): Add gettext-h.
51261
51262 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51263
51264         * lib/strftime.c (advance): New macro.
51265         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51266         incomplete type, so you can't add 0 to it.  Problem and patch
51267         reported by Eelco Dolstra for dietlibc.
51268
51269 2006-10-18  Jim Meyering  <jim@meyering.net>
51270
51271         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51272         type for a local, and rename it: s/up/user_proc/.
51273
51274 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51275
51276         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51277         READ_UTMP_USER_PROCESS.
51278         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51279
51280 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51281
51282         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51283         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51284
51285 2006-10-17  Eric Blake  <ebb9@byu.net>
51286
51287         * lib/sigprocmask.c (sigprocmask): Fix typo.
51288
51289         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51290
51291         * modules/clean-temp (Makefile.am): Don't add to make output...
51292         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51293         config.h.
51294
51295 2006-10-17  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51298         differently if DEFAULT_TEXT_DOMAIN is set.
51299
51300 2006-10-16  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/clean-temp.c: Include fwriteerror.h.
51303
51304 2006-10-16  Bruno Haible  <bruno@clisp.org>
51305
51306         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51307
51308 2006-10-16  Bruno Haible  <bruno@clisp.org>
51309
51310         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51311         * lib/sigprocmask.h: Include <sys/types.h>.
51312         (sigset_t): Use the system's definition if present.
51313
51314 2006-10-17  Eric Blake  <ebb9@byu.net>
51315
51316         * lib/xvasprintf.c (includes): Assume config.h.
51317         * lib/xasprintf.c (includes): Likewise.
51318
51319 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51320
51321         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51322         at least as wide as intmax_t.
51323
51324 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51325
51326         (Imported from Automake.)
51327         * build-aux/gnupload: Update to version 1.1 of directive file.
51328
51329 2006-10-16  Eric Blake  <ebb9@byu.net>
51330
51331         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51332         match Automake 1.10a.
51333
51334 2006-10-14  Bruno Haible  <bruno@clisp.org>
51335
51336         * modules/sigprocmask: New file.
51337         * lib/sigprocmask.h: New file.
51338         * lib/sigprocmask.c: New file.
51339         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51340         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51341         request sigprocmask.o.
51342         (gl_PREREQ_SIGPROCMASK): New macro.
51343         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51344         (Depends-on): Add sigprocmask.
51345         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51346         gt_SIGNALBLOCKING. Test for 'raise' only once.
51347         * lib/fatal-signal.c: Include sigprocmask.h.
51348         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51349         unblock_fatal_signals): Define always.
51350         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51351         sigprocmask.
51352
51353 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         Sync from Automake.
51356         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51357         which incorrectly sets the mode of an existing destination
51358         directory.  In some cases the unpatched install-sh could do the
51359         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51360         system.  We hope this is rare in practice, but it's clearly worth
51361         fixing.  Problem reported by Alex Unleashed in
51362         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51363         Also, don't bother to check for -m bugs unless we're using -m;
51364         suggested by Stepan Kasal.
51365
51366 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51367
51368         Sync from Automake.
51369         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51370         `-c' flag, so they appear at the same position as in %FASTDEP%
51371         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51372         which ignores unknown options only after the first non-option.
51373         Bug report against M4 by Nelson H. F. Beebe.
51374
51375 2006-10-13  Jim Meyering  <jim@meyering.net>
51376
51377         Fix a bug in yesterday's change.
51378         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51379         p->fts_statp->st_dev would be used uninitialized.
51380         Ensures that we always call fts_stat on the very first entry.
51381         Miklos Szeredi reported that find -xdev stopped working.
51382
51383 2006-10-12  Bruno Haible  <bruno@clisp.org>
51384
51385         * gnulib-tool (func_get_automake_snippet): Append an automatically
51386         computed EXTRA_DIST augmentation.
51387         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51388         * modules/alloca-opt (Makefile.am): Likewise.
51389         * modules/allocsa (Makefile.am): Likewise.
51390         * modules/arcfour (Makefile.am): Likewise.
51391         * modules/arctwo (Makefile.am): Likewise.
51392         * modules/argmatch (Makefile.am): Likewise.
51393         * modules/argz (Makefile.am): Likewise.
51394         * modules/atexit (Makefile.am): Likewise.
51395         * modules/backupfile (Makefile.am): Likewise.
51396         * modules/byteswap (Makefile.am): Likewise.
51397         * modules/c-strtod (Makefile.am): Likewise.
51398         * modules/c-strtold (Makefile.am): Likewise.
51399         * modules/calloc (Makefile.am): Likewise.
51400         * modules/canon-host (Makefile.am): Likewise.
51401         * modules/canonicalize (Makefile.am): Likewise.
51402         * modules/chdir-long (Makefile.am): Likewise.
51403         * modules/chdir-safer (Makefile.am): Likewise.
51404         * modules/check-version (Makefile.am): Likewise.
51405         * modules/chown (Makefile.am): Likewise.
51406         * modules/cloexec (Makefile.am): Likewise.
51407         * modules/close-stream (Makefile.am): Likewise.
51408         * modules/closeout (Makefile.am): Likewise.
51409         * modules/crc (Makefile.am): Likewise.
51410         * modules/csharpexec (Makefile.am): Likewise.
51411         * modules/cycle-check (Makefile.am): Likewise.
51412         * modules/des (Makefile.am): Likewise.
51413         * modules/dev-ino (Makefile.am): Likewise.
51414         * modules/dirfd (Makefile.am): Likewise.
51415         * modules/dirname (Makefile.am): Likewise.
51416         * modules/dup2 (Makefile.am): Likewise.
51417         * modules/eealloc (Makefile.am): Likewise.
51418         * modules/error (Makefile.am): Likewise.
51419         * modules/euidaccess (Makefile.am): Likewise.
51420         * modules/exclude (Makefile.am): Likewise.
51421         * modules/exitfail (Makefile.am): Likewise.
51422         * modules/fcntl-safer (Makefile.am): Likewise.
51423         * modules/fcntl (Makefile.am): Likewise.
51424         * modules/file-type (Makefile.am): Likewise.
51425         * modules/fileblocks (Makefile.am): Likewise.
51426         * modules/filemode (Makefile.am): Likewise.
51427         * modules/filenamecat (Makefile.am): Likewise.
51428         * modules/fnmatch (Makefile.am): Likewise.
51429         * modules/fopen-safer (Makefile.am): Likewise.
51430         * modules/fpending (Makefile.am): Likewise.
51431         * modules/fprintftime (Makefile.am): Likewise.
51432         * modules/free (Makefile.am): Likewise.
51433         * modules/fsusage (Makefile.am): Likewise.
51434         * modules/ftruncate (Makefile.am): Likewise.
51435         * modules/fts (Makefile.am): Likewise.
51436         * modules/gc-arcfour (Makefile.am): Likewise.
51437         * modules/gc-des (Makefile.am): Likewise.
51438         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51439         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51440         * modules/gc-md4 (Makefile.am): Likewise.
51441         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51442         * modules/gc-sha1 (Makefile.am): Likewise.
51443         * modules/gc (Makefile.am): Likewise.
51444         * modules/getaddrinfo (Makefile.am): Likewise.
51445         * modules/getcwd (Makefile.am): Likewise.
51446         * modules/getdelim (Makefile.am): Likewise.
51447         * modules/getdomainname (Makefile.am): Likewise.
51448         * modules/getgroups (Makefile.am): Likewise.
51449         * modules/gethostname (Makefile.am): Likewise.
51450         * modules/gethrxtime (Makefile.am): Likewise.
51451         * modules/getline (Makefile.am): Likewise.
51452         * modules/getloadavg (Makefile.am): Likewise.
51453         * modules/getlogin_r (Makefile.am): Likewise.
51454         * modules/getndelim2 (Makefile.am): Likewise.
51455         * modules/getopt (Makefile.am): Likewise.
51456         * modules/getpagesize (Makefile.am): Likewise.
51457         * modules/getpass-gnu (Makefile.am): Likewise.
51458         * modules/getpass (Makefile.am): Likewise.
51459         * modules/getsubopt (Makefile.am): Likewise.
51460         * modules/gettime (Makefile.am): Likewise.
51461         * modules/gettimeofday (Makefile.am): Likewise.
51462         * modules/getugroups (Makefile.am): Likewise.
51463         * modules/getusershell (Makefile.am): Likewise.
51464         * modules/glob (Makefile.am): Likewise.
51465         * modules/group-member (Makefile.am): Likewise.
51466         * modules/hard-locale (Makefile.am): Likewise.
51467         * modules/hash (Makefile.am): Likewise.
51468         * modules/hmac-md5 (Makefile.am): Likewise.
51469         * modules/hmac-sha1 (Makefile.am): Likewise.
51470         * modules/human (Makefile.am): Likewise.
51471         * modules/idcache (Makefile.am): Likewise.
51472         * modules/imaxabs (Makefile.am): Likewise.
51473         * modules/imaxdiv (Makefile.am): Likewise.
51474         * modules/inet_ntop (Makefile.am): Likewise.
51475         * modules/inet_pton (Makefile.am): Likewise.
51476         * modules/intprops (Makefile.am): Likewise.
51477         * modules/inttostr (Makefile.am): Likewise.
51478         * modules/inttypes (Makefile.am): Likewise.
51479         * modules/isapipe (Makefile.am): Likewise.
51480         * modules/javaversion (Makefile.am): Likewise.
51481         * modules/lchmod (Makefile.am): Likewise.
51482         * modules/lchown (Makefile.am): Likewise.
51483         * modules/localcharset (Makefile.am): Likewise.
51484         * modules/long-options (Makefile.am): Likewise.
51485         * modules/lstat (Makefile.am): Likewise.
51486         * modules/malloc (Makefile.am): Likewise.
51487         * modules/mathl (Makefile.am): Likewise.
51488         * modules/mbchar (Makefile.am): Likewise.
51489         * modules/md2 (Makefile.am): Likewise.
51490         * modules/md4 (Makefile.am): Likewise.
51491         * modules/md5 (Makefile.am): Likewise.
51492         * modules/memcasecmp (Makefile.am): Likewise.
51493         * modules/memchr (Makefile.am): Likewise.
51494         * modules/memcmp (Makefile.am): Likewise.
51495         * modules/memcoll (Makefile.am): Likewise.
51496         * modules/memcpy (Makefile.am): Likewise.
51497         * modules/memmem (Makefile.am): Likewise.
51498         * modules/memmove (Makefile.am): Likewise.
51499         * modules/mempcpy (Makefile.am): Likewise.
51500         * modules/memrchr (Makefile.am): Likewise.
51501         * modules/memset (Makefile.am): Likewise.
51502         * modules/memxor (Makefile.am): Likewise.
51503         * modules/mkancesdirs (Makefile.am): Likewise.
51504         * modules/mkdir-p (Makefile.am): Likewise.
51505         * modules/mkdir (Makefile.am): Likewise.
51506         * modules/mkdtemp (Makefile.am): Likewise.
51507         * modules/mkstemp (Makefile.am): Likewise.
51508         * modules/mktime (Makefile.am): Likewise.
51509         * modules/modechange (Makefile.am): Likewise.
51510         * modules/mountlist (Makefile.am): Likewise.
51511         * modules/nanosleep (Makefile.am): Likewise.
51512         * modules/obstack (Makefile.am): Likewise.
51513         * modules/openat (Makefile.am): Likewise.
51514         * modules/pagealign_alloc (Makefile.am): Likewise.
51515         * modules/pathmax (Makefile.am): Likewise.
51516         * modules/physmem (Makefile.am): Likewise.
51517         * modules/poll (Makefile.am): Likewise.
51518         * modules/posixtm (Makefile.am): Likewise.
51519         * modules/posixver (Makefile.am): Likewise.
51520         * modules/putenv (Makefile.am): Likewise.
51521         * modules/quote (Makefile.am): Likewise.
51522         * modules/quotearg (Makefile.am): Likewise.
51523         * modules/raise (Makefile.am): Likewise.
51524         * modules/read-file (Makefile.am): Likewise.
51525         * modules/readline (Makefile.am): Likewise.
51526         * modules/readlink (Makefile.am): Likewise.
51527         * modules/readtokens (Makefile.am): Likewise.
51528         * modules/readutmp (Makefile.am): Likewise.
51529         * modules/realloc (Makefile.am): Likewise.
51530         * modules/regex (Makefile.am): Likewise.
51531         * modules/rename-dest-slash (Makefile.am): Likewise.
51532         * modules/rename (Makefile.am): Likewise.
51533         * modules/rijndael (Makefile.am): Likewise.
51534         * modules/rmdir (Makefile.am): Likewise.
51535         * modules/rpmatch (Makefile.am): Likewise.
51536         * modules/safe-read (Makefile.am): Likewise.
51537         * modules/safe-write (Makefile.am): Likewise.
51538         * modules/same-inode (Makefile.am): Likewise.
51539         * modules/same (Makefile.am): Likewise.
51540         * modules/save-cwd (Makefile.am): Likewise.
51541         * modules/savedir (Makefile.am): Likewise.
51542         * modules/setenv (Makefile.am): Likewise.
51543         * modules/settime (Makefile.am): Likewise.
51544         * modules/sha1 (Makefile.am): Likewise.
51545         * modules/sig2str (Makefile.am): Likewise.
51546         * modules/snprintf (Makefile.am): Likewise.
51547         * modules/stat-macros (Makefile.am): Likewise.
51548         * modules/stat-time (Makefile.am): Likewise.
51549         * modules/stdbool (Makefile.am): Likewise.
51550         * modules/stdint (Makefile.am): Likewise.
51551         * modules/stdlib-safer (Makefile.am): Likewise.
51552         * modules/stpcpy (Makefile.am): Likewise.
51553         * modules/stpncpy (Makefile.am): Likewise.
51554         * modules/strcase (Makefile.am): Likewise.
51555         * modules/strcasestr (Makefile.am): Likewise.
51556         * modules/strchrnul (Makefile.am): Likewise.
51557         * modules/strcspn (Makefile.am): Likewise.
51558         * modules/strdup (Makefile.am): Likewise.
51559         * modules/strerror (Makefile.am): Likewise.
51560         * modules/strftime (Makefile.am): Likewise.
51561         * modules/strndup (Makefile.am): Likewise.
51562         * modules/strnlen (Makefile.am): Likewise.
51563         * modules/strpbrk (Makefile.am): Likewise.
51564         * modules/strsep (Makefile.am): Likewise.
51565         * modules/strstr (Makefile.am): Likewise.
51566         * modules/strtod (Makefile.am): Likewise.
51567         * modules/strtoimax (Makefile.am): Likewise.
51568         * modules/strtok_r (Makefile.am): Likewise.
51569         * modules/strtol (Makefile.am): Likewise.
51570         * modules/strtoll (Makefile.am): Likewise.
51571         * modules/strtoul (Makefile.am): Likewise.
51572         * modules/strtoull (Makefile.am): Likewise.
51573         * modules/strtoumax (Makefile.am): Likewise.
51574         * modules/strverscmp (Makefile.am): Likewise.
51575         * modules/sys_socket (Makefile.am): Likewise.
51576         * modules/sys_stat (Makefile.am): Likewise.
51577         * modules/sysexits (Makefile.am): Likewise.
51578         * modules/time_r (Makefile.am): Likewise.
51579         * modules/timegm (Makefile.am): Likewise.
51580         * modules/timespec (Makefile.am): Likewise.
51581         * modules/tmpfile-safer (Makefile.am): Likewise.
51582         * modules/trim (Makefile.am): Likewise.
51583         * modules/unistd-safer (Makefile.am): Likewise.
51584         * modules/unlinkdir (Makefile.am): Likewise.
51585         * modules/unlocked-io (Makefile.am): Likewise.
51586         * modules/userspec (Makefile.am): Likewise.
51587         * modules/utime (Makefile.am): Likewise.
51588         * modules/utimecmp (Makefile.am): Likewise.
51589         * modules/utimens (Makefile.am): Likewise.
51590         * modules/vasnprintf (Makefile.am): Likewise.
51591         * modules/vasprintf (Makefile.am): Likewise.
51592         * modules/vsnprintf (Makefile.am): Likewise.
51593         * modules/xalloc (Makefile.am): Likewise.
51594         * modules/xgetcwd (Makefile.am): Likewise.
51595         * modules/xnanosleep (Makefile.am): Likewise.
51596         * modules/xreadlink (Makefile.am): Likewise.
51597         * modules/xstrtod (Makefile.am): Likewise.
51598         * modules/xstrtol (Makefile.am): Likewise.
51599         * modules/xstrtold (Makefile.am): Likewise.
51600         * modules/yesno (Makefile.am): Likewise.
51601         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51602
51603 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51604
51605         * modules/error (Makefile.am): Distribute files through
51606         EXTRA_DIST, not lib_SOURCES.
51607
51608 2006-10-12  Eric Blake  <ebb9@byu.net>
51609
51610         * modules/error (Makefile.am): Distribute files in /lib.
51611         * modules/obstack (Makefile.am): Likewise.
51612
51613 2006-10-12  Bruno Haible  <bruno@clisp.org>
51614
51615         * modules/acl (Makefile.am): Distribute all files in lib/ through
51616         EXTRA_DIST.
51617         * modules/arcfour (Makefile.am): Likewise.
51618         * modules/arctwo (Makefile.am): Likewise.
51619         * modules/argmatch (Makefile.am): Likewise.
51620         * modules/argz (Makefile.am): Likewise.
51621         * modules/atexit (Makefile.am): Likewise.
51622         * modules/backupfile (Makefile.am): Likewise.
51623         * modules/c-strtod (Makefile.am): Likewise.
51624         * modules/c-strtold (Makefile.am): Likewise.
51625         * modules/calloc (Makefile.am): Likewise.
51626         * modules/canon-host (Makefile.am): Likewise.
51627         * modules/canonicalize (Makefile.am): Likewise.
51628         * modules/chdir-long (Makefile.am): Likewise.
51629         * modules/chdir-safer (Makefile.am): Likewise.
51630         * modules/check-version (Makefile.am): Likewise.
51631         * modules/chown (Makefile.am): Likewise.
51632         * modules/cloexec (Makefile.am): Likewise.
51633         * modules/close-stream (Makefile.am): Likewise.
51634         * modules/closeout (Makefile.am): Likewise.
51635         * modules/crc (Makefile.am): Likewise.
51636         * modules/cycle-check (Makefile.am): Likewise.
51637         * modules/des (Makefile.am): Likewise.
51638         * modules/dirfd (Makefile.am): Likewise.
51639         * modules/dirname (Makefile.am): Likewise.
51640         * modules/dup2 (Makefile.am): Likewise.
51641         * modules/euidaccess (Makefile.am): Likewise.
51642         * modules/exclude (Makefile.am): Likewise.
51643         * modules/exitfail (Makefile.am): Likewise.
51644         * modules/fcntl-safer (Makefile.am): Likewise.
51645         * modules/file-type (Makefile.am): Likewise.
51646         * modules/fileblocks (Makefile.am): Likewise.
51647         * modules/filemode (Makefile.am): Likewise.
51648         * modules/filenamecat (Makefile.am): Likewise.
51649         * modules/fnmatch (Makefile.am): Likewise.
51650         * modules/fopen-safer (Makefile.am): Likewise.
51651         * modules/fpending (Makefile.am): Likewise.
51652         * modules/fprintftime (Makefile.am): Likewise.
51653         * modules/free (Makefile.am): Likewise.
51654         * modules/fsusage (Makefile.am): Likewise.
51655         * modules/ftruncate (Makefile.am): Likewise.
51656         * modules/fts (Makefile.am): Likewise.
51657         * modules/gc (Makefile.am): Likewise.
51658         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51659         * modules/getaddrinfo (Makefile.am): Likewise.
51660         * modules/getcwd (Makefile.am): Likewise.
51661         * modules/getdelim (Makefile.am): Likewise.
51662         * modules/getdomainname (Makefile.am): Likewise.
51663         * modules/getgroups (Makefile.am): Likewise.
51664         * modules/gethostname (Makefile.am): Likewise.
51665         * modules/gethrxtime (Makefile.am): Likewise.
51666         * modules/getline (Makefile.am): Likewise.
51667         * modules/getloadavg (Makefile.am): Likewise.
51668         * modules/getlogin_r (Makefile.am): Likewise.
51669         * modules/getopt (Makefile.am): Likewise.
51670         * modules/getpass (Makefile.am): Likewise.
51671         * modules/getpass-gnu (Makefile.am): Likewise.
51672         * modules/getsubopt (Makefile.am): Likewise.
51673         * modules/gettime (Makefile.am): Likewise.
51674         * modules/gettimeofday (Makefile.am): Likewise.
51675         * modules/getugroups (Makefile.am): Likewise.
51676         * modules/getusershell (Makefile.am): Likewise.
51677         * modules/glob (Makefile.am): Likewise.
51678         * modules/group-member (Makefile.am): Likewise.
51679         * modules/hard-locale (Makefile.am): Likewise.
51680         * modules/hash (Makefile.am): Likewise.
51681         * modules/hmac-md5 (Makefile.am): Likewise.
51682         * modules/hmac-sha1 (Makefile.am): Likewise.
51683         * modules/human (Makefile.am): Likewise.
51684         * modules/idcache (Makefile.am): Likewise.
51685         * modules/imaxabs (Makefile.am): Likewise.
51686         * modules/imaxdiv (Makefile.am): Likewise.
51687         * modules/inet_ntop (Makefile.am): Likewise.
51688         * modules/inet_pton (Makefile.am): Likewise.
51689         * modules/inttostr (Makefile.am): Likewise.
51690         * modules/isapipe (Makefile.am): Likewise.
51691         * modules/lchown (Makefile.am): Likewise.
51692         * modules/long-options (Makefile.am): Likewise.
51693         * modules/lstat (Makefile.am): Likewise.
51694         * modules/malloc (Makefile.am): Likewise.
51695         * modules/mathl (Makefile.am): Likewise.
51696         * modules/mbchar (Makefile.am): Likewise.
51697         * modules/md2 (Makefile.am): Likewise.
51698         * modules/md4 (Makefile.am): Likewise.
51699         * modules/md5 (Makefile.am): Likewise.
51700         * modules/memcasecmp (Makefile.am): Likewise.
51701         * modules/memchr (Makefile.am): Likewise.
51702         * modules/memcmp (Makefile.am): Likewise.
51703         * modules/memcoll (Makefile.am): Likewise.
51704         * modules/memcpy (Makefile.am): Likewise.
51705         * modules/memmem (Makefile.am): Likewise.
51706         * modules/memmove (Makefile.am): Likewise.
51707         * modules/mempcpy (Makefile.am): Likewise.
51708         * modules/memrchr (Makefile.am): Likewise.
51709         * modules/memset (Makefile.am): Likewise.
51710         * modules/memxor (Makefile.am): Likewise.
51711         * modules/mkancesdirs (Makefile.am): Likewise.
51712         * modules/mkdir (Makefile.am): Likewise.
51713         * modules/mkdir-p (Makefile.am): Likewise.
51714         * modules/mkdtemp (Makefile.am): Likewise.
51715         * modules/mkstemp (Makefile.am): Likewise.
51716         * modules/mktime (Makefile.am): Likewise.
51717         * modules/modechange (Makefile.am): Likewise.
51718         * modules/mountlist (Makefile.am): Likewise.
51719         * modules/nanosleep (Makefile.am): Likewise.
51720         * modules/openat (Makefile.am): Likewise.
51721         * modules/pagealign_alloc (Makefile.am): Likewise.
51722         * modules/physmem (Makefile.am): Likewise.
51723         * modules/poll (Makefile.am): Likewise.
51724         * modules/posixtm (Makefile.am): Likewise.
51725         * modules/posixver (Makefile.am): Likewise.
51726         * modules/putenv (Makefile.am): Likewise.
51727         * modules/quote (Makefile.am): Likewise.
51728         * modules/quotearg (Makefile.am): Likewise.
51729         * modules/raise (Makefile.am): Likewise.
51730         * modules/read-file (Makefile.am): Likewise.
51731         * modules/readline (Makefile.am): Likewise.
51732         * modules/readlink (Makefile.am): Likewise.
51733         * modules/readtokens (Makefile.am): Likewise.
51734         * modules/readutmp (Makefile.am): Likewise.
51735         * modules/realloc (Makefile.am): Likewise.
51736         * modules/regex (Makefile.am): Likewise.
51737         * modules/rename (Makefile.am): Likewise.
51738         * modules/rename-dest-slash (Makefile.am): Likewise.
51739         * modules/rijndael (Makefile.am): Likewise.
51740         * modules/rmdir (Makefile.am): Likewise.
51741         * modules/rpmatch (Makefile.am): Likewise.
51742         * modules/safe-read (Makefile.am): Likewise.
51743         * modules/safe-write (Makefile.am): Likewise.
51744         * modules/same (Makefile.am): Likewise.
51745         * modules/save-cwd (Makefile.am): Likewise.
51746         * modules/savedir (Makefile.am): Likewise.
51747         * modules/setenv (Makefile.am): Likewise.
51748         * modules/settime (Makefile.am): Likewise.
51749         * modules/sha1 (Makefile.am): Likewise.
51750         * modules/sig2str (Makefile.am): Likewise.
51751         * modules/snprintf (Makefile.am): Likewise.
51752         * modules/stdlib-safer (Makefile.am): Likewise.
51753         * modules/stpcpy (Makefile.am): Likewise.
51754         * modules/stpncpy (Makefile.am): Likewise.
51755         * modules/strcase (Makefile.am): Likewise.
51756         * modules/strcasestr (Makefile.am): Likewise.
51757         * modules/strchrnul (Makefile.am): Likewise.
51758         * modules/strcspn (Makefile.am): Likewise.
51759         * modules/strdup (Makefile.am): Likewise.
51760         * modules/strerror (Makefile.am): Likewise.
51761         * modules/strftime (Makefile.am): Likewise.
51762         * modules/strndup (Makefile.am): Likewise.
51763         * modules/strnlen (Makefile.am): Likewise.
51764         * modules/strpbrk (Makefile.am): Likewise.
51765         * modules/strsep (Makefile.am): Likewise.
51766         * modules/strstr (Makefile.am): Likewise.
51767         * modules/strtod (Makefile.am): Likewise.
51768         * modules/strtoimax (Makefile.am): Likewise.
51769         * modules/strtok_r (Makefile.am): Likewise.
51770         * modules/strtol (Makefile.am): Likewise.
51771         * modules/strtoll (Makefile.am): Likewise.
51772         * modules/strtoul (Makefile.am): Likewise.
51773         * modules/strtoull (Makefile.am): Likewise.
51774         * modules/strtoumax (Makefile.am): Likewise.
51775         * modules/strverscmp (Makefile.am): Likewise.
51776         * modules/time_r (Makefile.am): Likewise.
51777         * modules/timegm (Makefile.am): Likewise.
51778         * modules/tmpfile-safer (Makefile.am): Likewise.
51779         * modules/unistd-safer (Makefile.am): Likewise.
51780         * modules/unlinkdir (Makefile.am): Likewise.
51781         * modules/userspec (Makefile.am): Likewise.
51782         * modules/utime (Makefile.am): Likewise.
51783         * modules/utimecmp (Makefile.am): Likewise.
51784         * modules/utimens (Makefile.am): Likewise.
51785         * modules/vasnprintf (Makefile.am): Likewise.
51786         * modules/vasprintf (Makefile.am): Likewise.
51787         * modules/vsnprintf (Makefile.am): Likewise.
51788         * modules/xalloc (Makefile.am): Likewise.
51789         * modules/xgetcwd (Makefile.am): Likewise.
51790         * modules/xnanosleep (Makefile.am): Likewise.
51791         * modules/xreadlink (Makefile.am): Likewise.
51792         * modules/xstrtod (Makefile.am): Likewise.
51793         * modules/xstrtol (Makefile.am): Likewise.
51794         * modules/xstrtold (Makefile.am): Likewise.
51795         * modules/yesno (Makefile.am): Likewise.
51796
51797 2006-10-12  Jim Meyering  <jim@meyering.net>
51798
51799         * m4/getloadavg.m4: Revert the change below.
51800
51801         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51802         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51803         fail with a symlink, which is what coreutils' ./bootstrap now
51804         creates by default.
51805
51806 2006-10-12  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51809         mingw.
51810         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51811         MSVC and mingw explicitly.
51812
51813 2006-10-11  Simon Josefsson  <jas@extundo.com>
51814             Bruno Haible  <bruno@clisp.org>
51815
51816         Add support for multiple gnulib-tool invocations in the scope of a
51817         single configure.ac file.
51818         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51819         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51820         with the same contents as the _LIBADD variable.
51821         (func_emit_initmacro_start, func_emit_initmacro_end,
51822         func_emit_initmacro_done): New functions.
51823         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51824         gl_LIBOBJS and gl_LTLIBOBJS.
51825
51826 2006-10-11  Bruno Haible  <bruno@clisp.org>
51827
51828         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51829         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51830         autoreconf. Instead, invoke autopoint explicitly but move back the
51831         *.m4 files from gnulib.
51832
51833 2006-10-11  Bruno Haible  <bruno@clisp.org>
51834
51835         * gnulib-tool (func_usage): Make module names after --create-testdir
51836         optional.
51837         (func_create_testdir): If no module was specified, use nearly all
51838         modules.
51839
51840 2006-10-12  Jim Meyering  <jim@meyering.net>
51841
51842         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51843         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51844         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51845         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51846         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51847         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51848         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51849         (fts_set_stat_required): New function.
51850         (fts_open): Defer the calls to fts_stat, if possible or requested.
51851         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51852         into fts_stat itself.
51853         (fts_read): Perform any required (deferred) fts_stat call.
51854         (fts_build): Likewise, for the directory we're about to open and read.
51855         In the readdir loop, carefully decide whether each entry will require
51856         an eventual call to fts_stat, using dirent.d_type info if available.
51857         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51858         a command line argument into this function.  Update all callers.
51859         Map a return value of FTS_DOT to FTS_D for a command line argument.
51860         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51861         Thanks to Miklos Szeredi for his tenacity and for the initial
51862         bug report about "find" failing on a FUSE-based file system.
51863
51864         * lib/fts.c (fts_open): Use consistent indentation.
51865
51866 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51869         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51870         reported by Jim Meyering.  All uses of cache variables renamed
51871         to match Autoconf's.
51872         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51873         the other one.
51874
51875         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51876         Fix misspelling in diagnostic.
51877
51878 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51879
51880         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51881         defined.  Problem reported by Matthew Woehlke.
51882
51883         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51884         Add support for Tandem NonStop R series.
51885         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51886         Use new macro.
51887
51888         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51889         (has_trailing_slash): Omit size arg; all callers changed.
51890         Omit 'inline', since it doesn't help performance and we'd
51891         need to configure it.
51892         Don't count //, ///, etc. as having a trailing slash.
51893         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51894         (rpl_rename_dest_slash): On failure, use rename's errno rather
51895         than (in some cases) an incorrect or junk errno.
51896         Simplify code by removing need to compute length; this does
51897         cause it to make two passes instead of one over the file name,
51898         but it's worth it.
51899
51900         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51901         change, since Autoconf's version may no longer be appropriate now
51902         that we are using CVS Autoconf's version.  Add support for Tandem.
51903
51904 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51905             Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51908         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51909         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51910         gl_AC_TYPE_LONG_LONG.
51911
51912         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51913         instead of HAVE_LONG_LONG.
51914         * lib/printf-args.c (printf_fetchargs): Likewise.
51915         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51916         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51917         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51918         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51919         gl_AC_TYPE_LONG_LONG.
51920
51921 2006-10-11  Bruno Haible  <bruno@clisp.org>
51922
51923         * m4/longlong.m4: Add comments.
51924         * m4/ulonglong.m4: Likewise.
51925
51926 2006-10-10  Bruno Haible  <bruno@clisp.org>
51927
51928         Make it possible to #define stpcpy, strdup to aliases.
51929         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51930         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51931
51932 2006-10-10  Bruno Haible  <bruno@clisp.org>
51933
51934         Make it possible to #define gcd to an alias.
51935         * lib/gcd.c: Include config.h.
51936
51937 2006-10-10  Bruno Haible  <bruno@clisp.org>
51938
51939         Make it possible to #define c_isascii to an alias.
51940         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51941         defined. Undefine the macros before defining them, to avoid gcc
51942         warnings.
51943         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51944         define NO_C_CTYPE_MACROS early.
51945
51946 2006-10-10  Bruno Haible  <bruno@clisp.org>
51947
51948         Make it possible to #define set_program_name to an alias.
51949         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51950         ENABLE_RELOCATABLE early.
51951
51952 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51953
51954         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51955         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51956         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51957         More generally, don't assume that 64-bit signed int is available
51958         if unsigned int is, and vice versa.
51959         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51960         unsigned symbols, not on their signed counterparts.
51961         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51962         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51963         (UINT64_C, UINTMAX_C):
51964         Likewise.
51965         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51966         unsigned counterparts.
51967         (Have_long_long, Unsigned): New macros.
51968         (Int): Renamed from INT.
51969         (strtoimax): Use the new macros.
51970         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51971         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51972         * modules/inttypes (inttypes.h): Substitute
51973         HAVE_UNSIGNED_LONG_LONG_INT.
51974         * modules/stdint (stdint.h): Likewise.
51975         (Files): Add m4/ulonglong.m4.
51976
51977 2006-10-10  Bruno Haible  <bruno@clisp.org>
51978
51979         Fix a gcc -Wshadow warning.
51980         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51981         to 'bucket'.
51982         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51983         gl_linked_indexof_from_to): Likewise.
51984         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51985         Likewise.
51986         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51987         Likewise.
51988         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51989         Reported by Eric Blake.
51990
51991 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51992
51993         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51994         for NetBSD.  Problem reported by Bruno Haible.
51995
51996 2006-10-09  Jim Meyering  <jim@meyering.net>
51997
51998         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51999         Patch from Bruno Haible.
52000
52001 2006-10-09  Jim Meyering  <jim@meyering.net>
52002
52003         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52004         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52005         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52006
52007 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52008
52009         Don't include <config.h> twice; this doesn't work in some cases,
52010         e.g., when config.h has "#define intmax_t long long int" and
52011         we include <config.h>, <inttypes.h>, <config.h> in that order.
52012         Problem reported by Matthew Woehlke in:
52013         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52014         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52015         * lib/fts-cycle.c: Don't include config.h.
52016         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52017         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52018         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52019         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52020         inttypes.h.
52021         * lib/xstrtoumax.c: Likewise.
52022         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52023         __strtol and the like, so that this module is more like its siblings.
52024         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52025         Remove; no longer needed now that we assume gnulib inttypes.h.
52026
52027 2006-10-08  Bruno Haible  <bruno@clisp.org>
52028
52029         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52030         option.
52031
52032 2006-10-07  Jim Meyering  <jim@meyering.net>
52033
52034         * modules/inttypes (inttypes.h): Revert what seems to have been
52035         an inadvertent part of today's change: use "|", not "/" in the
52036         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52037
52038 2006-10-07  Bruno Haible  <bruno@clisp.org>
52039
52040         * modules/sublist: New file.
52041
52042 2006-10-07  Bruno Haible  <bruno@clisp.org>
52043
52044         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52045         * modules/argz (argz.h): Likewise.
52046         * modules/arpa_inet (arpa/inet.h): Likewise.
52047         * modules/byteswap (byteswap.h): Likewise.
52048         * modules/configmake (configmake.h): Likewise.
52049         * modules/fcntl (fcntl.h): Likewise.
52050         * modules/fnmatch (fnmatch.h): Likewise.
52051         * modules/getopt (getopt.h): Likewise.
52052         * modules/glob (glob.h): Likewise.
52053         * modules/inttypes (inttypes.h): Likewise.
52054         * modules/netinet_in (netinet/in.h): Likewise.
52055         * modules/poll (poll.h): Likewise.
52056         * modules/stdbool (stdbool.h): Likewise.
52057         * modules/stdint (stdint.h): Likewise.
52058         * modules/sys_select (sys/select.h): Likewise.
52059         * modules/sys_socket (sys/socket.h): Likewise.
52060         * modules/sys_stat (sys/stat.h): Likewise.
52061         * modules/sysexits (sysexits.h): Likewise.
52062         * modules/unistd (unistd.h): Likewise.
52063         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52064         Add a "DO NOT EDIT" comment to the generated file.
52065         (func_import): Likewise for gnulib-comp.m4.
52066
52067 2006-10-07  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/gl_sublist.h: New file.
52070         * lib/gl_sublist.c: New file.
52071
52072 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52073
52074         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52075         name (relative to the original working directory) and the file
52076         name component (relative to the temporary working directory).  All
52077         callers changed.
52078         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52079         * lib/mkdir-p.c (make_dir_parents): Likewise.
52080         * lib/mkdir-p.h (make_dir_parents): Likewise.
52081
52082 2006-10-06  Eric Blake  <ebb9@byu.net>
52083
52084         Define several macros for use by the clean-temp module.
52085         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52086         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52088
52089         * lib/clean-temp.h (close_stream_temp): New declaration.
52090         * lib/clean-temp.c (includes): Pull in headers according to what
52091         other modules are in use.
52092         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52093
52094 2006-10-06  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52097         instead of fopen, fwriteerror.
52098
52099 2006-10-06  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52102         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52103         int.
52104         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52105         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52106         Return an error indicator.
52107         Suggested by Eric Blake.
52108
52109 2006-10-06  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52112         Reported by Eric Blake.
52113
52114 2006-10-06  Bruno Haible  <bruno@clisp.org>
52115
52116         * modules/closeout (Description): Mention stderr too.
52117
52118 2006-10-06  Bruno Haible  <bruno@clisp.org>
52119         and Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         * lib/closeout.c (close_stdout): Also close stderr.
52122         * lib/closeout.h: Update comment.
52123
52124 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52127         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52128         * lib/dirchownmod.c: Include lchown.h.
52129         * lib/lchown.c: Don't include files that lchown.h now includes.
52130         Don't declare chown, since lchown.h now does that.
52131         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52132         (lchown): Define to rpl_chown if lchown is declared but
52133         does not exist.  Declare using a prototype if lchown is not
52134         declared.  Add a copyright notice.
52135         * lib/mkstemp.h: Include <unistd.h>.
52136         * lib/openat.c: Include lchown.h.
52137
52138         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52139         we now test for that separately.
52140         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52141         rather than O_NOFOLLOW, when testing whether it's possible to
52142         avoid a race condition reliably.
52143         * lib/savewd.c (savewd_chdir): Likewise.
52144
52145         Remove macros that are no longer needed now that stdint.h is
52146         reliable.
52147         * lib/fsusage.c (UINTMAX_MAX): Remove.
52148         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52149         * lib/utimecmp.c (SIZE_MAX): Remove.
52150
52151         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52152
52153         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52154         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52155         O_NOATIME works.
52156
52157 2006-10-05  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/gl_list.h (gl_sortedlist_search_from_to,
52160         gl_sortedlist_indexof_from_to): New declarations.
52161         (gl_list_implementation): New fields sortedlist_search_from_to,
52162         sortedlist_indexof_from_to.
52163         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52164         inline functions.
52165         * lib/gl_list.c (gl_sortedlist_search_from_to,
52166         gl_sortedlist_indexof_from_to): New functions.
52167         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52168         function.
52169         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52170         (gl_array_sortedlist_search_from_to): New function.
52171         (gl_array_list_implementation): Update.
52172         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52173         function.
52174         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52175         (gl_carray_sortedlist_search_from_to): New function.
52176         (gl_carray_list_implementation): Update.
52177         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52178         gl_linked_sortedlist_indexof_from_to): New functions.
52179         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52180         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52181         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52182         gl_tree_sortedlist_indexof_from_to): New functions.
52183         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52184         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52185         Update.
52186         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52187         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52188         Update.
52189
52190 2006-10-05  Bruno Haible  <bruno@clisp.org>
52191
52192         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52193         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52194         (struct gl_list_implementation): Add fields search_from_to,
52195         indexof_from_to. Remove fields search, indexof.
52196         (gl_list_search): Use the search_from_to method.
52197         (gl_list_search_from, gl_list_search_from_to): New functions.
52198         (gl_list_indexof): Use the indexof_from_to method.
52199         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52200         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52201         (gl_list_search_from, gl_list_search_from_to): New functions.
52202         (gl_list_indexof): Use the indexof_from_to method.
52203         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52204         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52205         gl_array_indexof. Add start_index, end_index arguments.
52206         (gl_array_search_from_to): Renamed from gl_array_search. Add
52207         start_index, end_index arguments.
52208         (gl_array_remove, gl_array_list_implementation): Update.
52209         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52210         gl_carray_indexof. Add start_index, end_index arguments.
52211         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52212         start_index, end_index arguments.
52213         (gl_carray_remove, gl_carray_list_implementation): Update.
52214         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52215         gl_linked_search. Add start_index, end_index arguments.
52216         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52217         start_index, end_index arguments.
52218         (gl_linked_remove): Update.
52219         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52220         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52221         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52222         field to 'size_t'.
52223         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52224         gl_tree_search. Add start_index, end_index arguments.
52225         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52226         start_index, end_index arguments.
52227         (gl_tree_remove): Update.
52228         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52229         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52230         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52231         function.
52232         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52233         gl_tree_search. Add start_index, end_index arguments.
52234         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52235         start_index, end_index arguments.
52236         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52237         Update.
52238         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52239
52240 2006-10-05  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52243
52244         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52245         fwriteerror_temp): New declarations.
52246         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52247         (descriptors): New variable.
52248         (cleanup): First, close the descriptors.
52249         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52250         fclose_temp, fwriteerror_temp): New functions.
52251
52252 2006-10-04  Jim Meyering  <jim@meyering.net>
52253
52254         * lib/fts.c (fts_open): Tiny comment change.
52255
52256 2006-10-04  Bruno Haible  <bruno@clisp.org>
52257
52258         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52259         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52260         gl_LOCK_BODY.
52261         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52262         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52263         gl_LOCK_EARLY_BODY.
52264         (gl_LOCK): Require gl_LOCK_BODY.
52265
52266 2006-10-04  Bruno Haible  <bruno@clisp.org>
52267
52268         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52269         (gl_oset_search_atleast): New declaration.
52270         (struct gl_oset_implementation): Add field 'search_atleast'.
52271         (gl_oset_search_atleast): New inline function.
52272         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52273         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52274         (gl_array_oset_implementation): Update.
52275         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52276         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52277         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52278
52279 2006-10-04  Bruno Haible  <bruno@clisp.org>
52280
52281         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52282
52283 2006-10-03  Bruno Haible  <bruno@clisp.org>
52284
52285         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52286         from gl_avltreehash_list_implementation.
52287
52288 2006-10-03  Bruno Haible  <bruno@clisp.org>
52289
52290         * lib/gl_oset.c (gl_oset_add): Fix return type.
52291
52292 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52293
52294         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52295
52296 2006-10-02  Eric Blake  <ebb9@byu.net>
52297
52298         * modules/strnlen (Depends-on): Add extensions.
52299
52300 2006-10-02  Eric Blake  <ebb9@byu.net>
52301
52302         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52303         definition in 2.60+.
52304
52305 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52306
52307         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52308         checks.
52309
52310 2006-10-02  Bruno Haible  <bruno@clisp.org>
52311
52312         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52313         to the AUTOMAKE_OPTIONS.
52314         Reported by Jim Meyering.
52315
52316 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         Work around bug in Solaris 10 /proc file system:
52319         /proc/self/fd/NNN/.. isn't the parent directory of
52320         the directory whose file descriptor is NNN.  This needs to
52321         be worked around at run time, not compile time, since a
52322         program might be built on Solaris 8, where things work, and
52323         run on Solaris 10.
52324         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52325         to use the following interface instead:
52326         (OPENAT_BUFFER_SIZE): New macro.
52327         (openat_proc_name): New function.
52328         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52329         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52330         Likewise.
52331         * lib/openat-proc.c: New file.
52332         * modules/openat (Files): Add lib/openat-proc.c.
52333         (Depends-on): Add same-inode, stdbool.
52334         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52335
52336 2006-09-29  Bruno Haible  <bruno@clisp.org>
52337
52338         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52339         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52340         argument. Set stdout_closed before testing for ferror, not after.
52341         (fwriteerror, fwriteerror_no_ebadf): New functions.
52342
52343 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52344
52345         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52346
52347 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52348
52349         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52350         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52351
52352 2006-09-28  Jim Meyering  <jim@meyering.net>
52353
52354         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52355         Include <unistd.h>.
52356
52357 2006-09-28  Bruno Haible  <bruno@clisp.org>
52358
52359         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52360         * modules/linkedhash-list (Depends-on): Likewise.
52361         * modules/rbtreehash-list (Depends-on): Likewise.
52362
52363 2006-09-28  Bruno Haible  <bruno@clisp.org>
52364
52365         * lib/strndup.h: Simplify the redefinition of strndup.
52366         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52367         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52368
52369 2006-09-28  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52372         * lib/gl_linkedhash_list.c: Likewise.
52373         * lib/gl_rbtreehash_list.c: Likewise.
52374
52375 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52378         getaddrinfo.
52379
52380         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52381         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52382         it causes <stdio_ext.h> to cause a compile-time error.
52383         Problem reported by Nelson H. F. Beebe.
52384         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52385         of HAVE_DECL___PENDING.
52386
52387         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52388         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52389         declaration.
52390
52391 2006-09-27  Jim Meyering  <jim@meyering.net>
52392
52393         This file could end up with a definition for a function
52394         named __strndup, rather than rpl_strndup on a system with
52395         incomplete weak_alias support.
52396         * lib/strndup.c (strndup): Rename from __strndup.
52397         Remove #defines that used to map __strndup to strndup.
52398         Don't use K&R prototypes.
52399         Remove LIBC-related code, since this file is not sync'd with glibc.
52400         * lib/strndup.h: Revamp, accordingly.
52401         * m4/strndup.m4: Modernize.
52402
52403 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52404
52405         * modules/savewd (Depends-on): Add 'raise'.
52406         * lib/savewd.c: Include <signal.h>, for 'raise'.
52407
52408 2006-09-26  Jim Meyering  <jim@meyering.net>
52409
52410         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52411         when we detect Darwin 8.7.0's acl_get_file bug.
52412         Rearrange to perform the new (below) run-test while $LIBS
52413         contains any acl-related library.  Set USE_ACL at the end.
52414         (gl_ACL_GET_FILE): New function.
52415
52416 2006-09-26  Eric Blake  <ebb9@byu.net>
52417
52418         * lib/verror.c: Include <config.h> unconditionally.
52419
52420 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52421
52422         * modules/clock-time (Maintainer): Add self.
52423         * modules/getlogin_r (Depends-on): Add extensions.
52424
52425 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52426
52427         * modules/clock-time: New module.
52428         * modules/nanosleep (Depends-on): Add clock-time.
52429         * modules/gethrxtime (Depends-on): Likewise.
52430         * modules/gettime (Depends-on): Likewise.
52431         * modules/settime (Depends-on): Likewise.
52432
52433         * modules/fts-lgpl: Depend on openat.
52434         * modules/mkancesdirs: Depend on savewd.
52435         * modules/mkdir-p: Likewise.
52436
52437 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52438
52439         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52440
52441         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52442         `gl_have_arbitrary_file_name_length_limit' to
52443         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52444         actually works between configure runs.
52445
52446 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52447             Bruno Haible  <bruno@clisp.org>
52448
52449         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52450
52451 2006-09-25  Jim Meyering  <jim@meyering.net>
52452
52453         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52454         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52455
52456 2006-09-25  Eric Blake  <ebb9@byu.net>
52457
52458         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52459         exec's in 2006-09-18 patch when shuffling fds.
52460
52461 2006-09-25  Bruno Haible  <bruno@clisp.org>
52462
52463         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52464         Reported by Jim Meyering.
52465
52466 2006-09-24  Jim Meyering  <jim@meyering.net>
52467
52468         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52469         compare a pointer against a literal "0".  That caused failures with
52470         at least HP-UX's hpcc.
52471
52472 2006-09-22  Simon Josefsson  <jas@extundo.com>
52473
52474         * modules/gc-sha1:
52475         * modules/gc-md4:
52476         * modules/gc-hmac-sha1:
52477         * modules/gc-hmac-md5:
52478         * modules/gc-des:
52479         * modules/gc-arcfour: Distribute more files.
52480
52481 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52482
52483         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52484         (gl_linked_iterator_from_to): Initialize struct completely.
52485         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52486         (gl_tree_iterator_from_to): Likewise
52487         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52488         * lib/gl_array_list.c [lint] (gl_array_iterator)
52489         (gl_array_iterator_from_to): Likewise.
52490         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52491         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52492         (gl_carray_iterator_from_to): Likewise.
52493
52494         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52495         * lib/md4.c (md4_process_block): Remove unused variable.
52496         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52497         parentheses for clarity.
52498
52499 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52500
52501         * modules/bison-i18n (Depends-on): Add gettext.
52502
52503 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52504
52505         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52506         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52507         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52508         also add missing comma that caused broken test.
52509         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52510         stdlib.h, for `abort'.
52511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52512         variables.
52513         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52514         include unistd.h if present, for `rmdir'.
52515         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52516         variables.
52517         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52518         in the process include standard headers for prototypes.
52519         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52520         gets declared on GNU/Linux.
52521         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52522         unistd.h, for `rmdir'.
52523         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52524
52525         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52526         always true.
52527         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52528
52529         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52530
52531 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52532
52533         * gnulib-tool (func_version): Create output all at once.  This
52534         may help avoid triggering unnecessary SIGPIPEs, and at any
52535         rate it doesn't hurt.
52536
52537 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52538             Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52541         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52542         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52543
52544         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52545         (gl_FUNC_VASPRINTF): Invoke it.
52546
52547 2006-09-22  Bruno Haible  <bruno@clisp.org>
52548
52549         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52550         getloadavg.c as first argument.
52551
52552 2006-09-22  Bruno Haible  <bruno@clisp.org>
52553
52554         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52555         at the beginning of the gl_INIT macro.
52556         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52557         gl_GETLOADAVG.
52558
52559 2006-09-22  Bruno Haible  <bruno@clisp.org>
52560
52561         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52562         module.
52563         Suggested by Ralf Wildenhues.
52564
52565 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         Import this patch from libc:
52568
52569         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52570
52571         * lib/regex_internal.c (re_string_reconstruct): Handle
52572         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52573         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52574         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52575         re_string_context_at.
52576
52577         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52578         now requires it.
52579         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52580         gl_REGEX now does it for us.
52581         (gl_REGEX): Add test taken from
52582         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52583
52584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52585         Check that large offsets work.  Modernize Autoconf usages.
52586         Prefer "yes" to mean a good thing rather than a bad.
52587         Don't put "#define mkstemp" in config.h, as this might interfere
52588         with standard system headers that "#define mkstemp mkstemp64".
52589
52590         * modules/mkstemp (Depends-on): Add extensions, so that
52591         mkstemp is visible on some platforms.
52592         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52593         (Include): Change to "mkstemp.h" from <stdlib.h>.
52594         (Files): Add mkstemp.h.
52595
52596         * lib/mkstemp.h: New file, since some standard headers
52597         #define mkstemp.
52598         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52599         Include "mkstemp.h".
52600         Make the _LIBC code resemble glibc original more,
52601         e.g., use K&R style.
52602         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52603         (mkstemp): Remove, since mkstemp.h does this for us.
52604         * lib/stdlib--.h: Include mkstemp.h.
52605
52606         Import this patch from libc:
52607
52608         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52609
52610         * lib/tempname.c (__gen_tempname): Change attempts_min
52611         into a macro.  Use preprocessor to decide how to initialize
52612         attempts [Coverity CID 67].
52613
52614 2006-09-20  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/mkdtemp.c: Import from libc.
52617         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52618                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52619                 attempts_min into a macro.  Use preprocessor to decide how to
52620                 initialize attempts [Coverity CID 67].
52621         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52622                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52623                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52624
52625 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52626
52627         * gnulib-tool (func_exit): New function, to allow to pass the
52628         exit status portably through the trap.  Use everywhere.
52629         (--help, --version): Signal a write error.
52630         (trap): catch SIGPIPE, for write errors.
52631         Exit at the end of the trap, with the correct exit status.
52632
52633 2006-09-19  Karl Berry  <karl@gnu.org>
52634
52635         * doc/gnulib.texi: note about the license texinfo files.
52636
52637 2006-09-19  Eric Blake  <ebb9@byu.net>
52638
52639         * gnulib-tool: Avoid space-tab.
52640
52641 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52642
52643         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52644         that prevented coreutils 6.1 from building.  Problem reported
52645         by Petter Reinholdtsen.
52646
52647 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52648
52649         * gnulib-tool (avoidlist): Fix typo that broke options like
52650         --avoid=lock that are used by coreutils bootstrap.
52651
52652 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52653
52654         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52655         more systematically.
52656
52657 2006-09-18  Jim Meyering  <jim@meyering.net>
52658
52659         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52660
52661 2006-09-18  Bruno Haible  <bruno@clisp.org>
52662
52663         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52664
52665 2006-09-18  Bruno Haible  <bruno@clisp.org>
52666
52667         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52668         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52669         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52670         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52671         * m4/gettext.m4: Require autoconf >= 2.52.
52672         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52673         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52674         of gl_cv_header_inttypes_h.
52675
52676 2006-09-18  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/javaversion.c: Include configmake.h.
52679
52680 2006-09-18  Bruno Haible  <bruno@clisp.org>
52681
52682         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52683         avoid that the while loops be executed in a subshell.
52684
52685 2006-09-18  Bruno Haible  <bruno@clisp.org>
52686
52687         * MODULES.html.sh (func_module): Break long lines.
52688         Suggested by Bruce Korb <bkorb@gnu.org>.
52689
52690 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52691
52692         Speed up by a factor of 1.12.
52693         * gnulib-tool (nl): New variable.
52694         (func_import): Rewrite include directive extraction to only read each
52695         directive once.
52696
52697 2006-09-17  Bruno Haible  <bruno@clisp.org>
52698
52699         * modules/javaversion (Makefile.am): Remove DEFS setting.
52700         (Depends-on): Add configmake, for PKGDATADIR definition.
52701
52702 2006-09-17  Bruno Haible  <bruno@clisp.org>
52703
52704         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52705
52706 2006-09-17  Bruno Haible  <bruno@clisp.org>
52707
52708         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52709         (func_modules_transitive_closure, func_modules_add_dummy,
52710         func_modules_to_filelist, func_import, func_create_testdir,
52711         func_create_megatestdir, ...): Use it wherever possible.
52712         Suggested by Ralf Wildenhues.
52713
52714 2006-09-16  Karl Berry  <karl@gnu.org>
52715
52716         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52717         to avoid sectioning errors.
52718         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52719         [ifinfo]: blank line after @center-ed titles.
52720         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52721         Spell FSF address consistently with others.
52722         (These changes approved by rms.)
52723
52724 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52725
52726         Speed up by a factor of 1.61.
52727         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52728         already checked module names again.
52729
52730 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52731
52732         Speed up by a factor of 1.13.
52733         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52734         for new_files, and the input to func_add_or_update.
52735
52736 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52737
52738         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52739         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52740
52741 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52742
52743         * modules/mkancesdirs (Depends-on): Add fcntl.
52744         * modules/savewd: New file.
52745         * MODULES.html.sh (File system functions): Add savewd.
52746
52747         * modules/configmake (Makefile.am): Add support for the
52748         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52749
52750 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52751
52752         * m4/savewd.m4: New file.
52753
52754 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52757         (dirchownmod): New arg FD.  All callers changed.
52758         Use FD rather than opening the directory ourself, as opening is
52759         now the caller's responsibility.
52760         * lib/dirchownmod.h: Likewise.
52761         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52762         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52763         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52764         (test_dir): Remove.
52765         (mkancesdirs): Return length of prefix of FILE that has already
52766         been made, or -2 if there is a child doing the work.  Redo
52767         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52768         ".", and treat ".." specially since it might stray back into
52769         already-created areas.  Use a subprocess if necessary.  New arg
52770         WD; all users changed.  MAKE_DIR function should now return 1
52771         if it creates a directory that is not readable.  Return -2 if
52772         a child process is spun off.
52773         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52774         Adjust signature to match code.
52775         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52776         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52777         all users changed.
52778         * lib/savewd.c, lib/savewd.h: New files.
52779
52780 2006-09-15  Jim Meyering  <jim@meyering.net>
52781
52782         * modules/rename-dest-slash: New module.
52783         * MODULES.html.sh (posix_compat): Add it here.
52784
52785         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52786
52787 2006-09-15  Jim Meyering  <jim@meyering.net>
52788
52789         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52790         file.
52791
52792         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52793
52794 2006-09-15  Jim Meyering  <jim@meyering.net>
52795
52796         * lib/rename-dest-slash.c (has_trailing_slash): Use
52797         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52798         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52799         test before testing whether SRC is a directory.
52800         Suggestions from Bruno Haible.
52801
52802         Avoid a warning about an unused variable.
52803         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52804         into the #ifdef block where it's used.
52805
52806         * lib/rename-dest-slash.c: New file.
52807
52808 2006-09-14  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/allocsa.c: Include <config.h> unconditionally.
52811         * lib/asnprintf.c: Likewise.
52812         * lib/asprintf.c: Likewise.
52813         * lib/c-strcasecmp.c: Likewise.
52814         * lib/c-strcasestr.c: Likewise.
52815         * lib/c-strncasecmp.c: Likewise.
52816         * lib/c-strstr.c: Likewise.
52817         * lib/classpath.c: Likewise.
52818         * lib/clean-temp.c: Likewise.
52819         * lib/concatpath.c: Likewise.
52820         * lib/copy-file.c: Likewise.
52821         * lib/csharpcomp.c: Likewise.
52822         * lib/csharpexec.c: Likewise.
52823         * lib/execute.c: Likewise.
52824         * lib/fatal-signal.c: Likewise.
52825         * lib/findprog.c: Likewise.
52826         * lib/fwriteerror.c: Likewise.
52827         * lib/gl_array_list.c: Likewise.
52828         * lib/gl_array_oset.c: Likewise.
52829         * lib/gl_avltree_list.c: Likewise.
52830         * lib/gl_avltree_oset.c: Likewise.
52831         * lib/gl_avltreehash_list.c: Likewise.
52832         * lib/gl_carray_list.c: Likewise.
52833         * lib/gl_linked_list.c: Likewise.
52834         * lib/gl_linkedhash_list.c: Likewise.
52835         * lib/gl_list.c: Likewise.
52836         * lib/gl_oset.c: Likewise.
52837         * lib/gl_rbtree_list.c: Likewise.
52838         * lib/gl_rbtree_oset.c: Likewise.
52839         * lib/gl_rbtreehash_list.c: Likewise.
52840         * lib/imaxabs.c: Likewise.
52841         * lib/imaxdiv.c: Likewise.
52842         * lib/javacomp.c: Likewise.
52843         * lib/javaexec.c: Likewise.
52844         * lib/javaversion.c: Likewise.
52845         * lib/linebreak.c: Likewise.
52846         * lib/localcharset.c: Likewise.
52847         * lib/lock.c: Likewise.
52848         * lib/mbchar.c: Likewise.
52849         * lib/mbswidth.c: Likewise.
52850         * lib/mkdtemp.c: Likewise.
52851         * lib/pipe.c: Likewise.
52852         * lib/printf-args.c: Likewise.
52853         * lib/printf-parse.c: Likewise.
52854         * lib/progname.c: Likewise.
52855         * lib/progreloc.c: Likewise.
52856         * lib/readlink.c: Likewise.
52857         * lib/sh-quote.c: Likewise.
52858         * lib/stpcpy.c: Likewise.
52859         * lib/stpncpy.c: Likewise.
52860         * lib/strcasecmp.c: Likewise.
52861         * lib/strcasestr.c: Likewise.
52862         * lib/strcspn.c: Likewise.
52863         * lib/striconv.c: Likewise.
52864         * lib/strncasecmp.c: Likewise.
52865         * lib/strnlen1.c: Likewise.
52866         * lib/strstr.c: Likewise.
52867         * lib/strtok_r.c: Likewise.
52868         * lib/tls.c: Likewise.
52869         * lib/tmpdir.c: Likewise.
52870         * lib/unicodeio.c: Likewise.
52871         * lib/unsetenv.c: Likewise.
52872         * lib/vasnprintf.c: Likewise.
52873         * lib/vasprintf.c: Likewise.
52874         * lib/wait-process.c: Likewise.
52875         * lib/xallocsa.c: Likewise.
52876         * lib/xsetenv.c: Likewise.
52877         * lib/xstriconv.c: Likewise.
52878
52879 2006-09-13  Simon Josefsson  <jas@extundo.com>
52880
52881         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52882         that internally, suggested by Ralf Wildenhues
52883         <Ralf.Wildenhues@gmx.de>.
52884
52885 2006-09-13  Simon Josefsson  <jas@extundo.com>
52886
52887         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52888         @LIBOBJS@.
52889         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52890
52891 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52892
52893         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52894         longer worry about uses that don't define HAVE_CONFIG_H.
52895         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52896         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52897         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52898         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52899         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52900         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52901         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52902         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52903         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52904         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52905         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52906         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52907         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52908         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52909         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52910         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52911         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52912         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52913         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52914         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52915         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52916         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52917         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52918         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52919         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52920         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52921         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52922         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52923         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52924         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52925         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52926         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52927         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52928         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52929         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52930         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52931         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52932         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52933         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52934         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52935         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52936         Likewise.
52937
52938 2006-09-13  Eric Blake  <ebb9@byu.net>
52939
52940         * lib/getopt.c: Fix typo in last commit.
52941
52942 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52943
52944         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52945         dgettext.
52946
52947 2006-09-12  Jim Meyering  <jim@meyering.net>
52948
52949         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52950         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52951         Reported by Nelson H. F. Beebe.
52952
52953 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52954
52955         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52956         program_invocation_name and program_invocation_short_name are
52957         initialized.
52958         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52959         and program_invocation_short_name to argp.h, so they are visible
52960         to user programs.
52961         * lib/argp.h: Likewise
52962
52963 2006-09-10  Bruno Haible  <bruno@clisp.org>
52964
52965         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52966         m4/inttypes_h.m4, m4/uintmax_t.m4.
52967
52968 2006-09-10  Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52971         gl_AC_TYPE_UINTMAX_T.
52972
52973 2006-09-10  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52976
52977 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52978
52979         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52980         convention.  Text proposed by Bruno Haible.
52981         (struct argp_option): Document the use of N_() wrappers.
52982
52983         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52984         '\v', and translate the two parts separately, instead of feeding
52985         the whole string to gettext.  This allows to exclude
52986         '\v' from the strings visible to the translator by writing doc
52987         strings as N_("..") "\v" N_("..").
52988
52989 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52990
52991         * config/srclist.txt: Undo latest change; the bug was fixed.
52992
52993 2006-09-09  Bruno Haible  <bruno@clisp.org>
52994
52995         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52996         assignments if building a library without libtool.
52997         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52998         in func_emit_lib_Makefile_am.
52999         (func_import): When building a static library libfoo.a, arrange to
53000         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53001         (func_create_testdir): Likewise.
53002         * modules/gc (configure.ac, Makefile.am): If building statically,
53003         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53004         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53005         * modules/striconv (configure.ac, Makefile.am): Likewise.
53006         Based on a suggestion by Ralf Wildenhues.
53007
53008 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53009
53010         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53011         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53012         Also:
53013
53014         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53015         Add year_2050_test to catch glibc bug 2821
53016         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53017
53018         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53019         Prefer #ifdef to #if.
53020
53021         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53022         Return from 'main' instead of calling 'exit'.
53023
53024 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53025
53026         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53027         returned the maximum time_t value rather than (time_t) -1.
53028         Problem originally reported by William Bardwell
53029         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53030
53031         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53032         Moved to here ...
53033         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53034         ... from here.
53035
53036 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53037
53038         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53039         2821 is fixed.
53040
53041 2006-09-08  Jim Meyering  <jim@meyering.net>
53042
53043         Don't make generated files read-only.  That would bother too many
53044         people.  However, do retain the ability to work when targets are
53045         read-only: remove the destination and temporary files before writing
53046         them (when generated via sed or echo), or by using the -f option for
53047         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53048         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53049         * modules/byteswap, modules/configmake, modules/fcntl:
53050         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53051         * modules/localcharset, modules/netinet_in, modules/poll:
53052         * modules/stdbool, modules/stdint, modules/sys_select:
53053         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53054
53055 2006-09-08  Jim Meyering  <jim@meyering.net>
53056
53057         Avoid new build failure on FreeBSD 6.0.
53058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53059         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53060         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53061
53062 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53063
53064         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53065
53066 2006-09-07  Jim Meyering  <jim@meyering.net>
53067
53068         Fix global typo in last change: use chmod u-w, not chmod u-x.
53069         Spotted by Paul Eggert and Bruce Korb.
53070         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53071         * modules/byteswap, modules/configmake, modules/fcntl:
53072         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53073         * modules/localcharset, modules/netinet_in, modules/poll:
53074         * modules/stdbool, modules/stdint, modules/sys_select:
53075         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53076
53077 2006-09-06  Jim Meyering  <jim@meyering.net>
53078
53079         Make generated files be read-only.
53080         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53081         Ensure that each generated file is now read-only.
53082         * modules/argz: Likewise.
53083         * modules/arpa_inet: Likewise.
53084         * modules/byteswap: Likewise.
53085         * modules/configmake: Likewise.
53086         * modules/fcntl: Likewise.
53087         * modules/fnmatch: Likewise.
53088         * modules/getopt: Likewise.
53089         * modules/glob: Likewise.
53090         * modules/inttypes: Likewise.
53091         * modules/netinet_in: Likewise.
53092         * modules/poll: Likewise.
53093         * modules/stdbool: Likewise.
53094         * modules/stdint: Likewise.
53095         * modules/sys_select: Likewise.
53096         * modules/sys_socket: Likewise.
53097         * modules/sys_stat: Likewise.
53098         * modules/sysexits: Likewise.
53099         * modules/localcharset: Same as above, but continue using temporary
53100         file named "t-$@" (why different?) rather than the "$@-t" used
53101         everywhere else.
53102
53103         * modules/sysexits (Makefile.am): Replace literal occurrences
53104         of "sysexit.h" more readable, and more consistent, "$@".
53105
53106 2006-09-06  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/striconv: New file.
53109         * modules/xstriconv: New file.
53110         * MODULES.html.sh (Internationalization functions): Add striconv,
53111         xstriconv.
53112
53113 2006-09-06  Bruno Haible  <bruno@clisp.org>
53114
53115         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53116         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53117         not using libtool correctly.
53118
53119 2006-09-06  Bruno Haible  <bruno@clisp.org>
53120
53121         * lib/striconv.h: New file.
53122         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53123         iconvstring.c.
53124         * lib/xstriconv.h: New file.
53125         * lib/xstriconv.c: New file.
53126
53127 2006-09-06  Bruno Haible  <bruno@clisp.org>
53128
53129         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53130         lib_..._LDFLAGS.
53131
53132 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53133
53134         * lib/argz_.h: Sync from Libtool.
53135
53136         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53137                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53138
53139         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53140
53141 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53142
53143         * modules/trim: New file.
53144
53145 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53146
53147         * lib/trim.h: New file.
53148         * lib/trim.c: New file.
53149
53150 2006-09-05  Bruno Haible  <bruno@clisp.org>
53151
53152         * MODULES.html.sh (String handling): Add trim.
53153
53154 2006-09-04  Karl Berry  <karl@gnu.org>
53155
53156         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53157         until next release.
53158
53159 2006-09-03  Bruno Haible  <bruno@clisp.org>
53160
53161         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53162         correctly.
53163
53164 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53165
53166         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53167         not gl_GETLOADAVG.  Omit unneeded semicolons.
53168         Problems reported by Ralf Wildenhues in
53169         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53170         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53171         at the end, which is the usual gnulib style.
53172
53173         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53174         of doing all the work ourselves.
53175         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53176         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53177
53178 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53181         Problem reported by Ralf Wildenhues in
53182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53183
53184         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53185         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53186
53187 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53190         yesterday's patch by changing test -n to test -z.
53191
53192 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53193
53194         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53195         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53196         the former is now obsolescent.
53197
53198         * modules/chdir-long (Depends-on): Add fcntl.
53199
53200 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53201
53202         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53203         obsolescent, and programs should use gnulib instead.
53204         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53205         but with prefixes changed.
53206
53207 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53208
53209         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53210         or stdbool.h, because they might not exist while configuring.
53211
53212         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53213         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53214         does that for us.
53215         (O_DIRECTORY): Remove.
53216
53217 2006-08-31  Eric Blake  <ebb9@byu.net>
53218
53219         * gnulib-tool: Don't let emacs change spaces to TAB.
53220
53221 2006-08-31  Bruno Haible  <bruno@clisp.org>
53222
53223         * gnulib-tool: When calling func_import more than once, do it in a
53224         subshell.
53225         Reported by Eric Blake <ebb9@byu.net>.
53226
53227 2006-08-31  Bruno Haible  <bruno@clisp.org>
53228
53229         * gnulib-tool (nl): Remove variable.
53230         (sed_transform_lib_file): Use more robust test for config-h module.
53231         (func_import): Fix typo in 2006-08-25 patch.
53232
53233 2006-08-31  Bruno Haible  <bruno@clisp.org>
53234
53235         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53236         specified, augment Makefile.am variables instead of assigning them.
53237
53238 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         Work around a bug in both the Linux and SunOS 64-bit kernels:
53241         nanosleep mishandles sleeps for longer than 2**31 seconds.
53242         Problem reported by Frank v Waveren in
53243         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53245         Check for nanosleep bug.
53246         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53247
53248 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53249
53250         Work around a bug in both the Linux and SunOS 64-bit kernels:
53251         nanosleep mishandles sleeps for longer than 2**31 seconds.
53252         Problem reported by Frank v Waveren in
53253         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53254         * lib/nanosleep.c (BILLION): New constant.
53255         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53256         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53257         implementation.
53258
53259 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * modules/nanosleep (Depends-on): Add gettime.
53262
53263 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53264         and Simon Josefsson  <jas@extundo.com>
53265         and Oskar Liljeblad  <oskar@osk.mine.nu>
53266
53267         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53268         * gnulib-tool (func_import): New license type 'unmodifiable license
53269         text'.
53270         * modules/fdl: Use it.  Longer description.
53271         * module/gpl, module/lgpl: New files.
53272
53273 2006-08-30  Jim Meyering  <jim@meyering.net>
53274
53275         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53276         shadowing the parameter.
53277
53278 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53279
53280         Sync from Libtool:
53281
53282         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53283
53284         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53285         sharing with gnulib.  Report by Eric Blake.
53286
53287 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         * modules/isapipe: New file.
53290         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53291
53292 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53293
53294         * modules/configmake (Makefile.am): Add a comment, and omit
53295         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53296         by Bruno Haible.
53297
53298 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53299
53300         * m4/isapipe.m4: New file.
53301
53302 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         * lib/isapipe.c, lib/isapipe.h: New files.
53305
53306 2006-08-29  Jim Meyering  <jim@meyering.net>
53307
53308         * modules/configmake (Makefile.am): Make configmake.h depend on
53309         Makefile.  Otherwise, a stale configmake.h could hang around.
53310
53311 2006-08-29  Eric Blake  <ebb9@byu.net>
53312
53313         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53314         resolution of upstream bug 3044.
53315
53316 2006-08-29  Bruno Haible  <bruno@clisp.org>
53317
53318         * modules/localcharset (Depends-on): Add configmake.
53319         (Makefile.am): Remove setting of LIBDIR through DEFS.
53320
53321 2006-08-29  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53324         defined.
53325
53326 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53327
53328         * modules/fcntl: New file.
53329         * modules/chdir-safer (Depends-on): Add fcntl.
53330         * modules/fts: Likewise.
53331         * modules/mkdir-p: Likewise.
53332
53333         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53334         This undoes the most recent change, since we're now addressing the
53335         problem in a different way.
53336
53337         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53338         into output, since the output might be called Makefile.am even
53339         if $makefile_name is something different.
53340         (func_import): Use $makefile_am rather than
53341         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53342         empty.
53343
53344         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53345
53346 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53349         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53350         recent change to stdint.m4, since we're now addressing the problem in a
53351         different way.
53352
53353 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * m4/fcntl_h.m4: New file.
53356
53357 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53358
53359         * lib/fcntl_.h: New file.
53360         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53361         the fcntl module.
53362         * lib/dirchownmod.c: Likewise.
53363         * lib/fts.c: Likewise.
53364
53365         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53366         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53367         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53368         just before including <inttypes.h>, to avoid circular inclusion.
53369
53370 2006-08-28  Jim Meyering  <jim@meyering.net>
53371
53372         * doc/visibility.texi: Actually read and correct the grammar of the
53373         sentence affected by yesterday's change.
53374
53375 2006-08-28  Eric Blake  <ebb9@byu.net>
53376
53377         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53378         needs wrapper.
53379
53380 2006-08-28  Eric Blake  <ebb9@byu.net>
53381
53382         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53383
53384 2006-08-28  Eric Blake  <ebb9@byu.net>
53385
53386         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53387
53388 2006-08-28  Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/c-strstr: New file, from GNU gettext.
53391         * MODULES.html.sh (String handling): Add c-strstr.
53392
53393 2006-08-28  Bruno Haible  <bruno@clisp.org>
53394
53395         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53396         macros.
53397         Reported by Eric Blake.
53398
53399 2006-08-28  Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53402         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53403         * lib/vasprintf.c: Include errno.h, limits.h.
53404         (EOVERFLOW): New fallback definition.
53405         (vasprintf): Test here whether the string length is > INT_MAX.
53406         * lib/vsnprintf.c: Include errno.h, limits.h.
53407         (EOVERFLOW): New fallback definition.
53408         (vsnprintf): Fix bug when generated string was too long for the buffer.
53409         Test here whether the string length is > INT_MAX.
53410
53411 2006-08-28  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/inttypes_.h (SCNX*): Remove definitions.
53414         Reported by Eric Blake.
53415
53416 2006-08-28  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/c-strstr.h: New file, from GNU gettext.
53419         * lib/c-strstr.c: New file, from GNU gettext.
53420
53421 2006-08-28  Bruno Haible  <bruno@clisp.org>
53422
53423         * gnulib-tool: Reorder some statements.
53424
53425 2006-08-28  Bruno Haible  <bruno@clisp.org>
53426
53427         * gnulib-tool: New option --makefile-name.
53428         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53429         $makefile_name.
53430         (func_import): Write $makefile_name to the cache file, and read it from
53431         there unless explicitly specified. Use $makefile_name as file name
53432         instead of Makefile.am. Adjust the recommendations accordingly.
53433
53434 2006-08-28  Bruno Haible  <bruno@clisp.org>
53435
53436         * gnulib-tool (func_verify_module): Check against misapplying patch.
53437
53438 2006-08-28  Bruno Haible  <bruno@clisp.org>
53439
53440         * gnulib-tool (func_relativize, func_relconcat): New functions.
53441         Give an error if --local-dir is given with --update.
53442         Remove trailing slashes from $local_gnulib_dir.
53443         (func_import): Store the relativized $local_gnulib_dir in
53444         gnulib-cache.m4, and read it from there if not specified explicitly.
53445
53446 2006-08-28  Bruno Haible  <bruno@clisp.org>
53447
53448         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53449         is the current directory. Respect also $local_gnulib_dir.
53450
53451 2006-08-28  Bruno Haible  <bruno@clisp.org>
53452             Simon Josefsson  <jas@extundo.com>
53453
53454         BeOS portability.
53455         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53456
53457 2006-08-27  Jim Meyering  <jim@meyering.net>
53458
53459         * doc/visibility.texi: Remove duplicate word: "pointer".
53460
53461 2006-08-26  Bruno Haible  <bruno@clisp.org>
53462
53463         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53464         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53465         (Makefile.am): Create inttypes.h from inttypes_.h.
53466         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53467
53468         * modules/imaxabs: New file.
53469
53470         * modules/imaxdiv: New file.
53471
53472 2006-08-26  Bruno Haible  <bruno@clisp.org>
53473
53474         * m4/inttypes.m4: New file.
53475         * m4/_inttypes_h.m4: Remove file.
53476         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53477         PRI_MACROS_BROKEN.
53478         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53479
53480         * m4/imaxabs.m4: New file.
53481
53482         * m4/imaxdiv.m4: New file.
53483
53484 2006-08-26  Bruno Haible  <bruno@clisp.org>
53485
53486         * lib/inttypes_.h: New file.
53487         * lib/inttypes.h: Remove file.
53488         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53489
53490         * lib/imaxabs.c: New file.
53491
53492         * lib/imaxdiv.c: New file.
53493
53494 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53495
53496         New config-h module, so that "make" output needn't be cluttered
53497         by -DHAVE_CONFIG_H.
53498         * MODULES.html.sh (Support for building libraries and executables):
53499         Add config-h.
53500         * modules/config-h: New file.
53501         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53502         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53503         the config-h module is used.
53504
53505         New configmake module, so that "make" output needn't be cluttered
53506         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53507         * MODULES.html.sh (Support for building libraries and executables):
53508         Add configmake.
53509         * modules/configmake: New file.
53510
53511 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         * m4/config-h.m4: New file.
53514
53515 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53516
53517         * config/srclist.txt: Add elisp-comp.
53518
53519 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53520
53521         * MODULES.html.sh (Support for building libraries and executables):
53522         Add elisp-comp.
53523         * build-aux/elisp-comp: New file.
53524         * modules/elisp-comp: New file.
53525
53526 2006-08-24  Bruno Haible  <bruno@clisp.org>
53527
53528         * gnulib-tool (func_create_testdir): Use non-default values of
53529         sourcebase and m4base.
53530
53531 2006-08-24  Bruno Haible  <bruno@clisp.org>
53532
53533         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53534         HTML structure.
53535
53536 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53537
53538         * modules/openat (Depends-on): Add lchown.
53539
53540 2006-08-23  Bruno Haible  <bruno@clisp.org>
53541
53542         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53543         of gl_LOCK_EARLY instead of gl_LOCK.
53544
53545 2006-08-23  Bruno Haible  <bruno@clisp.org>
53546
53547         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53548         on OSF/1 to no.
53549         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53550
53551 2006-08-23  Bruno Haible  <bruno@clisp.org>
53552
53553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53554         as unusable.
53555
53556         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53557         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53558         (gl_LOCK): New macro.
53559
53560 2006-08-22  Simon Josefsson  <jas@extundo.com>
53561
53562         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53563         to md5 module.
53564
53565 2006-08-22  Simon Josefsson  <jas@extundo.com>
53566
53567         * MODULES.html.sh: Add "Support for maintaining and release
53568         projects".
53569
53570         * build-aux/gnupload: New file, from coreutils.
53571
53572 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53573
53574         Avoid the need for AC_LIBSOURCES in m4 macros.
53575         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53576         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53577         * modules/check-version (EXTRA_DIST): Add check-version.h.
53578         * modules/crc (EXTRA_DIST): Add crc.h.
53579         * modules/des (EXTRA_DIST): Add des.h.
53580         * modules/gc (EXTRA_DIST): Add gc.h.
53581         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53582         * modules/getline (EXTRA_DIST): Add getline.h.
53583         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53584         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53585         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53586         * modules/md2 (EXTRA_DIST): Add md2.h.
53587         * modules/md4 (EXTRA_DIST): Add md4.h.
53588         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53589         * modules/read-file (EXTRA_DIST): Add read-file.h.
53590         * modules/readline (EXTRA_DIST): Add readline.h.
53591         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53592         rijndael-api-fst.h.
53593
53594 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53595
53596         * m4/rijndael.m4 (gl_ARCFOUR):
53597         * m4/arctwo.m4 (gl_ARCTWO):
53598         * m4/check-version.m4 (gl_CHECK_VERSION):
53599         * m4/crc.m4 (gl_CRC):
53600         * m4/des.m4 (gl_DES):
53601         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53602         * m4/gc.m4 (gl_GC):
53603         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53604         * m4/getline.m4 (gl_FUNC_GETLINE):
53605         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53606         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53607         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53608         * m4/md2.m4 (gl_MD2):
53609         * m4/md4.m4 (gl_MD4):
53610         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53611         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53612         * m4/readline.m4 (gl_FUNC_READLINE):
53613         * m4/rijndael.m4 (gl_RIJNDAEL):
53614         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53615         to get the necessary .h files and whatnot.
53616
53617 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53618
53619         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53620         gnulib rather than the other way around.
53621         * config/srclistvars.sh (COREUTILS): Remove.
53622
53623 2006-08-22  Jim Meyering  <jim@meyering.net>
53624
53625         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53626
53627         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53628
53629 2006-08-22  Eric Blake  <ebb9@byu.net>
53630
53631         * modules/regexprops-generic: New file.
53632         * MODULES.html.sh (Support for building documentation): List it.
53633
53634 2006-08-22  Eric Blake  <ebb9@byu.net>
53635
53636         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53637         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53638         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53639         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53640
53641 2006-08-22  Bruno Haible  <bruno@clisp.org>
53642
53643         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53644         and lib_LTLIBRARIES like the other lib_* variables.
53645
53646 2006-08-22  Bruno Haible  <bruno@clisp.org>
53647
53648         * build-aux/x-to-1.in: New file, from GNU gettext.
53649
53650 2006-08-22  Bruno Haible  <bruno@clisp.org>
53651
53652         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53653         <utmpx.h> exists.
53654
53655 2006-08-22  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53658         <utmpx.h> exists.
53659
53660 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53661
53662         BeOS portability.
53663         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53664         exist.
53665         Problem reported by Bruno Haible.
53666
53667 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53668
53669         Avoid the need for AC_LIBSOURCES in m4 macros.
53670         * modules/acl (EXTRA_DIST): Add acl.h.
53671         * modules/argmatch (Files): Add m4/argmatch.m4.
53672         (configure.ac): Add gl_ARGMATCH.
53673         (EXTRA_DIST): Renamed from lib_SOURCES, for
53674         consistency with the other modules.  Remove argmatch.c.
53675         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53676         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53677         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53678         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53679         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53680         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53681         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53682         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53683         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53684         * modules/closeout (EXTRA_DIST): Add closeout.h.
53685         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53686         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53687         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53688         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53689         dirname.h; remove basename.c and stripslash.c.
53690         * modules/exclude (EXTRA_DIST): Add exclude.h.
53691         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53692         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53693         * modules/file-type (EXTRA_DIST): Add file-type.h.
53694         * modules/filemode (EXTRA_DIST): Add filemode.h.
53695         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53696         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53697         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53698         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53699         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53700         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53701         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53702         * modules/getdate (EXTRA_DIST): Add getdate.c.
53703         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53704         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53705         * modules/getpass (EXTRA_DIST): Add getpass.h.
53706         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53707         * modules/group-member (EXTRA_DIST): Add group-member.h.
53708         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53709         * modules/hash (EXTRA_DIST): Add hash.h.
53710         * modules/human (EXTRA_DIST): Add human.h.
53711         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53712         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53713         * modules/lchown (EXTRA_DIST): Add lchown.h.
53714         * modules/long-options (EXTRA_DIST): Add long-options.h.
53715         * modules/lstat (EXTRA_DIST): Add lstat.h.
53716         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53717         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53718         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53719         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53720         * modules/memxor (EXTRA_DIST): Add memxor.h.
53721         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53722         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53723         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53724         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53725         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53726         * modules/physmem (EXTRA_DIST): Add physmem.h.
53727         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53728         * modules/posixver (EXTRA_DIST): Add posixver.h.
53729         * modules/quote (EXTRA_DIST): Add quote.h.
53730         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53731         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53732         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53733         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53734         regex_internal.h regexec.c.
53735         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53736         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53737         * modules/same (EXTRA_DIST): Add same.h.
53738         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53739         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53740         * modules/savedir (EXTRA_DIST): Add savedir.h.
53741         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53742         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53743         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53744         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53745         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53746         * modules/strdup (EXTRA_DIST): Add strdup.h.
53747         * modules/strftime (EXTRA_DIST): Add strftime.h.
53748         * modules/strndup (EXTRA_DIST): Add strndup.h.
53749         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53750         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53751         * modules/time_r (EXTRA_DIST): Add time_r.h.
53752         * modules/timespec (EXTRA_DIST): Add timespec.h.
53753         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53754         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53755         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53756         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53757         * modules/userspec (EXTRA_DIST): Add userspec.h.
53758         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53759         * modules/utimens (EXTRA_DIST): Add utimens.h.
53760         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53761         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53762         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53763         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53764         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53765         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53766         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53767         * modules/yesno (EXTRA_DIST): Add yesno.h.
53768
53769 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53770
53771         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53772
53773         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53774         * m4/dev-ino.m4, same-inode.m4: Remove.
53775
53776         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53777         * m4/acl.m4 (AC_FUNC_ACL):
53778         * m4/backupfile.m4 (gl_BACKUPFILE):
53779         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53780         * m4/canon-host.m4 (gl_CANON_HOST):
53781         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53782         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53783         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53784         * m4/cloexec.m4 (gl_CLOEXEC):
53785         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53786         * m4/closeout.m4 (gl_CLOSEOUT):
53787         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53788         * m4/dirname.m4 (gl_DIRNAME):
53789         * m4/exclude.m4 (gl_EXCLUDE):
53790         * m4/exitfail.m4 (gl_EXITFAIL):
53791         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53792         * m4/file-type.m4 (gl_FILE_TYPE):
53793         * m4/filemode.m4 (gl_FILEMODE):
53794         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53795         * m4/fpending.m4 (gl_FUNC_FPENDING):
53796         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53797         * m4/fts.m4 (gl_FUNC_FTS):
53798         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53799         * m4/getdate.m4 (gl_GETDATE):
53800         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53801         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53802         * m4/getpass.m4 (gl_FUNC_GETPASS):
53803         * m4/gettime.m4 (gl_GETTIME):
53804         * m4/getugroups.m4 (gl_GETUGROUPS):
53805         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53806         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53807         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53808         * m4/hash.m4 (gl_HASH):
53809         * m4/idcache.m4 (gl_IDCACHE):
53810         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53811         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53812         * m4/long-options.m4 (gl_LONG_OPTIONS):
53813         * m4/lstat.m4 (gl_FUNC_LSTAT):
53814         * m4/md5.m4 (gl_MD5):
53815         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53816         * m4/memcoll.m4 (gl_MEMCOLL):
53817         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53818         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53819         * m4/memxor.m4 (gl_MEMXOR):
53820         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53821         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53822         * m4/modechange.m4 (gl_MODECHANGE):
53823         * m4/mountlist.m4 (gl_MOUNTLIST):
53824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53825         * m4/openat.m4 (gl_FUNC_OPENAT):
53826         * m4/pathmax.m4 (gl_PATHMAX):
53827         * m4/physmem.m4 (gl_PHYSMEM):
53828         * m4/posixtm.m4 (gl_POSIXTM):
53829         * m4/posixver.m4 (gl_POSIXVER):
53830         * m4/quote.m4 (gl_QUOTE):
53831         * m4/quotearg.m4 (gl_QUOTEARG):
53832         * m4/readtokens.m4 (gl_READTOKENS):
53833         * m4/readutmp.m4 (gl_READUTMP):
53834         * m4/regex.m4 (gl_REGEX):
53835         * m4/safe-read.m4 (gl_SAFE_READ):
53836         * m4/safe-write.m4 (gl_SAFE_WRITE):
53837         * m4/same.m4 (gl_SAME):
53838         * m4/save-cwd.m4 (gl_SAVE_CWD):
53839         * m4/savedir.m4 (gl_SAVEDIR):
53840         * m4/settime.m4 (gl_SETTIME):
53841         * m4/sha1.m4 (gl_SHA1):
53842         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53843         * m4/stat-macros.m4 (gl_STAT_MACROS):
53844         * m4/stat-time.m4 (gl_STAT_TIME):
53845         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53846         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53847         * m4/strdup.m4 (gl_FUNC_STRDUP):
53848         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53849         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53850         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53851         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53852         * m4/time_r.m4 (gl_TIME_R):
53853         * m4/timespec.m4 (gl_TIMESPEC):
53854         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53855         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53856         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53857         * m4/userspec.m4 (gl_USERSPEC):
53858         * m4/utimecmp.m4 (gl_UTIMECMP):
53859         * m4/utimens.m4 (gl_UTIMENS):
53860         * m4/xalloc.m4 (gl_XALLOC):
53861         * m4/xgetcwd.m4 (gl_XGETCWD):
53862         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53863         * m4/xreadlink.m4 (gl_XREADLINK):
53864         * m4/xstrtod.m4 (gl_XSTRTOD):
53865         * m4/yesno.m4 (gl_YESNO):
53866         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53867         to get the necessary .h files and whatnot.
53868
53869 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53870             Bruno Haible  <bruno@clisp.org>
53871
53872         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53873         /bin/sh understanding of '!' conditional negation.
53874
53875 2006-08-21  Jim Meyering  <jim@meyering.net>
53876
53877         * modules/openat (Depends-on): Really alphabetize.
53878
53879         * modules/acl (Depends-on): Add error and quote.
53880
53881         * check-module (find_included_lib_files): Add at-func.c to the
53882         ok-to-include-more-than-once white list.
53883
53884         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53885
53886 2006-08-21  Bruno Haible  <bruno@clisp.org>
53887
53888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53889         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53890         Reported by Martin Lambers <marlam@marlam.de>.
53891
53892 2006-08-21  Bruno Haible  <bruno@clisp.org>
53893
53894         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53895         specify an installation location, don't emit a noinst_LIBRARIES or
53896         noinst_LTLIBRARIES assignment.
53897
53898 2006-08-21  Bruno Haible  <bruno@clisp.org>
53899
53900         BeOS portability.
53901         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53902         BeOS has mbrtowc() but no <wctype.h>.
53903
53904 2006-08-21  Bruno Haible  <bruno@clisp.org>
53905
53906         BeOS portability.
53907         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53908         exist.
53909
53910 2006-08-21  Bruno Haible  <bruno@clisp.org>
53911
53912         BeOS portability.
53913         * lib/mbchar.h: Include <wctype.h> only if it exists.
53914
53915 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53916
53917         Remove files that are no longer needed by their respective modules.
53918         * m4/obstack.m4: Remove.
53919         * m4/strerror_r.m4: Remove.
53920         * m4/uint32_t.m4: Remove.
53921         * m4/uintptr_t.m4: Remove.
53922         * m4/ullong_max.m4: Remove.
53923         * m4/xstrtoimax.m4: Remove.
53924         * m4/xstrtoumax.m4: Remove.
53925
53926         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53927         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53928         dependencies now capture this.
53929
53930         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53931         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53932         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53933         * m4/human.m4 (gl_HUMAN): Likewise.
53934         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53935         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53936
53937         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53938
53939         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53940         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53941         stdint.
53942         * m4/human.m4 (gl_HUMAN): Likewise.
53943         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53944         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53945         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53946         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53947         * m4/xstrtol (gl_XSTRTOL): Likewise.
53948
53949         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53950         AC_TYPE_LONG_LONG_INT.
53951         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53952         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53953         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53954         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53955
53956         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53957         on stdbool.
53958
53959         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53960         (gl_PREREQ_XSTRTOUL): Remove.
53961
53962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53963
53964         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53965         mode.
53966
53967 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53968
53969         Add and change modules to make it easier for coreutils to use
53970         gnulib-tool.
53971         * modules/backupfile (Files): Remove m4/d-ino.m4.
53972         (Depends-on): Add d-ino.
53973         * modules/cycle-check (Depends-on): Add stdint.
53974         (lib_SOURCES): Add cycle-check.h.
53975         * modules/d-ino: New module.
53976         * modules/d-type: New module.
53977         * modules/error (Files): Remove m4/strerror_r.m4.
53978         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53979         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53980         m4/inttypes_h.m4, m4/uintmax_t.m4.
53981         (Depends-on): Add stdint.
53982         (lib_SOURCES): Add fsusage.h.
53983         * modules/getcwd (Files): Remove d-ino.m4.
53984         (Depends-on): Add d-ino.
53985         * modules/getndelim2 (Depends-on): Add stdint.
53986         * modules/glob (Files): Remove m4/d-type.m4.
53987         (Depends-on): Add d-type.
53988         * modules/host-os: New module.
53989         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53990         m4/inttypes_h.m4, m4/uintmax_t.m4.
53991         * Depends-on: Add stdint.
53992         (lib_SOURCES): Add human.h.
53993         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53994         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53995         m4/uintmax_t.m4, m4/ulonglong.m4.
53996         (Depends-on): Add stdint.
53997         (EXTRA_DIST): Add inttostr.h.
53998         * modules/lchmod: New module.
53999         * modules/link-follow: New module.
54000         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54001         (Depends-on): Add lchmod.
54002         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54003         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54004         (Depends-on): Add stdint.
54005         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54006         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54007         (Depends-on): Add stdint.
54008         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54009         * modules/perl: New module.
54010         * modules/regex (Depends-on): Add stdint.
54011         * modules/rmdir-errno: New module.
54012         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54013         m4/intmax_t.m4.
54014         (Depends-on): Add stdint.
54015         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54016         m4/uintmax_t.m4.
54017         (Depends-on): Add stdint.
54018         * modules/unlink-busy: New module.
54019         * modules/utimecmp (Depends-on): Add stdint.
54020         * modules/uptime: New module.
54021         * modules/winsz-ioctl: New module.
54022         * modules/winsz-termios: New module.
54023         * modules/xnanosleep (Depends-on): Add nanosleep.
54024         * modules/ullong_max: Remove.
54025         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54026         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54027         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54028         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54029         (Depends-on): Add inttypes.
54030         (lib_SOURCES): Add xstrtol.h.
54031         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54032         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54033         * MODULES.html.sh: Move 'assert' into the assert section.
54034         Move 'dummy' into the linking section.
54035         Remove ullong_max.
54036         Add section for compatibility checks for POSIX:2001 functions,
54037         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54038         winsz-ioctl, and winsz-termios into it.
54039         Add lchmod.
54040         Add top-level Misc section and put host-os, perl, and uptime
54041         into it.
54042
54043 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54046         now assume the stdint module.  Do not include inttypes.h.
54047         * lib/fsusage.h: Likewise.
54048         * lib/getndelim2.c: Likewise.
54049         * lib/human.h: Likewise.
54050         * lib/inttostr.h: Likewise.
54051         * lib/obstack.c: Likewise.
54052         * lib/regex_internal.h: Likewise.
54053         * lib/tempname.c: Likewise.
54054         * lib/utimecmp.c: Likewise.
54055         * lib/xstrtol.h: Likewise.
54056
54057         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54058
54059         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54060         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54061         * lib/xtime.h: Likewise.
54062
54063 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         * modules/openat (Files): Add lib/fchmodat.c.
54066         Fixes problem reported by Jay Youngman.
54067
54068 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54069
54070         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54071         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54072
54073 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54074             Bruno Haible  <bruno@clisp.org>
54075
54076         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54077         and is a script that invokes bison. Tighten the code. Add comments.
54078
54079 2006-08-18  Jim Meyering  <jim@meyering.net>
54080
54081         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54082         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54083         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54084         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54085
54086 2006-08-18  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/bison-i18n: New file.
54089         * MODULES.html.sh (Internationalization functions): Add it.
54090
54091 2006-08-18  Bruno Haible  <bruno@clisp.org>
54092
54093         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54094         sys/statvfs.h. When getmntinfo was found, check its declaration and
54095         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54096
54097 2006-08-18  Bruno Haible  <bruno@clisp.org>
54098
54099         * m4/bison-i18n.m4: New file, from bison.
54100
54101 2006-08-18  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54104         (ME_DUMMY): Treat "kernfs" as a dummy.
54105         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54106
54107 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54108
54109         Update from coreutils.
54110
54111         2006-08-15  Jim Meyering  <jim@meyering.net>
54112
54113         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54114
54115         2006-01-17  Jim Meyering  <jim@meyering.net>
54116
54117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54118
54119         2006-01-11  Jim Meyering  <jim@meyering.net>
54120
54121         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54122         Check for the lchmod function.
54123
54124 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54125
54126         Update from coreutils.
54127
54128         * lib/__fpending.h: Add copyright notice.
54129         * lib/fprintftime.h: Likewise.
54130         * lib/savedir.c: Use (C) in copyright notice.
54131         * lib/savedir.h: Likewise.
54132
54133         2006-08-15  Jim Meyering  <jim@meyering.net>
54134
54135         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54136         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54137         in support of the EXPECTED_ERRNO macro.
54138         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54139         definitions.  Instead, define the appropriate symbols and include
54140         "at-func.c".
54141         * lib/mkdirat.c (mkdirat): Likewise.
54142         * lib/fchmodat.c (fchmodat): Likewise.
54143         (ENOSYS): Remove definition.
54144         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54145         it.  Don't include "unistd--.h" -- it wasn't ever used.
54146
54147         2006-01-17  Jim Meyering  <jim@meyering.net>
54148
54149         Rewrite fts.c not to change the current working directory,
54150         by using openat, fstatat, fdopendir, etc..
54151
54152         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54153         (HAVE_OPENAT_SUPPORT): Define.
54154         [_LIBC] (fchdir): Don't undef or define; no longer used.
54155         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54156         Now, this `function' always succeeds, and consumes its file descriptor
54157         parameter -- so callers must not close such FDs.  Update callers.
54158         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54159         (diropen): Add parameter, SP.  Adjust all callers.
54160         Implement using diropen_fd, rather than open.
54161         (fts_open): Initialize new member, fts_cwd_fd.
54162         Remove fts_rft-setting code.
54163         (fts_close): Close fts_cwd_fd, if necessary.
54164         (__opendir2): Define in terms of opendir or opendirat,
54165         depending on whether the FST_NOCHDIR flag is set.
54166         (fts_build): Since fts_safe_changedir consumes its FD, and since
54167         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54168         and close the dup'd file descriptor upon failure.
54169         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54170         (fts_safe_changedir): Tweak semantics to reflect that this function
54171         now calls cwd_advance_fd and hence consumes its FD argument.
54172         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54173         [struct FTS] (fts_rft): Remove now-unused member.
54174         [struct FTS] (fts_cycle.state): Improve comment.
54175
54176         * lib/openat.c (openat_needs_fchdir): New function.
54177         * lib/openat.h (openat_needs_fchdir): Declare it.
54178
54179 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54180
54181         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54182         Problem and fix reported by Pádraig Brady in
54183         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54184
54185 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54186
54187         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54188
54189 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/memcoll.c (memcoll): Optimize for the common case where the
54192         arguments are bytewise equal.
54193
54194 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54195
54196         * doc/regexprops-generic.texi: Add a copyright notice.
54197
54198 2006-08-15  Bruno Haible  <bruno@clisp.org>
54199
54200         * modules/tmpdir (License): Change to LGPL.
54201
54202 2006-08-15  Bruno Haible  <bruno@clisp.org>
54203
54204         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54205         module.
54206
54207 2006-08-14  Simon Josefsson  <jas@extundo.com>
54208
54209         * config/srclist.txt: Add gnupload.
54210
54211 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54212
54213         Change copyright notice from LGPL 2 to GPL 2, since that's the
54214         standard form used in the gnulib repository.
54215         * tests/test-lock.c: Likewise.
54216         * tests/test-stdint.c: Likewise.
54217         * tests/test-tls.c: Likewise.
54218
54219         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54220         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54221         Add copyright notice.
54222
54223         * check-module: Add copyright notice.  Output a copyright
54224         notice if "--version" is specified.
54225         * modules/COPYING: New file.
54226         * tests/test-getaddrinfo.c: Add copyright notice.
54227         * tests/test-verify.c: Likewise.
54228
54229 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54230
54231         Change copyright notice from LGPL 2 to GPL 2, since that's the
54232         standard form used in the gnulib repository.
54233         * lib/lock.c: LGPL -> GPL.
54234         * lib/lock.h: Likewise.
54235         * lib/strnlen1.c: Likewise.
54236         * lib/strnlen1.h: Likewise.
54237         * lib/tls.c: Likewise.
54238         * lib/tls.h: Likewise.
54239         * lib/tmpdir.c: Likewise.
54240
54241         * lib/TODO: Remove; this belongs only in coreutils.
54242
54243 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         Add copyright notices to long-enough files that lack them, since
54246         otherwise the files aren't clearly free.  Use the same notice that
54247         getdate.texi already uses.
54248         * doc/alloca-opt.texi: Add copyright notice.
54249         * doc/alloca.texi: Likewise.
54250         * doc/ctime.texi: Likewise.
54251         * doc/functions.texi: Likewise.
54252         * doc/gcd.texi: Likewise.
54253         * doc/gnulib-tool.texi: Likewise.
54254         * doc/inet_ntoa.texi: Likewise.
54255         * doc/visibility.texi: Likewise.
54256
54257         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54258         * doc/quote.texi: Add copyright notice.
54259
54260         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54261         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54262         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54263         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54264         is now obsolete, and give a pointer to the Sun list.
54265         Add copyright notice.
54266
54267 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54268
54269         * config/srclistvars.sh: Add copyright notice.
54270
54271 2006-08-14  Eric Blake  <ebb9@byu.net>
54272
54273         Import the following change from libc:
54274
54275         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54276
54277         Upstream bug 2997.
54278         * lib/misc/error.c: Add space between program name and message if file
54279         name is missing.
54280
54281 2006-08-12  Karl Berry  <karl@gnu.org>
54282
54283         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54284         remove, these originate in gnulib now.
54285
54286 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54287
54288         * doc/Makefile (standards.info standards.html standards.dvi):
54289         Also depend on make-stds.texi.
54290
54291 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54292
54293         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54294         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54295
54296         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54297         in wchar_t.  Problem reported by Eric Blake.
54298
54299         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54300         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54301         Also, help the compiler to keep LEN in a register.
54302
54303 2006-08-11  Eric Blake  <ebb9@byu.net>
54304
54305         * users.txt: Sort.  Add tar.
54306
54307 2006-08-11  Bruno Haible  <bruno@clisp.org>
54308
54309         * users.txt: New file.
54310
54311 2006-08-11  Bruno Haible  <bruno@clisp.org>
54312
54313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54314         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54315
54316 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54317
54318         * modules/snprintf (Depends-on): Remove minmax.
54319         (Maintainer): Add self and Bruno.
54320
54321 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54322
54323         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54324         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54325         (EOVERFLOW): Define if the system does not.
54326         Do not include "minmax.h"; it wasn't used.
54327         (snprintf): Don't assume size_t promotes to an unsigned type.
54328         Fix bug when generated string was too long for the buffer: the
54329         buffer's contents are supposed to be the initial prefix of the
54330         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54331         exceeds INT_MAX; do the check ourselves.
54332
54333         Import the following changes from libc:
54334
54335         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54336
54337         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54338         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54339         set wc to the byte which couldn't be converted.
54340         (re_string_reconstruct): Don't clear valid_raw_len before calling
54341         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54342         tip_context using re_string_context_at.
54343
54344         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54345
54346         * lib/posix/regex.h: g++ still cannot handled [restrict].
54347
54348         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54349
54350         * lib/posix/regex.h: Remove special handling for VMS.
54351
54352 2006-08-10  Jim Meyering  <jim@meyering.net>
54353
54354         * modules/same-inode: New module.
54355         * modules/dev-ino: New module.
54356         * modules/cycle-check: Depend on these modules, rather than simply
54357         including their .h files.
54358         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54359         required via m4/cycle-check.m4.
54360         * modules/same: Depend on new same-inode module, rather than
54361         including same-inode.h.
54362         * modules/chdir-safer: New file.
54363
54364         * modules/chown (Depends-on): Add stat-macros.
54365
54366 2006-08-10  Jim Meyering  <jim@meyering.net>
54367
54368         * m4/cycle-check.m4: New file.
54369         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54370         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54371
54372 2006-08-10  Eric Blake  <ebb9@byu.net>
54373
54374         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54375         in from original proposal.
54376
54377 2006-08-10  Eric Blake  <ebb9@byu.net>
54378         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54379
54380         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54381         namespace.
54382
54383 2006-08-10  Bruno Haible  <bruno@clisp.org>
54384
54385         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54386         as well.
54387
54388 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54389
54390         Sync from coreutils.
54391
54392         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54393
54394         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54395         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54396
54397 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * modules/restrict: Remove; no longer needed now that we assume
54400         Autoconf 2.59 or later.
54401         * MODULES.html.sh: Remove 'restrict'.
54402         * modules/argp (Depends-on): Remove 'restrict'.
54403         * modules/base64 (Depends-on): Likewise.
54404         * modules/gc (Depends-on): Likewise.
54405         * modules/getaddrinfo (Depends-on): Likewise.
54406         * modules/glob (Depends-on): Likewise.
54407         * modules/inet_ntop (Depends-on): Likewise.
54408         * modules/inet_pton (Depends-on): Likewise.
54409         * modules/memxor (Depends-on): Likewise.
54410         * modules/regex (Depends-on): Likewise.
54411         * modules/strtok_r (Depends-on): Likewise.
54412         * modules/time_r (Depends-on): Likewise.
54413
54414 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54415
54416         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54417         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54418         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54419         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54420         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54421         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54422         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54423         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54424
54425         Merge from coreutils.
54426         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54427         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54428         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54429         * m4/time_r.m4 (gl_TIME_R): Likewise.
54430
54431 2006-08-09  Karl Berry  <karl@gnu.org>
54432
54433         * config/srclist.txt: no more gettext-tools, per Bruno.
54434
54435 2006-08-08  Eric Blake  <ebb9@byu.net>
54436
54437         * modules/verror: New module.
54438         * MODULES.html.sh: Document it.
54439
54440 2006-08-08  Eric Blake  <ebb9@byu.net>
54441
54442         * lib/verror.h, lib/verror.c: New files.
54443
54444 2006-08-08  Eric Blake  <ebb9@byu.net>
54445
54446         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54447         verror_at_line output complies with GNU Coding Standards even when
54448         file is NULL.
54449
54450 2006-08-07  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54453         versions of AIX.
54454         Reported by Ralf Wildenhues.
54455
54456 2006-08-07  Bruno Haible  <bruno@clisp.org>
54457
54458         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54459         in an AC_DEFUN. Needed so that the autoconf snippets can use
54460         AC_REQUIRE.
54461
54462 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54463
54464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54465         Initialize pkgdata_DATA.
54466         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54467         overriding it.
54468
54469 2006-08-06  Eric Blake  <ebb9@byu.net>
54470
54471         * lib/error.h: Fold in some upstream changes from glibc.
54472         * lib/error.c: Likewise.
54473
54474 2006-08-04  Bruno Haible  <bruno@clisp.org>
54475
54476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54477         Make the mostlyclean-local rule depend on mostlyclean-generic.
54478         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54479
54480 2006-07-31  Bruno Haible  <bruno@clisp.org>
54481
54482         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54483         <stdlib.h>, <string.h>.
54484
54485 2006-07-30  Bruno Haible  <bruno@clisp.org>
54486
54487         * modules/readlink (License): Change to LGPL.
54488
54489 2006-07-30  Bruno Haible  <bruno@clisp.org>
54490
54491         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54492         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54493         set PKGDATADIR to point to it.
54494
54495 2006-07-30  Bruno Haible  <bruno@clisp.org>
54496
54497         * modules/csharpexec (configure.ac): Comment out macro invocation.
54498         * modules/javaexec (configure.ac): Likewise.
54499         * modules/javacomp-script (configure.ac): Likewise.
54500
54501         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54502
54503 2006-07-30  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54506         linked-list.
54507
54508 2006-07-30  Bruno Haible  <bruno@clisp.org>
54509
54510         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54511
54512 2006-07-30  Bruno Haible  <bruno@clisp.org>
54513
54514         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54515         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54516         get removed.
54517
54518 2006-07-29  Bruno Haible  <bruno@clisp.org>
54519
54520         Make it possible for gnulib-tool to work with locally modified or
54521         augmented gnulib repositories.
54522         * gnulib-tool (func_usage): Document --local-dir option.
54523         (local_gnulib_dir): New variable.
54524         Handle --local-dir option.
54525         (func_lookup_file): New function.
54526         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54527         (func_get_description, func_get_filelist, func_get_description,
54528         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54529         func_get_automake_snippet, func_get_include_directive,
54530         func_get_license, func_get_maintainer): Use func_lookup_file.
54531         (func_import, func_create_testdir): Use func_lookup_file.
54532
54533 2006-07-29  Bruno Haible  <bruno@clisp.org>
54534
54535         * modules/setenv (Depends-on): Add unistd.
54536
54537 2006-07-29  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54540
54541 2006-07-29  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54544
54545 2006-07-29  Bruno Haible  <bruno@clisp.org>
54546
54547         * gnulib-tool (import, update): If there is no Makefile.am, look at
54548         aclocal.m4, instead of bailing out.
54549
54550 2006-07-29  Bruno Haible  <bruno@clisp.org>
54551
54552         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54553         Categorize the options by when they are useful.
54554
54555 2006-07-29  Bruno Haible  <bruno@clisp.org>
54556
54557         * gnulib-tool (func_usage): Document option --no-libtool.
54558         Handle option --no-libtool.
54559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54560         for changed semantics of $libtool variable.
54561         (func_import): Likewise. If libtool is not used, show this through
54562         an option --no-libtool.
54563         (func_create_testdir): Update.
54564
54565 2006-07-29  Bruno Haible  <bruno@clisp.org>
54566
54567         * gnulib-tool (func_import): Extend error message about missing
54568         --doc-base.
54569
54570 2006-07-29  Bruno Haible  <bruno@clisp.org>
54571
54572         * gnulib-tool (func_import): Don't create the $docbase directory if
54573         there is no file to store there.
54574
54575 2006-07-29  Bruno Haible  <bruno@clisp.org>
54576
54577         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54578         relevant, look for configure.ac there, not in the current directory.
54579         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54580
54581 2006-07-29  Bruno Haible  <bruno@clisp.org>
54582
54583         * gnulib-tool (SORT): New variable.
54584         (func_usage): Undocument --assume-autoconf option.
54585         Remove --assume-autoconf option handling.
54586         (autoconf_minversion): Determine from the contents of configure.ac.
54587         (func_import): Remove autoconf_minversion handling.
54588         Suggested by Eric Blake.
54589
54590 2006-07-29  Bruno Haible  <bruno@clisp.org>
54591
54592         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54593
54594 2006-07-29  Bruno Haible  <bruno@clisp.org>
54595
54596         * config/srclist.txt (*setenv.[ch]): Remove rules.
54597
54598 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54599
54600         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54601
54602 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54603
54604         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54605         arpa/inet.h.
54606
54607 2006-07-28  Simon Josefsson  <jas@extundo.com>
54608
54609         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54610         * modules/inet_pton (Depends-on): Likewise.
54611
54612 2006-07-28  Simon Josefsson  <jas@extundo.com>
54613
54614         * m4/netinet_in_h.m4: New file.
54615
54616 2006-07-28  Simon Josefsson  <jas@extundo.com>
54617
54618         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54619         #include's.
54620
54621 2006-07-28  Simon Josefsson  <jas@extundo.com>
54622
54623         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54624         #include's.
54625
54626 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54629         setgid on directories only if they set these bits.
54630         * lib/modechange.h: Remove obsolete comment about masks.
54631
54632 2006-07-28  Eric Blake  <ebb9@byu.net>
54633
54634         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54635         macro expansion.
54636
54637 2006-07-28  Bruno Haible  <bruno@clisp.org>
54638
54639         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54640
54641 2006-07-28  Bruno Haible  <bruno@clisp.org>
54642
54643         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54644
54645 2006-07-28  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54648         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54649         Define fallbacks.
54650         Avoids link error on FreeBSD 4.x.
54651         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54652
54653         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54654         encoding.
54655         * lib/mbswidth.c (iswcntrl): Likewise.
54656
54657 2006-07-27  Bruno Haible  <bruno@clisp.org>
54658
54659         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54660         test.
54661
54662 2006-07-27  Bruno Haible  <bruno@clisp.org>
54663
54664         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54665         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54666         defined.
54667
54668 2006-07-26  Eric Blake  <ebb9@byu.net>
54669
54670         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54671
54672 2006-07-26  Eric Blake  <ebb9@byu.net>
54673
54674         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54675         like mingw that lack mkstemp.
54676         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54677         avoid compilation warning on mingw.
54678
54679 2006-07-26  Bruno Haible  <bruno@clisp.org>
54680
54681         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54682         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54683         INT_FAST*_MIN, INTPTR_MIN.
54684
54685 2006-07-25  Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/version-etc (Depends-on): Add stdarg.
54688
54689 2006-07-25  Bruno Haible  <bruno@clisp.org>
54690
54691         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54692         complex commands.
54693
54694 2006-07-25  Bruno Haible  <bruno@clisp.org>
54695
54696         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54697         defined in <stdarg.h> or config.h.
54698
54699 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54702         (gl_STDIO_SAFER): Remove.
54703
54704 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         * MODULES.html.sh (File stream based Input/Output):
54707         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54708         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54709         * modules/fopen-safer, modules/tmpfile-safer: New files.
54710         * modules/stdio-safer: Remove.
54711
54712 2006-07-24  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/tmpdir: New file.
54715         * MODULES.html.sh (File system functions): Add it.
54716
54717 2006-07-24  Bruno Haible  <bruno@clisp.org>
54718
54719         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54720         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54721
54722 2006-07-24  Bruno Haible  <bruno@clisp.org>
54723
54724         * modules/clean-temp: New file.
54725
54726 2006-07-24  Bruno Haible  <bruno@clisp.org>
54727
54728         * m4/tmpdir.m4: New file, from GNU gettext.
54729
54730 2006-07-24  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/tmpdir.h: New file, from GNU gettext.
54733         * lib/tmpdir.c: New file, from GNU gettext.
54734
54735 2006-07-24  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/clean-temp.h: New file, from GNU gettext.
54738         * lib/clean-temp.c: New file, from GNU gettext.
54739
54740 2006-07-23  Eric Blake  <ebb9@byu.net>
54741
54742         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54743         (Depends-on): Add binary-io.
54744
54745 2006-07-23  Eric Blake  <ebb9@byu.net>
54746
54747         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54748
54749 2006-07-23  Eric Blake  <ebb9@byu.net>
54750
54751         * lib/tmpfile-safer.c: New file.
54752         * lib/stdio-safer.h (fopen_safer): Add prototype.
54753         * lib/stdio--.h (tmpfile): Make safer.
54754
54755 2006-07-23  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54758         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54759         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54760         gl_linked_remove_at): Use it.
54761
54762 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54763         and Simon Josefsson <jas@extundo.com>
54764
54765         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54766
54767         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54768
54769 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * modules/close-stream: New file.
54772         * modules/closeout (Description): Make it clear that it exits
54773         with a diagnostic on error.
54774         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54775         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54776
54777 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54778
54779         * m4/close-stream.m4: New file.
54780
54781 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * lib/close-stream.c, lib/close-stream.h: New files.
54784
54785 2006-07-22  Bruno Haible  <bruno@clisp.org>
54786
54787         Merge from GNU gettext 0.15.
54788
54789         2006-05-01  Bruno Haible  <bruno@clisp.org>
54790
54791                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54792
54793         2006-07-22  Bruno Haible  <bruno@clisp.org>
54794
54795                 * modules/javaversion: New file.
54796                 * MODULES.html.sh (Java): Add javaversion.
54797
54798         2006-03-12  Bruno Haible  <bruno@clisp.org>
54799
54800                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54801
54802         2005-12-04  Bruno Haible  <bruno@clisp.org>
54803
54804                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54805                 (untested).
54806
54807         2006-06-21  Bruno Haible  <bruno@clisp.org>
54808
54809                 Avoid warnings from recent versions of mcs.
54810                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54811                 -o, -L, -r any more. Use options documented since mcs-1.0
54812                 instead. Similarly for -g.
54813
54814         2005-12-04  Bruno Haible  <bruno@clisp.org>
54815
54816                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54817                 .resources, not .resource.
54818
54819         2005-07-09  Bruno Haible  <bruno@clisp.org>
54820
54821                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54822                 add a .dll suffix.
54823                 Reported by Mark Junker <mjscod@gmx.de>.
54824
54825         2006-07-22  Bruno Haible  <bruno@clisp.org>
54826
54827                 * modules/gettext: Upgrade to gettext-0.15.
54828                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54829                 m4/visibility.m4.
54830                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54831
54832 2006-07-22  Bruno Haible  <bruno@clisp.org>
54833
54834         Merge from GNU gettext 0.15.
54835
54836         2006-03-25  Bruno Haible  <bruno@clisp.org>
54837
54838                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54839
54840         2006-07-21  Bruno Haible  <bruno@clisp.org>
54841
54842                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54843                 "1.1".
54844
54845         2006-05-09  Bruno Haible  <bruno@clisp.org>
54846
54847                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54848                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54849                 for the conftestver execution.
54850
54851         2006-05-01  Bruno Haible  <bruno@clisp.org>
54852
54853                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54854                 optional target-version argument. Verify that the compiler
54855                 groks source of the specified source-version, or add -source
54856                 option as necessary. Verify that the compiler produces
54857                 bytecode in the specified target-version, or add -target and
54858                 -source options as necessary. Make the result of the test
54859                 available as variable CONF_JAVAC. Also log error output in
54860                 config.log.
54861
54862         2006-03-11  Bruno Haible  <bruno@clisp.org>
54863
54864                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54865
54866         2006-05-09  Bruno Haible  <bruno@clisp.org>
54867
54868                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54869                 CLASSPATH_SEPARATOR to a semicolon.
54870
54871         2006-03-12  Bruno Haible  <bruno@clisp.org>
54872
54873                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54874                 available as variable CONF_JAVA, for subsequent autoconf
54875                 tests. Also log error output in config.log.
54876
54877         2006-07-19  Bruno Haible  <bruno@clisp.org>
54878
54879                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54880                 that getline works on glibc2 systems. Needed to avoid trouble
54881                 in relocatable.c.
54882                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54883
54884         2005-12-04  Bruno Haible  <bruno@clisp.org>
54885
54886                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54887                 launcher (untested).
54888
54889         2005-12-04  Bruno Haible  <bruno@clisp.org>
54890
54891                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54892
54893         2006-07-22  Bruno Haible  <bruno@clisp.org>
54894
54895                 * gettext.m4: Update from GNU gettext-0.15.
54896                 * nls.m4: Likewise.
54897                 * po.m4: Likewise.
54898                 * inttypes-pri.m4: Likewise.
54899                 * inttypes-h.m4: Renamed from inttypes.m4.
54900                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54901
54902 2006-07-22  Bruno Haible  <bruno@clisp.org>
54903
54904         Merge from GNU gettext 0.15.
54905
54906         2005-07-05  Bruno Haible  <bruno@clisp.org>
54907
54908                 * printf-args.c (printf_fetchargs): Work around broken
54909                 definition of wint_t on mingw.
54910
54911         2005-02-12  Bruno Haible  <bruno@clisp.org>
54912
54913                 * xallocsa.h: Add extern "C" for C++.
54914
54915         2006-05-17  Bruno Haible  <bruno@clisp.org>
54916
54917                 Cygwin portability.
54918                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54919
54920         2006-04-30  Bruno Haible  <bruno@clisp.org>
54921
54922                 * progreloc.c: Include <mach-o/dyld.h> if available.
54923                 (find_executable): Use _NSGetExecutablePath when possible.
54924
54925         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54926
54927                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54928                 function.
54929
54930         2005-12-29  Bruno Haible  <bruno@clisp.org>
54931
54932                 * progreloc.c (set_program_name_and_installdir): Fix
54933                 compilation error.
54934
54935         2005-12-04  Bruno Haible  <bruno@clisp.org>
54936
54937                 Cygwin portability.
54938                 * progreloc.c: Include <windows.h> also on Cygwin.
54939                 (find_executable): Add support for Cygwin.
54940                 (set_program_name_and_installdir): Handle also platforms with
54941                 nonempty EXEEXT.
54942
54943         2006-07-11  Bruno Haible  <bruno@clisp.org>
54944
54945                 * javacomp.c: Fix a comment.
54946                 Reported by Jim Meyering.
54947
54948         2006-04-30  Bruno Haible  <bruno@clisp.org>
54949
54950                 * javacomp.h (compile_java_class): Add source_version,
54951                 target_version arguments.
54952                 * javacomp.c: Rewritten to choose only a compiler that
54953                 respects the specified source_version and target_version.
54954
54955         2006-06-27  Bruno Haible  <bruno@clisp.org>
54956
54957                 Assume correct S_ISDIR macro.
54958                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54959
54960         2006-07-22  Bruno Haible  <bruno@clisp.org>
54961
54962                 * javaversion.h: New file, from GNU gettext.
54963                 * javaversion.c: New file, from GNU gettext.
54964                 * javaversion.java: New file, from GNU gettext.
54965                 * javaversion.class: New file, from GNU gettext.
54966
54967         2006-05-17  Bruno Haible  <bruno@clisp.org>
54968
54969                 Cygwin portability.
54970                 * javaexec.c (execute_java_class): Test for jview program
54971                 also on Cygwin.
54972
54973         2006-04-09  Bruno Haible  <bruno@clisp.org>
54974
54975                 * fatal-signal.c: Don't include string.h.
54976                 (at_fatal_signal): Use a copying loop instead of memcpy.
54977
54978         2005-12-04  Bruno Haible  <bruno@clisp.org>
54979
54980                 * csharpexec.c: Add support for 'clix' launcher (untested).
54981                 (execute_csharp_using_sscli): New function.
54982                 (execute_csharp_program): Call it.
54983
54984         2006-06-21  Bruno Haible  <bruno@clisp.org>
54985
54986                 Avoid warnings from recent versions of mcs.
54987                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54988                 -o, -L, -r any more. Use options documented since mcs-1.0
54989                 instead. Similarly for -g.
54990
54991         2005-07-09  Bruno Haible  <bruno@clisp.org>
54992
54993                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54994                 add a .dll suffix.
54995                 Reported by Mark Junker <mjscod@gmx.de>.
54996
54997         2006-06-17  Bruno Haible  <bruno@clisp.org>
54998
54999                 * config.charset: Update for NetBSD 3.0.
55000
55001         2006-05-17  Bruno Haible  <bruno@clisp.org>
55002
55003                 Cygwin portability.
55004                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55005
55006         2006-05-16  Bruno Haible  <bruno@clisp.org>
55007
55008                 * localcharset.c [CYGWIN]: Include <windows.h>.
55009                 (get_charset_aliases): For Cygwin, return the same CPxxx
55010                 aliases list as under WIN32.
55011                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55012                 the environment variables. Fall back to GetACP().
55013
55014         2006-04-05  Bruno Haible  <bruno@clisp.org>
55015
55016                 * config.charset: Update Juan Manuel Guerrero's address.
55017
55018         2005-02-12  Bruno Haible  <bruno@clisp.org>
55019
55020                 * allocsa.h: Add extern "C" for C++.
55021
55022         2005-02-10  Bruno Haible  <bruno@clisp.org>
55023
55024                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55025                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55026
55027         2006-07-22  Bruno Haible  <bruno@clisp.org>
55028
55029                 * gettext.h: Update to GNU gettext-0.15.
55030
55031 2006-07-22  Bruno Haible  <bruno@clisp.org>
55032
55033         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55034         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55035         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55036
55037 2006-07-21  Eric Blake  <ebb9@byu.net>
55038
55039         * modules/stdlib-safer: New file.
55040         * MODULES.html.sh (File stream based Input/Output): Add
55041         stdlib-safer.
55042
55043 2006-07-21  Eric Blake  <ebb9@byu.net>
55044
55045         * lib/stdlib-safer.h: New file from coreutils, required by
55046         stdlib--.h.
55047
55048 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55049
55050         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55051
55052 2006-07-20  Bruno Haible  <bruno@clisp.org>
55053
55054         * gnulib-tool: Recognize new option --assume-autoconf.
55055         (autoconf_minversion): New variable.
55056         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55057
55058 2006-07-20  Bruno Haible  <bruno@clisp.org>
55059
55060         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55061
55062 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55063
55064         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55065         Reindent and repaginate.
55066
55067 2006-07-19  Derek Price  <derek@ximbiot.com>
55068
55069         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55070         Correct grammar.
55071
55072 2006-07-17  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/list: New file.
55075         * modules/array-list: New file.
55076         * modules/carray-list, modules/carray-list-tests: New files.
55077         * modules/linked-list, modules/linked-list-tests: New files.
55078         * modules/avltree-list, modules/avltree-list-tests: New files.
55079         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55080         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55081         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55082         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55083         * modules/oset: New file.
55084         * modules/array-oset: New file.
55085         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55086         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55087         * tests/test-carray_list.c: New file.
55088         * tests/test-linked_list.c: New file.
55089         * tests/test-avltree_list.c: New file.
55090         * tests/test-rbtree_list.c: New file.
55091         * tests/test-linkedhash_list.c: New file.
55092         * tests/test-avltreehash_list.c: New file.
55093         * tests/test-rbtreehash_list.c: New file.
55094         * tests/test-avltree_oset.c: New file.
55095         * tests/test-rbtree_oset.c: New file.
55096         * MODULES.html.sh (Container data structures): New section.
55097
55098 2006-07-17  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/gl_list.m4: New file.
55101
55102 2006-07-17  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/gl_list.h: New file.
55105         * lib/gl_list.c: New file.
55106         * lib/gl_array_list.h: New file.
55107         * lib/gl_array_list.c: New file.
55108         * lib/gl_carray_list.h: New file.
55109         * lib/gl_carray_list.c: New file.
55110         * lib/gl_linked_list.h: New file.
55111         * lib/gl_linked_list.c: New file.
55112         * lib/gl_anylinked_list1.h: New file.
55113         * lib/gl_anylinked_list2.h: New file.
55114         * lib/gl_avltree_list.h: New file.
55115         * lib/gl_avltree_list.c: New file.
55116         * lib/gl_anyavltree_list1.h: New file.
55117         * lib/gl_anyavltree_list2.h: New file.
55118         * lib/gl_rbtree_list.h: New file.
55119         * lib/gl_rbtree_list.c: New file.
55120         * lib/gl_anyrbtree_list1.h: New file.
55121         * lib/gl_anyrbtree_list2.h: New file.
55122         * lib/gl_anytree_list1.h: New file.
55123         * lib/gl_anytree_list2.h: New file.
55124         * lib/gl_linkedhash_list.h: New file.
55125         * lib/gl_linkedhash_list.c: New file.
55126         * lib/gl_anyhash_list1.h: New file.
55127         * lib/gl_anyhash_list2.h: New file.
55128         * lib/gl_avltreehash_list.h: New file.
55129         * lib/gl_avltreehash_list.c: New file.
55130         * lib/gl_rbtreehash_list.h: New file.
55131         * lib/gl_rbtreehash_list.c: New file.
55132         * lib/gl_anytreehash_list1.h: New file.
55133         * lib/gl_anytreehash_list2.h: New file.
55134
55135         * lib/gl_oset.h: New file.
55136         * lib/gl_oset.c: New file.
55137         * lib/gl_array_oset.h: New file.
55138         * lib/gl_array_oset.c: New file.
55139         * lib/gl_avltree_oset.h: New file.
55140         * lib/gl_avltree_oset.c: New file.
55141         * lib/gl_rbtree_oset.h: New file.
55142         * lib/gl_rbtree_oset.c: New file.
55143         * lib/gl_anytree_oset.h: New file.
55144
55145 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * m4/mkancesdirs.m4: New file.
55148         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55149         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55150         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55151         it.
55152
55153 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55154
55155         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55156         * lib/mkancesdirs.h: New files.
55157         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55158         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55159         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55160         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55161         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55162         callers changed.  Revamp internals significantly, by not
55163         attempting to create directories that are temporarily more
55164         permissive than the final results.  Do not attempt to use
55165         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55166         This removes some race conditions, fixes some bugs, and simplifies
55167         things.  Use new dirchownmod function to do owner and mode changes.
55168         * lib/mkdir-p.h: Likewise.
55169         * lib/modechange.c (octal_to_mode): New function.
55170         (struct mode_change): New member mentioned.
55171         (make_node_op_equals): New arg mentioned.  All callers changed.
55172         (mode_compile): Keep track of which mode bits the user has explicitly
55173         mentioned.
55174         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55175         New arg PMODE_BITS, to keep track of which mode bits the user
55176         mentioned; it treats S_ISUID and S_ISGID speciall.
55177         All callers changed.
55178         * lib/modechange.h: Likewise.
55179
55180 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55181
55182         * MODULES.html.sh: Add mkancestors.
55183         * modules/mkancesdirs: New module.
55184         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55185         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55186         The chdir-safer and afs files are now orphans; I'll remove them
55187         unless someone speaks up.
55188         Add lib/dirchownmod.c, lib/dirchownmod.h.
55189         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55190         Add lchown, mkancesdirs.
55191         (Maintainer): Add self.
55192
55193 2006-07-15  Karl Berry  <karl@gnu.org>
55194
55195         * gnulib-tool: help message wording/arrangement.
55196
55197 2006-07-14  Simon Josefsson  <jas@extundo.com>
55198
55199         * doc/gnulib.texi (Libtool and Windows): New section.
55200
55201 2006-07-12  Simon Josefsson  <jas@extundo.com>
55202
55203         * modules/gendocs (License): Fix license, approved by Karl.
55204
55205 2006-07-12  Eric Blake  <ebb9@byu.net>
55206
55207         * MODULES.html.sh: Add gendocs.
55208
55209 2006-07-11  Eric Blake  <ebb9@byu.net>
55210
55211         * modules/fdl: New module, to install doc/fdl.texi.
55212         * MODULES.html.sh: Add new section for documentation modules.
55213         * gnulib-tool: Avoid space-tab.
55214         (--doc-base): New option, to manage files from doc.
55215
55216 2006-07-11  Eric Blake  <ebb9@byu.net>
55217
55218         * m4/absolute-header.m4: Fix comments to match recent change.
55219
55220 2006-07-11  Eric Blake  <ebb9@byu.net>
55221
55222         * gnulib-tool: List --doc-base before --tests-base.
55223
55224 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55225
55226         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55227
55228 2006-07-11  Bruno Haible  <bruno@clisp.org>
55229
55230         * README: Mention where to put documentation.
55231
55232 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55233
55234         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55235
55236 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55237
55238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55239         to stdint.m4.
55240
55241 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55242
55243         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55244         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55245         "no/such/file/stdint.h" when there is no such file, so that
55246         the resulting C code can be parsed by dodgy compilers.
55247         Problems reported by Bob Proulx.
55248
55249 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55250
55251         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55252         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55253         macros into the GNU _D_EXACT_NAMLEN.
55254         * lib/savedir.c:  Likewise.
55255         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55256
55257 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55258         and Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55261         * m4/savedir.m4:
55262         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55263         macros into the GNU _D_EXACT_NAMLEN.
55264
55265 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55268         around the absolute name, to work around a problem with the HP-UX
55269         11.23 native C compiler, reported by Bob Proulx.
55270
55271 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * doc/maintain.texi, make-stds.texi: Sync from
55274         <http://savannah.gnu.org/projects/gnustandards>.
55275
55276 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55277
55278         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55279
55280 2006-07-09  Jim Meyering  <jim@meyering.net>
55281
55282         * m4/glob.m4: Remove a doubled word in a comment.
55283
55284 2006-07-09  Jim Meyering  <jim@meyering.net>
55285
55286         * lib/argp-pv.c: Remove a doubled word in a comment.
55287         * lib/check-version.c (check_version): Likewise.
55288         * lib/javacomp.c (compile_java_class): Likewise.
55289
55290 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55291
55292         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55293         for the benefit of people using Autoconf 2.60.  If you want to
55294         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55295         (or m4/onceonly.m4, if pre-2.57) manually.
55296
55297 2006-07-08  Jim Meyering  <jim@meyering.net>
55298
55299         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55300         comment.
55301         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55302         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55303         comment.
55304
55305 2006-07-08  Jim Meyering  <jim@meyering.net>
55306
55307         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55308
55309 2006-07-07  Simon Josefsson  <jas@extundo.com>
55310
55311         * tests/test-crc.c: Change expected crc value, the test vector
55312         were probably computed using the old broken crc.c?
55313
55314 2006-07-06  Simon Josefsson  <jas@extundo.com>
55315
55316         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55317         now the canonical place for the M4 file).
55318
55319         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55320         from the sys_socket dependency now.
55321
55322         * modules/inet_pton (Files): Ditto.
55323
55324         * modules/inet_ntop (Files): Ditto.
55325
55326 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55327
55328         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55329         not gl_PREREQ_GETUSERSHELL.
55330
55331 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55332
55333         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55334         with only one argument, for Autoconf 2.60.
55335         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55336         expand to nothing, so add a shell command to avoid syntax error.
55337         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55338
55339 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55340
55341         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55342
55343 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55344
55345         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55346         no longer needed.  Check for isblank decl.
55347         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55348         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55349         of existence.
55350
55351 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * lib/getloadavg.c: Use __VMS, not VMS.
55354         * lib/getopt.c: Likewise.
55355         * lib/getpagesize.h: Likewise.
55356         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55357         and probably does not work.
55358
55359 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55360
55361         * lib/.cppi-disable: Add wcwidth.
55362         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55363         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55364         (ISGRAPH): Remove.  All uses changed to isgraph.
55365         (FOLD) [!defined _LIBC]: Remove special case.
55366         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55367         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55368         HAVE_ISBLANK.
55369         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55370         case.
55371
55372 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55373
55374         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55375         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55376         brackets.  Other minor changes to suppress some compiler
55377         warnings.
55378
55379 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55380         and Paul Eggert  <eggert@cs.ucla.edu>
55381
55382         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55383         of invoking obsolescent AC_HEADER_DIRENT macro.
55384         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55385         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55386         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55387         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55388         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55389         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55390         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55391         * m4/readdir.m4: Remove; no longer needed.
55392
55393 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55394         and Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55397         Don't worry about this obsolete case any more.
55398         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55399         directories.
55400         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55401         worry about this obsolete case any more.
55402         * lib/fts.c: Likewise.
55403         * lib/getcwd.c: Likewise.
55404         * lib/glob.h: Likewise.
55405         * lib/savedir.c: Likewise.
55406
55407 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55410         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55411         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55412         needed.
55413         All uses removed.
55414         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55415         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55416         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55417         needed.
55418         * m4/getdate.m4 (gl_GETDATE): Likewise.
55419         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55420         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55421         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55422         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55423         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55424         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55425         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55426         needed.
55427
55428 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55429
55430         * lib/memcasecmp.c: Include <limits.h>.
55431         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55432         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55433         Don't assume isdigit succeeds only on '0' through '9'.
55434
55435 2006-07-05  Eric Blake  <ebb9@byu.net>
55436
55437         * modules/getaddrinfo (Depends-on): Add snprintf.
55438
55439 2006-07-05  Eric Blake  <ebb9@byu.net>
55440
55441         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55442         to avoid 'header present but could not be compiled' on cygwin.
55443
55444 2006-07-05  Eric Blake  <ebb9@byu.net>
55445
55446         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55447         missing from netdb.h.
55448         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55449
55450 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55451
55452         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55453         no longer needed.
55454         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55455         * m4/getdate.m4 (gl_GETDATE): Likewise.
55456         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55457         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55458         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55459         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55460         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55461
55462 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55463
55464         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55465         All uses of is_space replaced by isspace.
55466         * lib/exit.h: Don't talk about STDC_HEADERS.
55467         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55468         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55469         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55470         replaced by isprint etc.
55471         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55472         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55473         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55474         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55475         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55476         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55477
55478 2006-07-05  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55481         the function exists, before testing against AIX.
55482         Reported by Martin Lambers <marlam@marlam.de>.
55483
55484 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55487         From Mark D. Baushke.
55488
55489 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55492         to the absolute name, not just one, to bypass Sun C 5.8's
55493         "warning: #include of /usr/include/... may be non-portable".
55494
55495 2006-07-04  Eric Blake  <ebb9@byu.net>
55496
55497         * modules/dirname-tests: New test module.
55498         * tests/test-dirname.c: New file, replacing dirname.c
55499         TEST_DIRNAME section that was recently deleted.
55500
55501 2006-07-04  Bruno Haible  <bruno@clisp.org>
55502
55503         Assume ANSI C header files and <ctype.h> functions.
55504         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55505         (mbsnwidth): Use isprint, iscntrl instead.
55506
55507 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55508
55509         Merge from coreutils.
55510         * MODULES.html.sh: Add xstrtold.
55511         * modules/xstrtold: New file.
55512         * modules/cycle-check (Files): Add lib/same-inode.h.
55513         * modules/dirname (Files): Add m4/double-slash-root.m4.
55514         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55515         * modules/mkdir-p (Files): Add lib/same-inode.h.
55516         * modules/same (Files): Add lib/same-inode.h.
55517
55518 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55519
55520         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55521         This is to keep the terminology clean; POSIX talks about
55522         "absolute pathnames", not "full pathnames", but the GNU
55523         Coding Standards say to use "path" for something else;
55524         so use "absolute" to keep both sides happy.
55525         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55526         Set gl_absolute_header, not gl_full_header_path.
55527         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55528         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55529         All uses changed.
55530
55531         Merge from coreutils.
55532
55533         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55534
55535         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55536         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55537         want to require the building of c-strtod.o.
55538         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55539         needs -lm directly.
55540         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55541
55542         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55543
55544         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55545         --as-needed option if available.  Problem reported by Albert Chin in
55546         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55547         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55548         cc merely issues a bunch of annoying warnings for --as-needed
55549         (this problem was reported by Bob Proulx).  Also, try linking with
55550         -lm to detect a bug in binutils 2.16 (this problem was reported
55551         by Ralf Wildenhues).
55552
55553         2006-06-18  Jim Meyering  <jim@meyering.net>
55554
55555         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55556         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55557         macro.
55558         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55559         also check for glibc-2.4's abort-inducing bug.
55560
55561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55562         Low-probability clean-up should be to use rmdir to get rid of
55563         the just-created directory, not unlink.
55564
55565         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55566         configure fail, and request a bug report to inform us about it.
55567         Add a comment that, barring reports to the contrary, in 2007 we'll
55568         assume ftruncate is universally available.
55569
55570         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55571
55572         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55573
55574         2006-03-12  Jim Meyering  <jim@meyering.net>
55575
55576         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55577         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55578         * m4/same.m4 (gl_SAME): Likewise.
55579         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55580
55581         2006-03-11  Eric Blake  <ebb9@byu.net>
55582
55583         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55584         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55585         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55586         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55587
55588 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55591         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55592         reported by Mark D. Baushke, one in
55593         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55594
55595         Merge from coreutils.
55596
55597         * lib/.cppi-disable: Add stdint_.h.
55598         * lib/.cvsignore: Add stdint.h.
55599
55600         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55601
55602         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55603         both double and long double versions.
55604         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55605         * lib/xstrtold.c: New file.
55606         * lib/xstrtod.h (xstrtold): New decl.
55607
55608         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55609
55610         * lib/filemode.c (setst): Remove.
55611         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55612         (arguably) clearer, and the generated code is a bit smaller on my
55613         Debian GNU/Linux stable x86 host.
55614
55615         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55618         Assume that filemode.h includes sys/types.h and sys/stat.h.
55619         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55620         (ftypelet): Reorder to put common cases first, for efficiency.
55621         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55622         to do 'M'.
55623         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55624         of 10, for compatibility with FreeBSD.  All callers changed.
55625         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55626         types that can't be deduced solely from st_mode.  First arg is now a
55627         const pointer.
55628         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55629         (strmode): Renamed from mode_string.
55630         (filemodestring): New decl.
55631         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55632         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55633         needed.
55634         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55635
55636         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55639         fsusage.h now does that.  Include fsusage.h first, to test interface.
55640         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55641         at most one method (the old code could have generated decls that
55642         didn't conform to C89, not that this was ever exercised).
55643         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55644
55645         2006-03-19  Jim Meyering  <jim@meyering.net>
55646
55647         Work even in a chroot where d_ino values for entries in "/"
55648         don't match the stat.st_ino values for the same names.
55649         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55650         number, iterate through all entries again, using lstat instead.
55651         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55652         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55653
55654         * lib/getcwd.c (__getcwd): Clarify a comment.
55655         Use memcpy in place of a call to strcpy.
55656
55657         2006-03-12  Jim Meyering  <jim@meyering.net>
55658
55659         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55660         matches that of the current directory (which we're about to chdir ".."
55661         out of), then save the dev-ino of the parent, instead.
55662
55663         * lib/same-inode.h (SAME_INODE): New file/macro.
55664         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55665         Include "same-inode.h", instead.
55666         * lib/same.c: Likewise.
55667         * lib/cycle-check.h: Include "same-inode.h".
55668         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55669         * lib/cycle-check.c (SAME_INODE): Remove definition.
55670         * lib/root-dev-ino.h: Include "same-inode.h".
55671
55672         2006-03-11  Eric Blake  <ebb9@byu.net>
55673
55674         * lib/same.c (same_name): s/base_name/last_component/
55675         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55676         * lib/filenamecat.c (file_name_concat): Likewise.
55677
55678         2006-03-11  Eric Blake  <ebb9@byu.net>,
55679                     Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55682         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55683         drive prefix.
55684         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55685         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55686         (last_component): New method.
55687         * lib/dirname.c (dir_len): Determine when drive letters need a
55688         subsequent slash.  Preserve // when it is special.
55689         (dir_name): Don't append dot when drive letter is absolute.
55690         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55691         * lib/basename.c (base_name): New semantics - malloc the result.
55692         Preserve // when it is special.  Preserve relative files that look
55693         like drive letters.
55694         (base_len): Preserve // when it is special.
55695         (last_component): New method, similar to old base_name semantics.
55696         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55697         base_name.  Strip redundant slashes from ///.
55698
55699 2006-07-03  Jim Meyering  <jim@meyering.net>
55700
55701         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55702         macro is used before the first cycle_check call.
55703
55704 2006-07-03  Eric Blake  <ebb9@byu.net>
55705
55706         * modules/dirname (Depends-on): Add xstrndup.
55707
55708 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55711         test cases, so that config.log is a bit easier to follow.
55712
55713 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55716         both are 64 bits, since this seems to be the tradition, and this
55717         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55718         we ever run into a host that prefers long long to long in this
55719         case, we'll need another configure-time test.  Problem reported by
55720         Jim Meyering.
55721
55722 2006-07-02  Eric Blake  <ebb9@byu.net>
55723
55724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55725
55726 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55727
55728         * modules/inttypes (Depends-on): No longer depends on stdint.
55729         * modules/stdint (Description): Say more about assumptions.
55730         Say that the fast types might differ.  Say macros are used.
55731         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55732         (Makefile.am): Revise list of substituted symbols to match
55733         new stdint.m4.
55734         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55735         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55736         * tests/test-stdint.c (verify_same_types)
55737         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55738         the code conforms to C99/C89.
55739         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55740         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55741
55742 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55743
55744         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55745         but fix a bug, by requiring at least 64 bits.
55746         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55747         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55748         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55749         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55750
55751         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55752         changes.  Make 2.59 a prerequisite.  Check and substitute for
55753         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55754         inttypes.h.  Do not use special include files; just use the
55755         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55756         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55757         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55758         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55759         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55760         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55761         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55762         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55763         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55764         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55765         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55766         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55767         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55768         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55769         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55770         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55771         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55772         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55773         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55774         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55775         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55776         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55777         not check for things that C99 does not require, e.g., int8_t.  If
55778         a test isn't needed unless <stdint.h> isn't working, and is
55779         unlikely to be needed for any other reason, then don't do it
55780         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55781         size_t, since we assume C89 freestanding at least.  Do not check
55782         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55783         the right thing even if the types are not defined.  Instead use:
55784         (gl_STDINT_TYPE_PROPERTIES): New macro.
55785         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55786         testing whether <sys/types.h> clashes, as Autoconf does this for
55787         us now.  All uses removed.
55788         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55789         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55790         (gl_CHECK_TYPE_SAME):
55791         Remove; no longer needed.
55792         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55793         exists, since we'll return 0 anyway in that case.
55794         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55795
55796 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55797
55798         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55799         possible collision with system files.
55800         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55801         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55802         WCHAR_MIN and WCHAR_MAX in this case.
55803         (<stddef.h>): Do not include; no longer needed.
55804         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55805         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55806         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55807         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55808         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55809         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55810         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55811         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55812         !defined(__c99))]: Include in this case too, since it's harmless
55813         now.
55814         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55815         dangerous to do so.
55816         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55817         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55818         (_STDINT_MIN, _STDINT_MAX): New macros.
55819         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55820         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55821         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55822         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55823         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55824         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55825         macros, not typedefs; this simplifies things quite a bit.
55826         Use long int for all types narrower than int64_t.
55827         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55828         Define in terms of long long int or int64_t or long int,
55829         not int64_t or int32_t.  This saves some compile-time testing.
55830         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55831         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55832         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55833         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55834         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55835         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55836         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55837         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55838         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55839         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55840         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55841         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55842         undef any previous version and define our own version, for
55843         simplicity and consistency with the new macros for types.
55844         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55845         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55846         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55847         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55848         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55849         @WINT_T_SUFFIX@ to keep things simple here.
55850         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55851         Simplify by assuming typical 8/16/32/64 host, since we're
55852         already doing that elsewhere anyway.
55853         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55854         and assume long long int is 64 bits if available.  This
55855         speeds up 'configure'.
55856
55857 2006-07-01  Eric Blake  <ebb9@byu.net>
55858
55859         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55860         Reported by Andreas Buening.
55861
55862 2006-07-01  Eric Blake  <ebb9@byu.net>
55863
55864         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55865
55866 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55867
55868         * lib/getaddrinfo.c: fixed typo
55869
55870 2006-06-29  Jim Meyering  <jim@meyering.net>
55871
55872         * modules/strftime (Maintainer): Add my name, since with the
55873         FPRINTFTIME changes strftime.c has forked from glibc.
55874
55875 2006-06-29  Eric Blake  <ebb9@byu.net>
55876
55877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55878
55879 2006-06-29  Eric Blake  <ebb9@byu.net>
55880
55881         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55882
55883 2006-06-29  Eric Blake  <ebb9@byu.net>
55884
55885         * lib/stat_.h: New file.
55886
55887 2006-06-29  Eric Blake  <ebb9@byu.net>
55888
55889         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55890         unused static function.
55891
55892 2006-06-29  Eric Blake  <ebb9@byu.net>
55893
55894         * doc/functions.texi (Function Portability): Document missing lstat
55895         on mingw.
55896
55897 2006-06-29  Eric Blake  <ebb9@byu.net>
55898
55899         * MODULES.html.sh: Add sys_stat.
55900         * modules/sys_stat: New module.
55901         * modules/mkstemp (Depends-on): Add sys_stat.
55902
55903 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55904
55905         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55906
55907 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55908
55909         * m4/c-bs-a.m4: Removed.
55910
55911 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55912
55913         * lib/strftime.c: Assume strftime() exists.
55914
55915 2006-06-29  Derek Price  <derek@ximbiot.com>
55916
55917         * modules/c-bs-a: Removed - \a is C89.
55918         * MODULES.html.sh: Remove c-bs-a.
55919
55920 2006-06-29  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/wcwidth (License): Change to LGPL.
55923
55924 2006-06-28  Simon Josefsson  <jas@extundo.com>
55925
55926         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55927         on _WIN32.
55928
55929         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55930         getnameinfo.
55931
55932 2006-06-28  Simon Josefsson  <jas@extundo.com>
55933
55934         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55935
55936 2006-06-28  Simon Josefsson  <jas@extundo.com>
55937
55938         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55939         functions there.  It will succeed on Windows XP, but on Windows
55940         2000 and (presumably) earlier, it will fail, and use the internal
55941         re-implementation.
55942         (use_win32_p): New function.
55943         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55944         Support AI_NUMERICSERV to disable getservbyname.
55945         (getnameinfo): New function, only supports
55946         NI_NUMERICHOST|NI_NUMERICSERV for now.
55947
55948         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55949         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55950         getnameinfo.
55951
55952 2006-06-28  Eric Blake  <ebb9@byu.net>
55953
55954         * modules/wcwidth: New file.
55955         * modules/mbchar (Depends-on): Add wcwidth.
55956         * modules/mbswidth (Depends-on): Add wcwidth.
55957         * MODULES.html.sh: Add wcwidth.
55958
55959 2006-06-28  Eric Blake  <ebb9@byu.net>
55960
55961         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55963
55964 2006-06-28  Eric Blake  <ebb9@byu.net>
55965
55966         * lib/xvasprintf.h: Fix comments.
55967
55968 2006-06-28  Eric Blake  <ebb9@byu.net>
55969
55970         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55971         * lib/mbswidth.c (wcwidth): Move from here...
55972         * lib/wcwidth.h: ...to this new file.
55973
55974 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55975
55976         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55977
55978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55979         it's obsolete.
55980         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55981
55982 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55983
55984         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55985         Autoconf 2.60 says this stuff was obsolete.
55986
55987 2006-06-28  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55990
55991 2006-06-28  Bruno Haible  <bruno@clisp.org>
55992
55993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55994         gt_TYPE_WCHAR_T.
55995
55996 2006-06-28  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55999         declaration for wcwidth.
56000         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56001
56002 2006-06-28  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56005         (mkdir): Define using _mkdir.
56006
56007 2006-06-28  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/getaddrinfo.h: Fix POSIX URL.
56010         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56011         _WIN32.
56012         (use_win32_p): Make static.
56013         (getaddrinfo): Reject service name if it is empty or does not consist
56014         solely of decimal digits, or if its value is > 65535.
56015         (getnameinfo): Remove useless casts.
56016
56017 2006-06-27  Simon Josefsson  <jas@extundo.com>
56018
56019         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56020         Eggert and Martin Lambers.
56021
56022 2006-06-27  Simon Josefsson  <jas@extundo.com>
56023
56024         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56025         Eggert and Martin Lambers.
56026
56027 2006-06-27  Bruno Haible  <bruno@clisp.org>
56028
56029         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56030         result to 0, not to empty.
56031         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56032
56033 2006-06-27  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56036
56037 2006-06-26  Simon Josefsson  <jas@extundo.com>
56038
56039         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56040         present.
56041
56042 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56043
56044         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56045         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56047
56048 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56049
56050         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56051
56052 2006-06-26  Bruno Haible  <bruno@clisp.org>
56053
56054         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56055
56056 2006-06-26  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56059
56060 2006-06-26  Bruno Haible  <bruno@clisp.org>
56061
56062         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56063         SGI C compiler in pre-C99 mode.
56064         Suggested by Mark D. Baushke and Larry Jones.
56065
56066 2006-06-26  Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56069         WCHAR_MAX.
56070         Reported by Mark D. Baushke and Larry Jones.
56071
56072 2006-06-26  Bruno Haible  <bruno@clisp.org>
56073
56074         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56075         in pre-C99 mode.
56076         Suggested by Mark D. Baushke and Larry Jones.
56077
56078 2006-06-23  Simon Josefsson  <jas@extundo.com>
56079             Bruno Haible  <bruno@clisp.org>
56080
56081         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56082         Emit mostlyclean-local rule.
56083         (func_emit_tests_Makefile_am): Likewise.
56084         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56085
56086 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56087
56088         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56089
56090 2006-06-23  Bruno Haible  <bruno@clisp.org>
56091
56092         * tests/test-stdint.c: Update to match ISO C 99 Technical
56093         Corrigendum 1.
56094
56095 2006-06-23  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56098
56099 2006-06-23  Bruno Haible  <bruno@clisp.org>
56100
56101         * lib/stdint_.h: Treat IRIX like OpenBSD.
56102
56103 2006-06-23  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56106         ISO C 99 Technical Corrigendum 1.
56107
56108 2006-06-22  Simon Josefsson  <jas@extundo.com>
56109
56110         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56111         MinGW.
56112
56113 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56116         needed.  Some compiler complained about some of them.  Problem reported
56117         by Larry Jones in
56118         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56119
56120 2006-06-21  Simon Josefsson  <jas@extundo.com>
56121
56122         * tests/test-getaddrinfo.c: New file.
56123
56124         * modules/getaddrinfo-tests: New file.
56125
56126         * MODULES.html.sh: Add inet_pton.
56127
56128         * modules/inet_pton: New file.
56129
56130 2006-06-21  Simon Josefsson  <jas@extundo.com>
56131
56132         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56133         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56134         of using the (limited) gnulib implementation on Windows XP.
56135
56136         * m4/inet_pton.m4: New file.
56137
56138 2006-06-21  Simon Josefsson  <jas@extundo.com>
56139
56140         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56141         variable.
56142
56143         * lib/socket_.h: Don't define WINVER.
56144
56145         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56146         slightly modified to work in gnulib.
56147
56148 2006-06-21  Simon Josefsson  <jas@extundo.com>
56149
56150         * doc/gnulib.texi (Windows sockets): Add.
56151
56152 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56153
56154         * lib/read-file.c (fread_file): Start with buffer allocation of
56155         0 bytes rather than 1 byte; this simplifies the code.
56156         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56157         code to free buffer and save/restore errno.
56158         (internal_read_file): Remove unused local.
56159
56160 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56161
56162         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56163         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56164         Problem reported by Denis Excoffier in
56165         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56166
56167 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56168
56169         * modules/sys_socket, modules/socklen: Include sys/types since
56170         FreeBSD 4.x's sys/socket.h needs it.
56171
56172 2006-06-19  Simon Josefsson  <jas@extundo.com>
56173
56174         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56175
56176 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56177
56178         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56179
56180 2006-06-19  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56183         and FULL_PATH_INTTYPES_H in angle brackets.
56184         Reported by Mark D. Baushke <mdb@gnu.org>.
56185
56186 2006-06-17  Eric Blake  <ebb9@byu.net>
56187
56188         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56189         errno.
56190
56191 2006-06-17  Bruno Haible  <bruno@clisp.org>
56192
56193         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56194         <sys/inttypes.h>.
56195
56196 2006-06-17  Bruno Haible  <bruno@clisp.org>
56197
56198         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56199         whether errno is declared. Assume <errno.h> declares errno.
56200
56201 2006-06-17  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56204
56205 2006-06-17  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56208         problem on Solaris 2.5.1.
56209
56210 2006-06-16  Eric Blake  <ebb9@byu.net>
56211
56212         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56213         * lib/unicodeio.c [!defined errno]: Likewise.
56214         * lib/strtol.c [!defined errno]: Likewise.
56215         * lib/strtod.c [!defined errno]: Likewise.
56216
56217 2006-06-15  Eric Blake  <ebb9@byu.net>
56218
56219         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56220
56221 2006-06-15  Eric Blake  <ebb9@byu.net>
56222
56223         * config/srclist.txt (ssize_t.m4): Lose sync.
56224
56225 2006-06-15  Bruno Haible  <bruno@clisp.org>
56226
56227         * modules/stdint (Files): Include m4/full-header-path.m4,
56228         m4/size_max.m4, m4/wchar_t.m4.
56229         (Makefile.am): Many more substitutions.
56230         * modules/stdint-tests: New file.
56231         * tests/test-stdint.c: New file.
56232
56233 2006-06-15  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56236         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56237         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56238         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56239         gl_CHECK_TYPE_SAME): New macros.
56240
56241 2006-06-15  Bruno Haible  <bruno@clisp.org>
56242
56243         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56244
56245 2006-06-15  Bruno Haible  <bruno@clisp.org>
56246
56247         * lib/stdint_.h: Rewritten to be fully auto-configured.
56248         Fixes bug on HP-UX/IA64.
56249
56250 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * lib/getdate.y (__attribute__): Don't define if already defined.
56253         Problem reported by Larry Jones.
56254         * lib/utimens.c (__attribute__): Likewise.
56255
56256 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56257
56258         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56259         reported by Andreas Schwab.
56260
56261 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56262             Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56265         check for the declaration of strnlen and a run test that exposes the
56266         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56267         rpl_strndup.
56268
56269 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56270             Bruno Haible  <bruno@clisp.org>
56271
56272         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56273
56274 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56275
56276         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56277         compile test, for Tru64 4.0D.
56278
56279 2006-05-28  Karl Berry  <karl@gnu.org>
56280
56281         * config/srclist.txt (printf-args.c): lose sync.
56282
56283 2006-05-26  Martin Lambers  <marlam@marlam.de>
56284
56285         * lib/getpass.c: Updates the test for the native W32 API, and adds
56286         missing includes, thus fixing compilation warnings.
56287
56288 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56289
56290         * lib/exclude.c (exclude_fnmatch): New function.
56291         (excluded_file_name): Call exclude_fnmatch.
56292         * lib/exclude.h (excluded_file_name): New prototype
56293
56294 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56295
56296         * lib/tempname.c (small_open, large_open): New macros.
56297         (__open, __open64) [!_LIBC]: Remove.
56298         (__gen_tempname): Use small_open and large_open instead of __open
56299         and __open64.  This fixes a portability bug on HP-UX 11.11i
56300         reported by Simon Wing-Tang in
56301         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56302
56303 2006-05-24  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56306         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56307         Reported by Thorsten Maerz <torte@netztorte.de> via
56308         Aaron Stone <aaron@serendipity.cx>.
56309
56310 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56313         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56314         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56315         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56316         not really conditional on the cache.
56317         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56318
56319 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56320
56321         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56322         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56323         (my_usleep): Don't mishandle maximum value.
56324
56325 2006-05-19  Jim Meyering  <jim@meyering.net>
56326
56327         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56328
56329 2006-05-17  Bruno Haible  <bruno@clisp.org>
56330
56331         Cygwin portability.
56332         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56333
56334 2006-05-17  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/stdint_.h: Fix recognition of Cygwin.
56337
56338 2006-05-15  Bruno Haible  <bruno@clisp.org>
56339
56340         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56341         on libtool patch by Ralf Wildenhues.
56342
56343 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56344
56345         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56346         test for C99 conformance; (bool) 0.5 is an integer constant
56347         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56348         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56349
56350 2006-05-11  Simon Josefsson  <jas@extundo.com>
56351
56352         * m4/xvasprintf.m4: Fix obvious typo.
56353
56354 2006-05-11  Jim Meyering  <jim@meyering.net>
56355
56356         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56357         James Lemley.
56358
56359 2006-05-10  Simon Josefsson  <jas@extundo.com>
56360
56361         * lib/md4.c: Typo fix, update copyright years.
56362         (K1, K2): Don't use L because it turn computations into 64-bit on
56363         64-bit platforms.
56364
56365 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56368         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56369         unwanted sign propagation, e.g., on hosts with 64-bit int.
56370         There still are some problems with reeelly weird theoretical hosts
56371         (e.g., 33-bit int) but it's not worth worrying about now.
56372         * lib/sha1.c (rol): Likewise.
56373         (K1, K2, K3, K4): Remove unnecessary L suffix.
56374
56375 2006-05-10  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/des.c: Cast to avoid warnings.
56378
56379 2006-05-09  Bruno Haible  <bruno@clisp.org>
56380
56381         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56382         (Depends-on): Depend also on xsize, stdarg.
56383         (configure.ac): Add gl_XVASPRINTF.
56384
56385 2006-05-09  Bruno Haible  <bruno@clisp.org>
56386
56387         * m4/xvasprintf.m4: New file.
56388
56389 2006-05-09  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56392         (EOVERFLOW): Define fallback value.
56393         (xstrcat): New function.
56394         (xvasprintf): Recognize the special case of a string concatenation.
56395
56396 2006-05-08  Eric Blake  <ebb9@byu.net>
56397
56398         * gnulib-tool (func_version): Base copyright year on CVS date.
56399         (func_emit_copyright_notice): New function.
56400         (func_emit_lib_Makefile_am): Use it.
56401         (func_emit_tests_Makefile_am): Likewise.
56402         (func_import): Likewise.
56403
56404 2006-05-08  Bruno Haible  <bruno@clisp.org>
56405
56406         * modules/stdarg: New file.
56407         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56408
56409 2006-05-08  Bruno Haible  <bruno@clisp.org>
56410
56411         * m4/stdarg.m4: New file, from GNU gettext.
56412
56413 2006-05-08  Bruno Haible  <bruno@clisp.org>
56414
56415         * config/srclist.txt (build-aux/config.rpath): different from latest
56416         release.
56417
56418 2006-05-08  Bruno Haible  <bruno@clisp.org>
56419
56420         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56421
56422 2006-05-05  Jim Meyering  <jim@meyering.net>
56423
56424         * m4/warning.m4: New file, derived from bison's file by the same name.
56425
56426 2006-05-03  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/stdint_.h: Shorter URL.
56429         * lib/inttypes.h: Likewise.
56430
56431 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56434
56435 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56436
56437         * lib/verify.h: Document the internals better.  Most of this change
56438         was written by Bruno Haible.
56439
56440 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56441
56442         * doc/verify.texi: New file, partly based on a proposal by
56443         Bruno Haible.
56444
56445 2006-05-02  Bruno Haible  <bruno@clisp.org>
56446
56447         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56448         test from here...
56449         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56450
56451 2006-04-29  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56454         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56455
56456 2006-04-29  Bruno Haible  <bruno@clisp.org>
56457
56458         * gnulib-tool: Make --update option actually work.
56459
56460 2006-04-29  Bruno Haible  <bruno@clisp.org>
56461
56462         * doc/gcd.texi: New file.
56463         * doc/gnulib.texi: Include it.
56464
56465 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * lib/getdate.y (get_date): When adding relative date, start with the
56468         initial time, not with the result of the first mktime call.
56469
56470 2006-04-25  Bruno Haible  <bruno@clisp.org>
56471
56472         * gnulib-tool (func_import): Output the include directives in three
56473         blocks, sorted separately.
56474         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56475
56476 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56479         to define main with arguments, for C++.  Reported by Eric Blake.
56480         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56481         Prefer 'int main ()' to 'int main (void)', for C++.
56482         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56483         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56484         for 'main', for C99 and C++.
56485
56486 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56487
56488         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56489         Don't assume that exit status -1 is valid.
56490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56491         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56492         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56493         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56494         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56495         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56496         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56497         functions can be used without declaring them, or that you can
56498         exit with status -1.
56499         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56500
56501 2006-04-24  Karl Berry  <karl@gnu.org>
56502
56503         * config/srclist.txt (longdouble.m4): sync lost.
56504
56505 2006-04-24  Eric Blake  <ebb9@byu.net>
56506
56507         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56508
56509 2006-04-24  Bruno Haible  <bruno@clisp.org>
56510
56511         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56512         poll() implementation in AIX.
56513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56514
56515 2006-04-24  Bruno Haible  <bruno@clisp.org>
56516
56517         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56518         assigned exactly once.
56519
56520 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56521             Bruno Haible  <bruno@clisp.org>
56522
56523         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56524         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56525         for AM_CPPFLAGS.
56526
56527 2006-04-23  Bruno Haible  <bruno@clisp.org>
56528
56529         * modules/copy-file: Depend on unistd.
56530         * modules/execute: Likewise.
56531         * modules/fatal-signal: Likewise.
56532         * modules/findprog: Likewise.
56533         * modules/mkdtemp : Likewise.
56534         * modules/pipe: Likewise.
56535         * modules/wait-process: Likewise.
56536
56537 2006-04-23  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56540         condition was already detected.
56541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56542
56543 2006-04-23  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/copy-file.c: Include <unistd.h> unconditionally.
56546         * lib/execute.c: Likewise.
56547         * lib/fatal-signal.c: Likewise.
56548         * lib/findprog.c: Likewise.
56549         * lib/mkdtemp.c: Likewise.
56550         * lib/pipe.h: Likewise.
56551         * lib/pipe.c: Likewise.
56552         * lib/wait-process.h: Likewise.
56553
56554 2006-04-23  Bruno Haible  <bruno@clisp.org>
56555
56556         * gnulib-tool (func_usage): Fix --import description. Document
56557         --update.
56558         (func_import): Create temporary file in a temporary directory, if
56559         --dry-run is specified. Silence errors from 'grep' when there are no
56560         m4 files in $m4dir.
56561         (func_create_testdir): Silence errors from 'grep' when there are no
56562         m4 files in $m4dir.
56563         Reported by Karl Berry <karl@freefriends.org>.
56564
56565 2006-04-20  Bruno Haible  <bruno@clisp.org>
56566
56567         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56568         one argument, so that the code will be portable to Autoconf 2.60.
56569         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56570         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56571         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56572
56573 2006-04-19  Derek Price  <derek@ximbiot.com>
56574             Eric Blake  <ebb9@byu.net>
56575
56576         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56577         rather than "/full/path.h".  Update comment to match.  Shorten &
56578         generalize m4_translit call via AS_TR_CPP.
56579
56580 2006-04-19  Derek Price  <derek@ximbiot.com>
56581             Eric Blake  <ebb9@byu.net>
56582
56583         * lib/inttypes.h: Correct grammar in comment.
56584
56585 2006-04-18  Derek Price  <derek@ximbiot.com>
56586             Paul Eggert  <eggert@cs.ucla.edu>
56587
56588         * modules/inttypes: New file.
56589         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56590
56591 2006-04-18  Derek Price  <derek@ximbiot.com>
56592             Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56595         New files.
56596
56597 2006-04-18  Derek Price  <derek@ximbiot.com>
56598             Paul Eggert  <eggert@cs.ucla.edu>
56599
56600         * lib/inttypes.h: New file.
56601         * lib/strtoimax.c: Assume <inttypes.h>.
56602
56603 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56604
56605         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56606         isn't mounted.  Problem reported by Kir Kolyshkin.
56607
56608 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56609
56610         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56611         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56612         Derek R. Price.
56613         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56614         implementation.
56615
56616 2006-04-12  Eric Blake  <ebb9@byu.net>
56617
56618         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56619         is now done automatically by the corresponding Autoconf macro.
56620
56621 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56622
56623         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56624         time_r.h.
56625
56626 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56627
56628         Merge regex changes from libc, removing some of our
56629         POSIX-conformance changes that were rejected and redoing them in a
56630         less-intrusive way.
56631
56632         * lib/regcomp.c (re_compile_internal, init_dfa):
56633         Length arg is now size_t, not Idx.  All uses changed.
56634         (peek_token): Forward decl now says internal_function.
56635         (__re_error_msgid, __re_error_msgid_idx):
56636         Now static rather than extern with attribute_hidden.
56637         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56638         For some reason libc prefers K&R style defns for external functions.
56639         (regerror) [!defined _LIBC]: Likewise.
56640         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56641         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56642         (build_range_exp, build_collating_symbol):
56643         Use K&R-style defn.
56644         (re_compile_fastmap): Use '\0' to memset, not 0.
56645         (utf8_sb_map): Make the calculations more obvious.
56646         (init_dfa, parse_bracket_exp, build_charclass_op):
56647         Call calloc and cast result, as glibc does.
56648         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56649         (build_range_exp, build_collating_symbol):
56650         Now internal functions.
56651
56652         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56653
56654         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56655         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56656         Don't depend on VMS; depend on __VMS instead, for POSIX
56657         namespace cleanness.
56658         (regoff_t): Define to ssize_t, not long int.
56659
56660         Remove the REG_ macros named below.  Instead, make the old names
56661         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56662         __USE_GNU_REGEX.
56663         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56664         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56665         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56666         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56667         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56668         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56669         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56670         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56671         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56672         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56673         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56674         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56675         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56676         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56677         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56678         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56679         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56680         (REG_NREGS):
56681         Remove.  All uses replaced by the old RE_* names.
56682         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56683         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56684         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56685         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56686         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56687         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56688         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56689         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56690         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56691         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56692         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56693         Don't bother having these macros be independent of each others'
56694         values, since they no longer exist in the POSIX name space.
56695
56696         Rename the following member names back to their old names,
56697         unless !__USE_GNU_REGEX.  All uses changed back.
56698         (buffer): Renamed from re_buffer.
56699         (allocated): Renamed from re_allocated.
56700         (used): Renamed from re_used.
56701         (syntax): Renamed from re_syntax.
56702         (fastmap): Renamed from re_fastmap.
56703         (translate): Renamed from re_translate.
56704         (can_be_null): Renamed from re_can_be_null.
56705         (regs_allocated): Renamed from re_regs_allocated.
56706         (fastmap_accurate): Renamed from re_fastmap_accurate.
56707         (no_sub): Renamed from re_no_sub.
56708         (not_bol): Renamed from re_not_bol.
56709         (not_eol): Renamed from re_not_eol.
56710         (newline_anchor): Renamed from re_newline_anchor.
56711         (num_regs): Renamed from rm_num_regs.
56712         (start): Renamed from rm_start.
56713         (end): Renamed from rm_end.
56714
56715         (free_state): Move up a bit.
56716
56717         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56718         #define to be empty.
56719         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56720         when that is what is intended.
56721         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56722         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56723         (MAX): New macro.
56724         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56725         All uses changed back to re_malloc, etc.  It's now the caller's
56726         responsibility to check for overflow; all callers changed.
56727         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56728         (re_x2nrealloc): Remove.
56729         (free_state): Remove decl.
56730
56731         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56732         (re_set_registers, re_exec):
56733         Use K&R-style defn.
56734
56735         2006-01-31  Roland McGrath  <roland@redhat.com>
56736
56737         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56738         Reported by Mike Frysinger <vapier@gentoo.org>.
56739
56740         2006-01-15  Andreas Jaeger  <aj@suse.de>
56741
56742         [BZ #1950]
56743         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56744         build_wcs_upper_buffer change.
56745         (build_wcs_upper_buffer): Change return type.
56746
56747         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56748
56749         * lib/regex_internal.h: Include <stdint.h> if available.
56750
56751         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56752
56753         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56754
56755         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56756
56757         * lib/regcomp.c: Adjust for changed secondary hash function.
56758
56759         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56760
56761         * lib/regex.h: Pretty printing.
56762         Clean up namespace a bit.
56763
56764         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56765
56766         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56767         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56768
56769         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56770                     Ulrich Drepper  <drepper@redhat.com>
56771
56772         [BZ #1302]
56773         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56774         changed.
56775         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56776
56777         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56778
56779         [BZ #281]
56780         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56781         * lib/regcomp.c: Remove unnecessary uses of
56782         unsigned RE_TRANSLATE_TYPE.
56783         * lib/regex_internal.h: Likewise.
56784         * lib/regex_internal.c: Likewise.
56785         * lib/regexec.c: Likewise.
56786         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56787
56788         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56789
56790         * lib/regexec.c (find_recover_state): Remove unnecessary
56791         initialization.
56792         (transit_state_bkref): Make DFA a const pointer.
56793         (get_subexp): Likewise.
56794         (check_arrival): Likewise.
56795         (update_cur_sifted_state): Likewise.
56796         (re_search_internal): Likewise.
56797         (prune_impossible_nodes): Likewise.
56798         (acquire_init_state_context): Likewise.
56799         (proceed_next_node): Likewise.
56800         (set_regs): Likewise.
56801         (free_fail_stack_return): Likewise.
56802         (check_arrival_expand_ecl): Mark DFA parameter as const.
56803         (check_arrival_expand_ecl_sub): Likewise.
56804         (check_subexp_limits): Likewise.
56805         (sub_epsilon_src_nodes):  Likewise.
56806         (add_epsilon_src_nodes):  Likewise.
56807         (merge_state_array): Likewise.
56808         (update_regs): Likewise.
56809         (build_trtable): Likewise.
56810         (sift_states_backward): Mark MCTX parameter as const.
56811         (build_sifted_states): Likewise.
56812         (update_cur_sifted_state): Likewise.
56813         (sift_states_mkref): Likewise.
56814         (check_arrival_expand_ecl): Mark eclosure as const.
56815         (check_dst_limits_calc_pos_1): Likewise.
56816         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56817         pointer.
56818
56819         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56820
56821         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56822         (transit_state_sb): Likewise.
56823         (transit_state_mb): Likewise.
56824         (sift_states_iter_mb): Likewise.
56825         (check_arrival_add_next_nodes): Likewise.
56826         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56827         [_LIBC] (re_search_2_stub): Use mempcpy.
56828
56829         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56830         mbrtowc for very simple UTF-8 case.
56831
56832         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56833         a pointer-to-const.
56834         (re_acquire_state_context): Likewise.
56835         * lib/regex_internal.h: Adjust prototypes.
56836
56837         * lib/regex.c: Prevent using C++ compilers.
56838
56839         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56840         (re_acquire_state_context): Likewise.
56841
56842 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         * modules/regex (Depends-on): Add ssize_t.
56845
56846 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56847
56848         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56849         translation table.
56850
56851 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56852
56853         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56854
56855 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56856             Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56859         <sys/types.h> and <inttypes.h>.
56860
56861 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56862
56863         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56864         `__error_t_defined', so argp.h will not typedef the former.
56865
56866 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56867
56868         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56869         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56870         glibc names.  Even if glibc is changed to conform to POSIX, the
56871         traditional names will be available anyway, since regex depends on
56872         the extensions module.  Also, fix a longstanding typo in the
56873         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56874         reported by Emanuele Giaquinta.  Also, change sense of cached
56875         variable, so that the message makes sense.
56876
56877 2006-03-24  Simon Josefsson  <jas@extundo.com>
56878
56879         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56880         including some doc fixes.
56881         (base64_encode_alloc): Fix +1 bug on allocation failures.
56882
56883 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56884
56885         * lib/base64.c (base64_encode): Do not read past end of array with
56886         unsanitized input on systems with CHAR_BIT > 8.
56887
56888 2006-03-24  Eric Blake  <ebb9@byu.net>
56889
56890         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56891
56892 2006-03-22  Karl Berry  <karl@gnu.org>
56893
56894         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56895         * config/srclistvars.sh (COREUTILS): new var.
56896
56897 2006-03-17  Jim Meyering  <jim@meyering.net>
56898
56899         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56900         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56901
56902 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56905         no longer needs it.  Instead, check that regoff_t is as least
56906         as wide as ptrdiff_t.
56907
56908         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56909         so that our regex.h stays compatible with the installed regex.
56910         This is helpful for installers who configure --without-included-regex.
56911         Problem reported by Emanuele Giaquinta.
56912
56913 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56916         Typedef to long int, not to off_, as POSIX will likely change
56917         in that direction.
56918
56919 2006-03-15  Eric Blake  <ebb9@byu.net>
56920
56921         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56922
56923 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56924
56925         * lib/argp-help.c (validate_uparams): Fix typo
56926         * lib/argp-parse.c (argp_default_options): Consistently begin help
56927         messages with a lowercase letter.
56928
56929 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56930
56931         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56932         overrun buffers and shouldn't be used (much as gets shouldn't be
56933         used).
56934         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56935
56936 2006-03-08  Simon Josefsson  <jas@extundo.com>
56937
56938         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56939         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56940
56941 2006-03-08  Simon Josefsson  <jas@extundo.com>
56942
56943         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56944         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56945
56946 2006-03-08  Simon Josefsson  <jas@extundo.com>
56947
56948         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56949         signal that configure disabled the device.
56950
56951 2006-03-08  Simon Josefsson  <jas@extundo.com>
56952
56953         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56954         languages.
56955
56956 2006-03-07  Simon Josefsson  <jas@extundo.com>
56957
56958         * modules/getopt (Depends-on): Add unistd.
56959
56960         * modules/unistd: New file.
56961
56962 2006-03-07  Simon Josefsson  <jas@extundo.com>
56963
56964         * modules/gc-random: New file.
56965
56966 2006-03-07  Simon Josefsson  <jas@extundo.com>
56967
56968         * m4/unistd_h.m4: New file.
56969
56970 2006-03-07  Simon Josefsson  <jas@extundo.com>
56971
56972         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56973         test to be side-effect free by storing the result in the cache
56974         variable gl_cv_lib_readline, and moving the assignment of
56975         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56976         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56977
56978 2006-03-07  Simon Josefsson  <jas@extundo.com>
56979
56980         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56981         error on missing devices (the functions will return an error).
56982
56983         * m4/gc.m4: Move random stuff to gc-random.m4
56984
56985 2006-03-07  Simon Josefsson  <jas@extundo.com>
56986
56987         * lib/unistd_.h: New file.
56988
56989 2006-03-07  Simon Josefsson  <jas@extundo.com>
56990
56991         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56992
56993 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56994
56995         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56996         Problem reported by Juan Manuel Guerrero.
56997
56998 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57001         the unistd module.
57002         * lib/getlogin_r.c: Likewise.
57003         * lib/getlogin_r.h: Likewise.
57004         * lib/glob.c: Likewise.
57005         * lib/pagealign_alloc.c: Likewise.
57006         * lib/unistd_.h: Remove; no longer needed.
57007
57008 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57009
57010         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57011         Add unistd.
57012         * modules/c-stack (Depends-on): Add unistd.
57013         * modules/getlogin_r: Likewise.
57014         * modules/glob: Likewise.
57015         * modules/pagealign_alloc: Likewise.
57016         * modules/unistd (Files): Remove lib/unistd_.h.
57017         (EXTRA_DIST): Remove.
57018         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57019         need unistd_.h.
57020         (MOSTLYCLEANFILES): Remove unistd.h-t.
57021
57022 2006-03-03  Simon Josefsson  <jas@extundo.com>
57023
57024         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57025
57026 2006-03-03  Simon Josefsson  <jas@extundo.com>
57027
57028         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57029         libidn and bison.
57030
57031 2006-03-03  Simon Josefsson  <jas@extundo.com>
57032
57033         * build-aux/maint.mk: Add indent target.
57034
57035 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57036
57037         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57038         our replacement poll.h in any case, to avoid a differing
57039         declaration from a system header.  Seen on AIX.
57040
57041 2006-03-01  Simon Josefsson  <jas@extundo.com>
57042
57043         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57044         <kasal@ucw.cz>.
57045
57046 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57047
57048         * modules/gettime (Depends-on): Add extensions module.
57049         * modules/nanosleep (Depends-on): Likewise.
57050         * modules/settime (Depends-on): Likewise.
57051
57052 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57053
57054         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57055         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57056         pedantically.
57057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57058         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57059
57060         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57061         not "==".  Reported by Ralf Wildenhues.
57062
57063 2006-03-01  Karl Berry  <karl@gnu.org>
57064
57065         * doc/Copyright/request-*: new files, synced from gnuorg.
57066
57067 2006-03-01  Karl Berry  <karl@gnu.org>
57068
57069         * config/srclist.txt (Copyright/*): new entries.
57070
57071 2006-02-28  Simon Josefsson  <jas@extundo.com>
57072
57073         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57074
57075 2006-02-27  Simon Josefsson  <jas@extundo.com>
57076
57077         * lib/base64.h: Indent #define's.  From Jim Meyering
57078         <jim@meyering.net>.
57079
57080 2006-02-27  Jim Meyering  <jim@meyering.net>
57081
57082         Revert the change of 2006-02-24, so these files can continue
57083         to be sync'd from gettext.
57084         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57085         of `config.h'.
57086
57087 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57088
57089         * modules/intprops: New file.
57090         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57091         Add intprops.
57092         * modules/getloadavg (Files): Remove lib/intprops.h.
57093         (Depends-on): Add intprops.
57094         * modules/human: Likewise.
57095         * modules/inttostr: Likewise.
57096         * modules/openat: Likewise.
57097         * modules/sig2str: Likewise.
57098         * modules/userspec: Likewise.
57099         * modules/utimecmp: Likewise.
57100         * modules/xnanosleep: Likewise.
57101         * modules/xstrtol: Likewise.
57102
57103 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57104
57105         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57106         * modules/lock-tests (TESTS): Use $(EXEEXT).
57107         * modules/tls-tests: Likewise.
57108         * modules/argp-tests: Likewise.
57109         (check_PROGRAMS): New var, replacing...
57110         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57111
57112 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57113
57114         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57115         `config.h'.
57116
57117 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57118
57119         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57120
57121 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57122
57123         Sync from coreutils.
57124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57125         gl_CHDIR_SAFER.
57126
57127 2006-02-22  Jim Meyering  <jim@meyering.net>
57128
57129         Sync from coreutils.
57130         * m4/chdir-safer.m4: New file.
57131
57132 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57135         AT_FDCWD exceeds INT_MAX.
57136         * lib/openat.h (AT_FDCWD): Likewise.
57137
57138 2006-02-17  Eric Blake  <address@hidden>
57139
57140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57141
57142 2006-02-16  Simon Josefsson  <jas@extundo.com>
57143
57144         * modules/getaddrinfo (Depends-on): Add sys_socket.
57145
57146 2006-02-15  Simon Josefsson  <jas@extundo.com>
57147
57148         * build-aux/maint.mk: Add dsyntax-check rule.
57149
57150 2006-02-15  Eric Blake  <ebb9@byu.net>
57151
57152         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57153         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57154         'present but cannot compile' warnings on cygwin.
57155         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57156         use ws2tcpip.h if sys/socket.h works.
57157         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57158         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57159
57160 2006-02-14  Simon Josefsson  <jas@extundo.com>
57161
57162         * modules/maintainer-makefile (Files): Rename.
57163
57164         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57165         and (the local) Makefile.cfg to maint-cfg.mk.
57166
57167         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57168         to the latter.
57169
57170         * modules/maintainer-makefile: New module.
57171
57172         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57173         severaly stripped to make it possible to build it up from scratch
57174         with reliable tests.
57175
57176         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57177         fixes to permit overriding the default actions when configure and
57178         makefile are not available.
57179
57180 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         Sync from coreutils.
57183         * modules/lstat (Depends-on): Don't depend on xalloc.
57184         (License): Change from GPL to LGPL, since this is now simply a
57185         replacement for a libc function.
57186
57187 2006-02-14  Jim Meyering  <jim@meyering.net>
57188
57189         Sync from coreutils.
57190
57191         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57192         failure on deficient systems, and simplify gnulib lgpl dependencies.
57193         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57194         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57195
57196         * lib/xalloc-die.c: Remove unused definition of N_.
57197
57198 2006-02-14  Jim Meyering  <jim@meyering.net>
57199
57200         Sync from coreutils.
57201         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57202         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57203         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57204         double-quote uses of that variable, to accommodate the rare case in
57205         which getmntent is available in none of the libraries checked.  This
57206         happens at least on FreeBSD 5.0.
57207
57208 2006-02-13  Simon Josefsson  <jas@extundo.com>
57209
57210         * gnulib-tool (Usage): Fix --import, from
57211         karl@freefriends.org (Karl Berry).
57212
57213 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57214
57215         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57216
57217 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57218
57219         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57220         "autoupdate" on 2005-12-12.
57221
57222 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57223
57224         * modules/closeout (Depends-on): Remove atexit.
57225
57226 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57227
57228         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57229         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57230
57231 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57232
57233         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57234         __EXTENSIONS__ if this causes compilation to fail.  Problem
57235         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57236         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57237
57238 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57241         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57242         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57243         All uses changed.
57244
57245 2006-01-26  Simon Josefsson  <jas@extundo.com>
57246
57247         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57248         prototype is visible on mingw32.
57249
57250         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57251         for mingw32.
57252
57253         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57254         mingw32).
57255
57256 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57257
57258         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57259         attempt to open for write; this always fails, at least on POSIX
57260         hosts.  This reinstates the 2006-01-09 change, which was
57261         inadvertently removed.
57262
57263 2006-01-26  Bruno Haible  <bruno@clisp.org>
57264
57265         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57266         Reported by Paul Eggert.
57267
57268 2006-01-26  Bruno Haible  <bruno@clisp.org>
57269             Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * lib/stdbool_.h (_Bool)
57272         [(! (defined __cplusplus || defined __BEOS__)
57273           && !defined __GNUC__
57274           && !(defined __HP_cc || defined __xlc__
57275                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57276                || defined __sgi))]:
57277         #define to signed char in these cases too; this simplifies
57278         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57279         etc., separately) and makes it more conservative.
57280
57281 2006-01-25  Simon Josefsson  <jas@extundo.com>
57282
57283         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57284         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57285         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57286
57287 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57288
57289         * lib/argp-namefrob.h: Bugfix. Remove stray #
57290
57291 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57294         so that we test the test.
57295         Check for yet another HP-UX cc bug involving *bool |= bool.
57296
57297 2006-01-25  Karl Berry  <karl@gnu.org>
57298
57299         * config/srclist.txt (vasnprintf.c): sync lost.
57300
57301 2006-01-25  Jim Meyering  <jim@meyering.net>
57302
57303         Sync from the stable (b5) branch of coreutils:
57304
57305         * lib/fts.c (fts_children): Don't let close() clobber errno from
57306         failed fchdir().
57307
57308         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57309         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57310         a dangling symlink.  That can also happen at least for ELOOP.
57311         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57312         FYI, this bug predates the inclusion of fts.c in coreutils.
57313
57314         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57315         in their own block, so pre-c99 compilers don't object.
57316
57317         Avoid the double-free (first in fts_read, second in fts_close) that
57318         would occur when an `active' directory is made inaccessible (e.g.,
57319         via chmod a-x) during a traversal.
57320         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57321         before returning.  Reproduce this failure by
57322         mkdir -p a/b; cd a; chmod a-x . b
57323         Reported by Stavros Passas.
57324
57325 2006-01-25  Jim Meyering  <jim@meyering.net>
57326
57327         * lib/fileblocks.c: Remove more useless parentheses.
57328         * lib/readutmp.h: Likewise.
57329
57330 2006-01-25  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57333         warnings.
57334         Reported by Paul Eggert.
57335
57336 2006-01-25  Bruno Haible  <bruno@clisp.org>
57337
57338         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57339         rid of a trap command. For Solaris sh.
57340         Reported by Mark D. Baushke <mdb@gnu.org>.
57341
57342 2006-01-24  Simon Josefsson  <jas@extundo.com>
57343
57344         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57345         Bruno.
57346
57347 2006-01-24  Karl Berry  <karl@gnu.org>
57348
57349         * config/srclist.txt (argp-namefrob.h): sync lost.
57350
57351 2006-01-24  Jim Meyering  <jim@meyering.net>
57352
57353         * modules/openat (Files): Add lib/intprops.h.
57354         From Mark D. Baushke.
57355
57356 2006-01-24  Jim Meyering  <jim@meyering.net>
57357
57358         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57359         Reported by Mark D. Baushke.
57360
57361 2006-01-24  Jim Meyering  <jim@meyering.net>
57362
57363         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57364
57365 2006-01-24  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/strnlen (Maintainer): Change from glibc to all.
57368
57369 2006-01-24  Bruno Haible  <bruno@clisp.org>
57370
57371         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57372         Patch by Paul Eggert.
57373
57374 2006-01-24  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57377         already has it.
57378         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57379         2005-11-26.
57380
57381         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57382         'signed char' to avoid problems with the built-in _Bool type.
57383         Reported by Paul Eggert on 2005-11-26.
57384
57385 2006-01-24  Bruno Haible  <bruno@clisp.org>
57386
57387         * gnulib-tool (func_import): Avoid constructing complicated sed
57388         expressions inside backquote.
57389         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57390
57391 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57392
57393         These changes imported from libc.
57394         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57395         test and two separate function calls.
57396         * lib/strndup.c (__strndup): Add libc_hidden_def.
57397
57398 2006-01-23  Simon Josefsson  <jas@extundo.com>
57399
57400         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57401         Remove the test_*_SOURCES variable: automake infers it by default.
57402         * modules/tls-tests: Likewise.
57403
57404 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         Work around porting bugs reported by Dieter in
57407         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57408         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57409         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57410         Include "getopt.h" first, to check interface.
57411         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57412         !HAVE_DECL_GETENV.
57413         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57414         (__strndup): Revert to K&R-style function dfns, the glibc style.
57415         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57416         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57417         Include strnlen.h first, to get prototype properly.
57418         (strnlen): Renamed from __strnlen.
57419         Remove weak alias.
57420
57421 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57424
57425 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57426
57427         * config/srclist.txt: Adjust to reflect glibc reorganization.
57428         This affects only comments.
57429
57430 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57431
57432          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57433          Reported by Bruce Korb <bkorb@gnu.org>.
57434
57435 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57438         to pacify gcc -Wswitch-default.
57439
57440 2006-01-22  Bruno Haible  <bruno@clisp.org>
57441
57442         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57443         temporary buffer for sprintf, take into account the precision also
57444         for 'd', 'i', 'u', 'o', 'x', 'X'.
57445
57446 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57447
57448         * modules/argp-tests: New module
57449         * tests/test-argp.c: New file
57450         * tests/test-argp-2.sh: New file
57451
57452 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57453
57454         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57455         (__argp_base_name): Removed
57456         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57457         typo.
57458         (__argp_base_name): Provide macro definition or extern declaration
57459         depending on the configuration
57460
57461 2006-01-20  Simon Josefsson  <jas@extundo.com>
57462
57463         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57464
57465 2006-01-20  Simon Josefsson  <jas@extundo.com>
57466
57467         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57468
57469 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57470
57471         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57472         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57473         Suggested by Bruno Haible.
57474
57475 2006-01-20  Karl Berry  <karl@gnu.org>
57476
57477         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57478         until changes propagate, I guess.
57479
57480 2006-01-19  Simon Josefsson  <jas@extundo.com>
57481
57482         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57483
57484 2006-01-19  Simon Josefsson  <jas@extundo.com>
57485
57486         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57487
57488 2006-01-19  Simon Josefsson  <jas@extundo.com>
57489
57490         * gnulib-tool: Set check_PROGRAMS.
57491
57492         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57493         modules/des-tests, modules/gc-arcfour-tests,
57494         modules/gc-arctwo-tests, modules/gc-des-tests,
57495         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57496         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57497         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57498         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57499         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57500         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57501         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57502         test_*_SOURCES.
57503
57504 2006-01-18  Simon Josefsson  <jas@extundo.com>
57505
57506         * modules/socklen (Depends-on): Depend on sys_socket.
57507
57508 2006-01-18  Simon Josefsson  <jas@extundo.com>
57509
57510         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57511         modules/des-tests, modules/gc-arcfour-tests,
57512         modules/gc-arctwo-tests, modules/gc-des-tests,
57513         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57514         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57515         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57516         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57517         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57518         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57519         $(EXEEXT) to automake TESTS variable, for mingw32.
57520
57521 2006-01-17  Simon Josefsson  <jas@extundo.com>
57522
57523         * modules/socklen (Include): Need sys/socket.h.
57524
57525 2006-01-17  Bruno Haible  <bruno@clisp.org>
57526
57527         * modules/ssize_t (Include): Add <sys/types.h>.
57528
57529 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57532         it's not portable and it doesn't work with cross-compiles.
57533         Problem reported by Bruno Haible.  Fix missing-$ typo in
57534         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57535         -zignore from being used with Sun's C compiler.
57536
57537 2006-01-12  Simon Josefsson  <jas@extundo.com>
57538
57539         * lib/base64.c: Fix warning, reported by Bruno Haible
57540         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57541
57542 2006-01-12  Bruno Haible  <bruno@clisp.org>
57543
57544         * modules/ldd: New file.
57545         * build-aux/ldd.sh.in: New file.
57546         * MODULES.html.sh (Support for building libraries and executables): Add
57547         ldd.
57548
57549 2006-01-12  Bruno Haible  <bruno@clisp.org>
57550
57551         * m4/ldd.m4: New file.
57552
57553 2006-01-12  Bruno Haible  <bruno@clisp.org>
57554
57555         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57556         endless loop while replacing $auxdir with build-aux.
57557
57558 2006-01-11  Simon Josefsson  <jas@extundo.com>
57559
57560         * lib/stdint_.h (SIZE_MAX): Add missing (.
57561
57562 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57563
57564         Sync from coreutils.
57565         * lib/md5.c: Fix commentary typos.
57566         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57567         * lib/md5.h (__attribute__): Remove; unused.
57568         * lib/sha1.c: Fix commentary to match md5 better.
57569         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57570         so that we don't need to worry about alignment.  All uses changed.
57571         This merges the 2005-10-28 md5 change into sha1.
57572
57573 2006-01-11  Jim Meyering  <jim@meyering.net>
57574
57575         Sync from coreutils.
57576         * lib/md5.c (OP): Fix spacing.
57577
57578 2006-01-11  Bruno Haible  <bruno@clisp.org>
57579
57580         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57581         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57582         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57583
57584 2006-01-11  Bruno Haible  <bruno@clisp.org>
57585
57586         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57587         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57588         the "early" section as well.
57589
57590 2006-01-11  Bruno Haible  <bruno@clisp.org>
57591
57592         Avoid "ar: no archive members specified" error on MacOS X.
57593         * gnulib-tool (func_modules_add_dummy): New function.
57594         (func_import, func_create_testdir): Invoke it.
57595
57596 2006-01-11  Bruno Haible  <bruno@clisp.org>
57597
57598         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57599         with $auxdir in AC_CONFIG_FILES statements.
57600
57601 2006-01-11  Bruno Haible  <bruno@clisp.org>
57602
57603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57604         Initialize also noinst_HEADERS to empty.
57605
57606 2006-01-11  Bruno Haible  <bruno@clisp.org>
57607
57608         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57609         variables.
57610         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57611         autoreconf.
57612
57613 2006-01-11  Bruno Haible  <bruno@clisp.org>
57614
57615         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57616         overridable by the user.
57617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57618
57619 2006-01-10  Simon Josefsson  <jas@extundo.com>
57620
57621         * modules/sys_socket: New file.
57622
57623 2006-01-10  Simon Josefsson  <jas@extundo.com>
57624
57625         * m4/sys_socket_h.m4: New file.
57626
57627 2006-01-10  Simon Josefsson  <jas@extundo.com>
57628
57629         * lib/socket_.h: New file.
57630
57631 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57632
57633         * modules/readutmp (Maintainer): Add myself.
57634
57635 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57638         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57639         People who are still concerned with buggy memcmp implementations
57640         can invoke gl_FUNC_MEMCMP themselves.
57641
57642 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         * lib/regex_internal.h (BITSET_WORD_BITS):
57645         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57646         preprocessor mishandles large unsigned values as if they were signed.
57647         Problem reported by Claudio Fontana in
57648         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57649
57650 2006-01-10  Jim Meyering  <jim@meyering.net>
57651
57652         Avoid the double-free (first in fts_read, second in fts_close) that
57653         would occur when an `active' directory is made inaccessible (e.g.,
57654         via chmod a-x) during a traversal.
57655         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57656         before returning.  Reproduce this failure by
57657         mkdir -p a/b; cd a; chmod a-x . b
57658         Reported by Stavros Passas.
57659
57660         Sync from coreutils.
57661         * lib/sha1.c: Tweak grammar in a comment.
57662
57663 2006-01-10  Jim Meyering  <jim@meyering.net>
57664
57665         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57666         Patch by Joerg Sonnenberger.
57667
57668 2006-01-10  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/readutmp: Depend on module free.
57671         * modules/strtok_r: Depend on module restrict.
57672
57673 2006-01-10  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/gettext (configure.ac): Add an invocation of
57676         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57677
57678 2006-01-10  Bruno Haible  <bruno@clisp.org>
57679
57680         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57681         Reported by Werner Lemberg <wl@gnu.org>.
57682
57683 2006-01-10  Bruno Haible  <bruno@clisp.org>
57684
57685         * lib/localcharset.c: Update from GNU gettext.
57686
57687 2006-01-10  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/argp.h (__const): Remove macro. Use const instead.
57690         * lib/argp-fmtstream.h (__const): Likewise.
57691         * lib/glob_.h (__const): Remove macro.
57692         * lib/glob-libc.h: Use const instead of __const.
57693
57694 2006-01-10  Bruno Haible  <bruno@clisp.org>
57695
57696         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57697         variable.
57698         Needed to avoid an automake error regarding the 'gettext' module.
57699
57700 2006-01-09  Simon Josefsson  <jas@extundo.com>
57701
57702         * modules/inet_ntop (Depends-on): Add restrict.
57703
57704 2006-01-09  Simon Josefsson  <jas@extundo.com>
57705
57706         * modules/gc-rijndael-tests (License): Put under LGPL.
57707
57708         * modules/gc-des-tests (License): Likewise.
57709
57710         * modules/gc-arcfour-tests (License): Likewise.
57711
57712         * modules/gc-arctwo-tests (License): Likewise.
57713
57714         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57715
57716         * modules/gc-hmac-sha1-tests (Files): Likewise.
57717
57718         * modules/gc-hmac-md5-tests (License): Likewise.
57719
57720         * modules/gc-sha1-tests (License): Likewise.
57721
57722         * modules/gc-md5-tests (License): Likewise.
57723
57724         * modules/gc-md4-tests (License): Likewise.
57725
57726         * modules/gc-md2-tests (License): Likewise.
57727
57728         * modules/gc-tests (License): Likewise.
57729
57730         * modules/des-tests (License): Likewise.
57731
57732         * modules/md4-tests (License): Likewise.
57733
57734         * modules/md2-tests (License): Likewise.
57735
57736 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57737
57738         Sync from coreutils:
57739
57740         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57741         * modules/lib-ignore: New file.
57742         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57743         chdir-safer.m4, lchmod.m4.
57744         * modules/openat: Add mkdirat.c, openat-priv.h.
57745
57746 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         Sync from coreutils.
57749         * m4/lib-ignore.m4: New file.
57750         * m4/lchmod.m4: New file.
57751
57752 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57753
57754         Sync from coreutils.
57755         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57756         for write access: POSIX says that must fail.
57757         * lib/fts.c (diropen): Likewise.
57758         * lib/save-cwd.c (save_cwd): Likewise.
57759         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57760         well, for minor improvements on hosts that lack O_DIRECTORY.
57761         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57762         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57763         Fall back on chown if open failed with EACCES.
57764
57765         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57766         Report an error at compile-time if only a 1-second nominal clock
57767         resolution is found.
57768
57769         * lib/lchmod.h: New file.
57770         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57771         (make_dir_parents): Use lchown rather than chown, and
57772         lchmod rather than chmod.
57773
57774         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57775         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57776         "proc" reported by n0dalus.
57777
57778         * lib/mountlist.c: Include <limits.h>.
57779         (dev_from_mount_options)
57780         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57781         New function.  It no longer assumes "dev=" has the System V meaning
57782         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57783         (read_file_system_list)
57784         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57785         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57786         dev= in that case.
57787
57788         * lib/posixtm.h (PDS_PRE_2000): New macro.
57789         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57790         allow_century.  All usages changed.  Reject dates outside the range
57791         1969-1999 if PDS_PRE_2000 is used.
57792
57793 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57794
57795         Sync from coreutils.
57796         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57797         (Time of day items): Mention the possibility of leap seconds.
57798         Problem reported by Dr. David Alan Gilbert.
57799
57800 2006-01-09  Jim Meyering  <jim@meyering.net>
57801
57802         Sync from coreutils.
57803
57804         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57805
57806         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57807
57808         * lib/modechange.c (mode_compile): Reject an invalid mode string
57809         that starts with an octal digit.  From Andreas Gruenbacher.
57810
57811         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57812         and dup to open_safer and dup_safer, respectively.
57813         (openat_permissive): Fix typo in comment.
57814
57815         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57816         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57817         (_): Remove; no longer needed.
57818         (openat): Renamed from rpl_openat; no need for rpl_openat
57819         since openat.h renames openat for us.
57820         Replace most of the body with a call to openat_permissive,
57821         to avoid duplicate code.
57822         Port to (probably hypothetical) environments were mode_t is
57823         wider than int.
57824         (openat_permissive): Require mode arg, so that we can check
57825         types better.  Put it just after flags.  Change cwd failure
57826         indicator from pointer-to-bool to pointer-to-errno-value.
57827         All callers changed.
57828         Invoke openat_save_fail and/or openat_restore_fail if
57829         cwd_errno is null, so that openat can call us.
57830         (openat_permissive, fdopendir, fstatat, unlinkat):
57831         Simplify errno handling to avoid some duplicate code,
57832         as it's OK to set errno on success.
57833         * lib/openat.h: Revamp code so that function macros depend on
57834         __OPENAT_PREFIX only, not also on AT_FDCWD.
57835         (openat_ro): Remove.  Caller changed to use openat_permissive.
57836         (openat_permissive): Now a macro, if not a function.
57837         (openat_restore_fail, openat_save_fail): Now always functions,
57838         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57839
57840         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57841         and openat.c.
57842         * lib/mkdirat.c: Include openat-priv.h.
57843         Remove definitions of macros defined therein.
57844         * lib/openat.c: Likewise.
57845
57846         * lib/mkdirat.c (mkdirat): New file and function.
57847         * lib/openat.h (mkdirat): Declare.
57848
57849         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57850
57851         * lib/openat.h (openat_permissive): Declare.
57852         (openat_ro): Define.
57853
57854         * lib/openat.c (EXPECTED_ERRNO): New macro.
57855         (openat_permissive): New function -- used in remove.c rewrite.
57856         (all functions): Set errno just before returning, only if there
57857         was an actual failure.
57858         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57859
57860         Emulate openat-family functions using Linux's procfs, if possible.
57861         Idea and some code based on Ulrich Drepper's glibc changes.
57862
57863         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57864         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57865         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57866         before falling back on save_cwd and restore_cwd.
57867         (fdopendir, fstatat, unlinkat): Likewise.
57868
57869         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57870         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57871
57872         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57873         as second argument to va_arg.  Otherwise, some versions of gcc
57874         warn that `if this code is reached, the program will abort'.
57875
57876 2006-01-09  Jim Meyering  <jim@meyering.net>
57877
57878         Sync from coreutils.
57879         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57880         Require openat-priv.h.
57881
57882 2006-01-09  Bruno Haible  <bruno@clisp.org>
57883
57884         * modules/strnlen (Include): Use strnlen.h.
57885
57886 2006-01-09  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57889
57890 2006-01-09  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/sysexit_.h (EX_OK): New macro.
57893         Suggested by Martin Lambers <marlam@marlam.de>.
57894
57895 2006-01-09  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57898         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57899
57900 2006-01-09  Bruno Haible  <bruno@clisp.org>
57901
57902         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57903         numbers.
57904
57905 2006-01-09  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57908         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57909         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57910         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57911
57912 2006-01-09  Bruno Haible  <bruno@clisp.org>
57913
57914         * build-aux/javacomp.sh.in: New file, moved from lib/.
57915         * modules/javacomp-script (Files): Update.
57916         (configure.ac): Add AC_CONFIG_FILES invocation.
57917         (EXTRA_DIST): Remove variable.
57918
57919         * build-aux/javaexec.sh.in: New file, moved from lib/.
57920         * modules/javaexec (Files): Update.
57921         (configure.ac): Add AC_CONFIG_FILES invocation.
57922         (EXTRA_DIST): Remove javaexec.sh.in.
57923
57924         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57925         * modules/csharpcomp-script (Files): Update.
57926         (configure.ac): Add AC_CONFIG_FILES invocation.
57927         (EXTRA_DIST): Remove variable.
57928
57929         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57930         * modules/csharpexec (Files): Update.
57931         (configure.ac): Add AC_CONFIG_FILES invocation.
57932         (EXTRA_DIST): Remove csharpexec.sh.in.
57933
57934 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57935
57936         Sync from coreutils.
57937
57938         Add POSIX ACL support
57939         * lib/acl.h (copy_acl, set_acl): Add declarations.
57940         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57941         systems other than Linux.
57942         (chmod_or_fchmod): New function: use fchmod when possible,
57943         and chmod otherwise.
57944         (file_has_acl): Add a POSIX ACL implementation, with a
57945         Linux-specific subcase.
57946         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57947         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57948         acls are unsupported.
57949         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57950         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57951         are unsupported.
57952
57953 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57954
57955         Sync from coreutils.
57956         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57957
57958 2006-01-07  Bruno Haible  <bruno@clisp.org>
57959
57960         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57961         gl_EARLY.
57962
57963 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57964
57965         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57966         Problem reported for Mingw by Mark Junker.
57967
57968 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57969
57970         * README: Gnulib normally doesn't generate a tarball.
57971
57972 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57973
57974         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57975         long int, not int, for nanosecond counts, so that people who are
57976         used to POSIX struct timespec won't be surprised.  Reported by Jim
57977         Meyering.
57978
57979 2005-12-28  Bruno Haible  <bruno@clisp.org>
57980
57981         * build-aux/config.rpath: Update from GNU gettext.
57982
57983 2005-12-16  Jim Meyering  <jim@meyering.net>
57984
57985         * modules/fprintftime: New module.
57986         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57987
57988 2005-12-16  Jim Meyering  <jim@meyering.net>
57989
57990         * m4/fprintftime.m4: New file.
57991
57992 2005-12-16  Jim Meyering  <jim@meyering.net>
57993
57994         * lib/fprintftime.c, lib/fprintftime.h: New files.
57995
57996 2005-12-15  Simon Josefsson  <jas@extundo.com>
57997
57998         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57999         new m4/socklen.m4.
58000
58001 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58002
58003         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58004         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58005
58006 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58007
58008         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58009         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58010         struct uparams is valid. Fall back to the default values if it is
58011         not.
58012
58013 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58014
58015         * modules/argp (Files): Add argp-pin.c
58016         (Depends-on): dirname
58017         (lib_SOURCES): Add argp-pin.c
58018
58019 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58020
58021         * m4/argp.m4:  Check if program_invocation_name and
58022         program_invocation_short_name are declared and define appropriate
58023         macros if they are not.
58024
58025 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58026
58027         * lib/argp-help.c (__argp_base_name): New function
58028         (__argp_short_program_name): Rewrite using __argp_base_name
58029         * lib/argp-namefrob.h: Define program_invocation_name and
58030         program_invocation_short_name if requested
58031         (__argp_base_name): Add prototype
58032         * lib/argp-parse.c (argp_def): Use gettext wrappers
58033         (argp_default_parser): Use __argp_base_name
58034         * lib/argp-pin.c: New file. Defines program_invocation_name and
58035         program_invocation_short_name on systems that lack them.
58036
58037 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58038
58039         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58040         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58041         porting problem reported by Georg Schwarz in
58042         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58043
58044 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58045
58046         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58047         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58048         porting problem reported by Georg Schwarz in
58049         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58050
58051 2005-12-05  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58054         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58055         Reported by Mark Junker <mjscod@gmx.de>.
58056
58057 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58058
58059         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58060         Use implementation from Albert Chin, with some
58061         comments/corrections by Stepan Kasal and myself.
58062
58063 2005-12-02  Bruno Haible  <bruno@clisp.org>
58064
58065         * gnulib-tool (func_import): Accept GPLed build tool modules when
58066         --lgpl is given.
58067         * modules/csharpcomp-script: New file.
58068         * modules/csharpcomp: Depend on it.
58069         * modules/javacomp-script: New file.
58070         * modules/javacomp: Depend on it.
58071         Suggested by Simon Josefsson.
58072
58073 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58074
58075         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58076         statement, to work around an HP-UX 10.20 compiler bug reported by
58077         Peter O'Gorman.
58078
58079 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * modules/savedir (Depends-on): Add openat.
58082
58083 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58084
58085         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58086         (uintmax_t) [defined uintmax_t]: Do not declare.
58087         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58088         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58089         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58090         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58091         sake of portability to weird hosts that C allows (though we don't
58092         know of any practical examples).
58093
58094         * lib/savedir.h (fdsavedir): New decl.
58095         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58096         contains most of the former guts of savedir.
58097         (savedir): Use savedirstream.
58098         Include "openat.h".
58099
58100 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * modules/obstack (Files): Add m4/ulonglong.m4.
58103         Problem reported by Davide Angelocola.
58104
58105 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58108         coreutils no longer futzes with rounding modes.
58109
58110 2005-11-14  Jim Meyering  <jim@meyering.net>
58111
58112         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58113         replacement of mkstemp.
58114
58115 2005-11-10  Simon Josefsson  <jas@extundo.com>
58116
58117         * lib/readline.c: Remove EOL.
58118
58119 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * modules/gethrxtime (Depends-on): Add gettime.
58122
58123 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58124
58125         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58126         or gettimeofday; no longer needed.
58127
58128 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58129
58130         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58131         time business.
58132         (gethrxtime) [! (HAVE_NANOUPTIME
58133         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58134         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58135         our own approximation.
58136
58137 2005-11-08  Eric Blake  <ebb9@byu.net>
58138
58139         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58140
58141 2005-11-08  Eric Blake  <ebb9@byu.net>
58142
58143         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58144
58145 2005-11-04  Bruno Haible  <bruno@clisp.org>
58146
58147         * gnulib-tool: Implement --update mode.
58148
58149 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         Fix porting problem reported by Theodoros V. Kalamatianos.
58152         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58153         Don't assume that futimes failing means we must fail.
58154
58155 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58156
58157         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58158         variables to suggest the intended function of the PATH_MAX check.
58159
58160 2005-10-30  Kean Johnston  <jkj@sco.com>
58161
58162         Trivial changes to support SCO systems.
58163         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58164         as PATH_MAX.
58165         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58166         where __ptr is null when no I/O is pending.
58167
58168 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58169
58170         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58171         leave errno alone.  Problem reported by Dmitry V. Levin.
58172
58173 2005-10-28  Simon Josefsson  <jas@extundo.com>
58174
58175         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58176         Test more.
58177
58178         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58179
58180         * modules/md2, modules/md2-tests: New files.
58181
58182 2005-10-28  Simon Josefsson  <jas@extundo.com>
58183
58184         * m4/inet_ntop.m4: More tests.
58185
58186         * m4/gc-md2.m4, md2.m4: New file.
58187
58188 2005-10-28  Simon Josefsson  <jas@extundo.com>
58189
58190         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58191         "restrict" keywords, as per POSIX.  Protect the function
58192         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58193         Don't use K&R prototypes.  Check the sprintf return values.
58194         Re-define EAFNOSUPPORT if not present.  Indent.
58195
58196         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58197         suggested by Bruno Haible <bruno@clisp.org>.
58198
58199         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58200
58201         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58202
58203         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58204         libgcrypt).
58205
58206         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58207
58208         * lib/md2.h, lib/md2.c: New files.
58209
58210 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58213         errno alone.  Problem reported by Frederic Jolliton.
58214
58215 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58216
58217         * modules/verify (License): Change from GPL to LGPL.  This is a
58218         tiny module and there are apparently near-equivalents that are
58219         under the BSD license.
58220
58221 2005-10-24  Simon Josefsson  <jas@extundo.com>
58222
58223         * modules/sha1: Relicense to LGPL.
58224
58225 2005-10-24  Simon Josefsson  <jas@extundo.com>
58226
58227         * lib/md4.h: Shrink buffer size, now that we changed the type.
58228
58229 2005-10-23  Simon Josefsson  <jas@extundo.com>
58230
58231         * gnulib-tool (func_import): Fix --tests-base.
58232
58233 2005-10-22  Simon Josefsson  <jas@extundo.com>
58234
58235         * modules/arcfour (Depends-on): Need stdint.
58236
58237 2005-10-22  Simon Josefsson  <jas@extundo.com>
58238
58239         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58240         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58241
58242 2005-10-22  Simon Josefsson  <jas@extundo.com>
58243
58244         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58245         suggested by Bruno Haible <bruno@clisp.org>.
58246
58247 2005-10-22  Simon Josefsson  <jas@extundo.com>
58248
58249         * lib/crc.h: Include stddef.h, for size_t.
58250
58251 2005-10-22  Simon Josefsson  <jas@extundo.com>
58252
58253         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58254         arcfour_context struct (simplify test vector testing in GNU
58255         Shishi).
58256
58257 2005-10-21  Simon Josefsson  <jas@extundo.com>
58258
58259         * modules/des, modules/des-tests: New files.
58260
58261         * modules/gc-des, modules/gc-des-tests: New files.
58262
58263         * tests/test-des.c, tests/test-gc-des.c: New file.
58264
58265 2005-10-21  Simon Josefsson  <jas@extundo.com>
58266
58267         * modules/arctwo, modules/arctwo-tests: New files.
58268
58269         * tests/test-arctwo.c: New file.
58270
58271         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58272
58273         * tests/test-gc-arctwo.c: New file.
58274
58275 2005-10-21  Simon Josefsson  <jas@extundo.com>
58276
58277         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58278         Bruno Haible <bruno@clisp.org>.
58279
58280         * m4/gc-des.m4: New file.
58281
58282 2005-10-21  Simon Josefsson  <jas@extundo.com>
58283
58284         * m4/arctwo.m4: New file.
58285
58286         * m4/gc-arctwo.m4: New file.
58287
58288 2005-10-21  Simon Josefsson  <jas@extundo.com>
58289
58290         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58291         block.
58292
58293 2005-10-21  Simon Josefsson  <jas@extundo.com>
58294
58295         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58296         <bruno@clisp.org>.
58297
58298         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58299
58300         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58301         Bruno Haible <bruno@clisp.org>.
58302
58303         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58304         <bruno@clisp.org>.
58305
58306 2005-10-21  Simon Josefsson  <jas@extundo.com>
58307
58308         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58309
58310 2005-10-21  Simon Josefsson  <jas@extundo.com>
58311
58312         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58313
58314 2005-10-21  Simon Josefsson  <jas@extundo.com>
58315
58316         * lib/des.h, lib/des.c: New files.
58317
58318         * lib/gc-gnulib.c: Support DES.c
58319
58320 2005-10-21  Simon Josefsson  <jas@extundo.com>
58321
58322         * lib/arctwo.h, lib/arctwo.c: New files.
58323
58324         * lib/gc-gnulib.c: Support ARCTWO.
58325
58326 2005-10-21  Simon Josefsson  <jas@extundo.com>
58327
58328         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58329         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58330
58331 2005-10-21  Simon Josefsson  <jas@extundo.com>
58332
58333         * gnulib-tool (func_import, func_create_testdir): Define automake
58334         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58335         Makefile.am snippet),
58336         suggested by Bruno Haible <bruno@clisp.org>.
58337
58338         * modules/gc (Makefile.am): Use it.
58339
58340 2005-10-21  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58343         patch.
58344
58345 2005-10-19  Simon Josefsson  <jas@extundo.com>
58346
58347         * tests/test-gc-rijndael.c: New file.
58348
58349         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58350
58351 2005-10-19  Simon Josefsson  <jas@extundo.com>
58352
58353         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58354         interface too.
58355
58356 2005-10-19  Simon Josefsson  <jas@extundo.com>
58357
58358         * tests/test-gc-arcfour.c: New file.
58359
58360         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58361
58362 2005-10-19  Simon Josefsson  <jas@extundo.com>
58363
58364         * modules/gc-md4, modules/gc-md4-tests: New file.
58365
58366         * tests/test-gc-md4.c: New file.
58367
58368 2005-10-19  Simon Josefsson  <jas@extundo.com>
58369
58370         * m4/gc-md4.m4: New file.
58371
58372 2005-10-19  Simon Josefsson  <jas@extundo.com>
58373
58374         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58375         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58376         <kasal@ucw.cz>.
58377
58378 2005-10-19  Simon Josefsson  <jas@extundo.com>
58379
58380         * m4/gc-arcfour.m4: New file.
58381
58382         * m4/gc-rijndael.m4: New file.
58383
58384 2005-10-19  Simon Josefsson  <jas@extundo.com>
58385
58386         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58387
58388 2005-10-19  Simon Josefsson  <jas@extundo.com>
58389
58390         * lib/gc-gnulib.c: Support ARCFOUR.
58391
58392 2005-10-19  Simon Josefsson  <jas@extundo.com>
58393
58394         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58395         support.
58396
58397         * lib/gc.h: Add ECB enum type.
58398
58399         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58400
58401 2005-10-18  Simon Josefsson  <jas@extundo.com>
58402
58403         * tests/test-md5.c: New file.
58404
58405         * modules/md5-tests: New file.
58406
58407 2005-10-18  Simon Josefsson  <jas@extundo.com>
58408
58409         * tests/test-md4.c: New file.
58410
58411         * modules/md4, modules/md4-tests: New files.
58412
58413 2005-10-18  Simon Josefsson  <jas@extundo.com>
58414
58415         * m4/md4.m4: New file.
58416
58417 2005-10-18  Simon Josefsson  <jas@extundo.com>
58418
58419         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58420
58421 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58422
58423         * gnulib-tool (func_create_testdir): Omit the second check whether
58424         BUILT_SOURCES in nonempty.
58425
58426 2005-10-17  Simon Josefsson  <jas@extundo.com>
58427
58428         * tests/test-rijndael.c: New file.
58429
58430 2005-10-17  Simon Josefsson  <jas@extundo.com>
58431
58432         * modules/sha1: Depend on stdint instead of md5.
58433
58434         * modules/md5: Depend on stdint, remove uint32_t.
58435
58436 2005-10-17  Simon Josefsson  <jas@extundo.com>
58437
58438         * modules/gc-sha1-tests: New file.
58439
58440         * tests/test-gc-sha1.c: New file.
58441
58442 2005-10-17  Simon Josefsson  <jas@extundo.com>
58443
58444         * m4/md5.m4: Remove call to uint32_t.m4.
58445
58446 2005-10-17  Simon Josefsson  <jas@extundo.com>
58447
58448         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58449
58450         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58451         md5.h.
58452
58453         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58454
58455         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58456
58457 2005-10-17  Simon Josefsson  <jas@extundo.com>
58458
58459         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58460
58461 2005-10-17  Simon Josefsson  <jas@extundo.com>
58462
58463         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58464
58465 2005-10-17  Simon Josefsson  <jas@extundo.com>
58466
58467         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58468
58469         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58470
58471 2005-10-17  Bruno Haible  <bruno@clisp.org>
58472
58473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58474         that it can also be used in a test.
58475
58476 2005-10-16  Bruno Haible  <bruno@clisp.org>
58477
58478         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58479         TESTS_ENVIRONMENT, so that individual tests can augment it.
58480
58481         * gnulib-tool (func_create_testdir): Use an intermediate target for
58482         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58483         macros, like $(ALLOCA_H), which cannot be passed through the command
58484         line.
58485
58486 2005-10-15  Simon Josefsson  <jas@extundo.com>
58487
58488         * modules/rijndael-tests: New file.
58489
58490         * modules/rijndael: New file.
58491
58492 2005-10-15  Simon Josefsson  <jas@extundo.com>
58493
58494         * m4/rijndael.m4: New file.
58495
58496 2005-10-15  Simon Josefsson  <jas@extundo.com>
58497
58498         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58499
58500         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58501
58502 2005-10-14  Simon Josefsson  <jas@extundo.com>
58503
58504         * tests/test-arcfour.c: New file.
58505
58506         * modules/arcfour, modules/arcfour-tests: New files.
58507
58508 2005-10-14  Simon Josefsson  <jas@extundo.com>
58509
58510         * m4/arcfour.m4: New file.
58511
58512 2005-10-14  Simon Josefsson  <jas@extundo.com>
58513
58514         * lib/arcfour.h, lib/arcfour.c: New files.
58515
58516 2005-10-14  Roland McGrath  <roland@redhat.com>
58517
58518         Import from libc.  [BZ #1331]
58519         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58520         macro argument.
58521         Reported by Matej Vela <vela@debian.org>.
58522
58523 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58526         include <wchar.h>; no longer needed.
58527
58528 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58529
58530         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58531
58532 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58533         and  Ulrich Drepper  <drepper@redhat.com>
58534
58535         Import from libc.
58536         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58537         instead of inline stream orientation test and two separate
58538         function calls.  Pay no attention to USE_IN_LIBIO.
58539
58540 2005-10-13  Simon Josefsson  <jas@extundo.com>
58541
58542         * modules/gc-hmac-md5-tests: New file.
58543
58544         * tests/test-gc-hmac-sha1.c: New file.
58545
58546         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58547
58548         * modules/gc-hmac-md5-tests: New file.
58549
58550         * tests/test-gc-md5.c: New file.
58551
58552         * modules/gc-md5-tests: New file.
58553
58554 2005-10-13  Simon Josefsson  <jas@extundo.com>
58555
58556         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58557         Move memory allocation outside of loop.
58558
58559 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58562         intermediate directory is in a read-only file system.  Problem
58563         reported by Eric Blake.
58564
58565 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58566
58567         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58568
58569 2005-10-12  Simon Josefsson  <jas@extundo.com>
58570
58571         * tests/test-hmac-sha1.c: New file.
58572
58573         * modules/hmac-sha1-tests: New file.
58574
58575         * modules/hmac-sha1: New file.
58576
58577 2005-10-12  Simon Josefsson  <jas@extundo.com>
58578
58579         * modules/gc-sha1: New file.
58580
58581 2005-10-12  Simon Josefsson  <jas@extundo.com>
58582
58583         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58584
58585         * tests/test-gc-pbkdf2-sha1.c: New file.
58586
58587 2005-10-12  Simon Josefsson  <jas@extundo.com>
58588
58589         * modules/gc-md5, modules/gc-hmac-md5: New files.
58590
58591         * modules/gc (Files): Remove md5, memxor and hmac files.
58592
58593 2005-10-12  Simon Josefsson  <jas@extundo.com>
58594
58595         * m4/gc-pbkdf2-sha1.m4: New file.
58596
58597         * m4/gc-hmac-sha1.m4: New file.
58598
58599         * m4/gc-sha1: New file.
58600
58601         * m4/hmac-sha1.m4: New file.
58602
58603 2005-10-12  Simon Josefsson  <jas@extundo.com>
58604
58605         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58606
58607         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58608
58609 2005-10-12  Simon Josefsson  <jas@extundo.com>
58610
58611         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58612         suggested by Bruno Haible <bruno@clisp.org>.
58613
58614 2005-10-12  Simon Josefsson  <jas@extundo.com>
58615
58616         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58617
58618 2005-10-12  Simon Josefsson  <jas@extundo.com>
58619
58620         * lib/gc-pbkdf2-sha1.c: New file.
58621
58622         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58623
58624 2005-10-12  Simon Josefsson  <jas@extundo.com>
58625
58626         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58627
58628         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58629
58630 2005-10-12  Simon Josefsson  <jas@extundo.com>
58631
58632         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58633         GC_USE_HMAC_MD5, respectively.
58634
58635         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58636         (gc_md5): Fix typo.
58637
58638         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58639
58640         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58641
58642         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58643
58644 2005-10-12  Bruno Haible  <bruno@clisp.org>
58645
58646         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58647         Reported by Stepan Kasal <kasal@ucw.cz>.
58648
58649 2005-10-11  Simon Josefsson  <jas@extundo.com>
58650
58651         * tests/test-crc.c: New file.
58652
58653         * modules/crc, modules/crc-tests: New files.
58654
58655 2005-10-11  Simon Josefsson  <jas@extundo.com>
58656
58657         * m4/crc.m4: New file.
58658
58659 2005-10-11  Simon Josefsson  <jas@extundo.com>
58660
58661         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58662
58663         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58664
58665         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58666
58667 2005-10-11  Simon Josefsson  <jas@extundo.com>
58668
58669         * lib/crc.h, lib/crc.c: New files.
58670
58671         * lib/gc.h (gc_hash_buffer): Add doc.
58672
58673 2005-10-11  Bruno Haible  <bruno@clisp.org>
58674
58675         * modules/c-strcasestr: New file.
58676         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58677
58678 2005-10-11  Bruno Haible  <bruno@clisp.org>
58679
58680         * modules/c-strcase: New file.
58681         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58682
58683 2005-10-11  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/strcasecmp.c: Include limits.h.
58686         (strcasecmp): Avoid integer overflow on exotic platforms.
58687         * lib/strncasecmp.c: Include limits.h.
58688         (strncasecmp): Avoid integer overflow on exotic platforms.
58689         Reported by Paul Eggert.
58690
58691 2005-10-11  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/c-strcasestr.h: New file, from GNU gettext.
58694         * lib/c-strcasestr.c: New file, from GNU gettext.
58695
58696 2005-10-11  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/c-strcase.h: New file, from GNU gettext.
58699         * lib/c-strcasecmp.c: New file, from GNU gettext.
58700         * lib/c-strncasecmp.c: New file, from GNU gettext.
58701
58702 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * modules/mempcpy (License): GPL -> LGPL.
58705         * modules/strchrnul (License): Likewise.
58706         * modules/sysexits (License): Likewise.
58707
58708 2005-10-08  Simon Josefsson  <jas@extundo.com>
58709
58710         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58711
58712 2005-10-07  Simon Josefsson  <jas@extundo.com>
58713
58714         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58715
58716 2005-10-06  Simon Josefsson  <jas@extundo.com>
58717
58718         * tests/test-hmac-md5.c: New file.
58719
58720         * modules/hmac-md5-tests: New file.
58721
58722         * modules/hmac-md5: New file.
58723
58724 2005-10-06  Simon Josefsson  <jas@extundo.com>
58725
58726         * m4/hmac-md5.m4: New file.
58727
58728         * m4/memxor.m4: Require gl_C_RESTRICT.
58729
58730 2005-10-06  Simon Josefsson  <jas@extundo.com>
58731
58732         * lib/memxor.c (memxor): Avoid casts and warnings.
58733
58734 2005-10-06  Simon Josefsson  <jas@extundo.com>
58735
58736         * lib/hmac-md5.c: New file.
58737
58738         * lib/hmac.h: New file.
58739
58740 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58741
58742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58743         promotes to int, not unsigned int, to catch the AIX 5.3
58744         compiler bug.
58745
58746 2005-10-05  Simon Josefsson  <jas@extundo.com>
58747
58748         * modules/memxor: New file.
58749
58750         * modules/iconv (Files): Move config.rpath to havelib, it is used
58751         there.
58752
58753         * modules/havelib (Files): Add config.rpath.
58754
58755 2005-10-05  Simon Josefsson  <jas@extundo.com>
58756
58757         * m4/memxor.m4: New file.
58758
58759 2005-10-05  Simon Josefsson  <jas@extundo.com>
58760
58761         * lib/memxor.c (memxor): Fix compiler error.
58762
58763         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58764         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58765
58766         * lib/memxor.h, lib/memxor.c: New files.
58767
58768         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58769         we assume all systems have it, suggested by Jim Meyering
58770         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58771         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58772         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58773         same reasons.
58774
58775 2005-10-05  Simon Josefsson  <jas@extundo.com>
58776
58777         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58778
58779 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58782         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58783         needed, since the source code now assumes these .h files.
58784
58785 2005-10-05  Derek Price  <derek@ximbiot.com>
58786
58787         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58788
58789 2005-10-05  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/stdint (License): Change to LGPL.
58792
58793 2005-10-04  Simon Josefsson  <jas@extundo.com>
58794
58795         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58796         D. Baushke" <mdb@gnu.org>.
58797
58798 2005-10-04  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/verify.h (verify_true): Provide alternative definition for C++.
58801
58802 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58803
58804         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58805         (SSIZE_MAX): New macro, if not already defined.
58806         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58807         than 2 GiB.
58808
58809 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         Sync from coreutils.
58812         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58813         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58814         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58815         ULLONG_MAX doesn't work with 2.7.2.1.
58816
58817 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58820         From Ben Pfaff.
58821
58822         * modules/exclude (Depends-on): Depend on verify.
58823         * modules/strtoimax (Depends-on): Likewise.
58824         * modules/utimecmp (Depends-on): Likewise.
58825
58826 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         * lib/exclude.c: Include verify.h.
58829         (verify): Remove.  All callers changed to use verify.h's version.
58830         * lib/strtoimax.c: Likewise.
58831         * lib/utimecmp.c: Likewis.e
58832
58833         Sync from coreutils.
58834         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58835         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58836         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58837         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58838         bother returning ENOSYS if settimeofday or stime fails; just let
58839         them return whatever errno they want to return.
58840         * lib/utimens.c: Include unistd.h, for dup2.
58841         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58842         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58843
58844 2005-10-02  Jim Meyering  <jim@meyering.net>
58845
58846         Sync from coreutils.
58847         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58848         from glibc-2.2.5 that fails for read-only files.
58849
58850 2005-10-02  Jim Meyering  <jim@meyering.net>
58851
58852         Sync from coreutils.
58853         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58854         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58855         `#if HAVE_CONFIG_H'.
58856         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58857         Remove AT_FDCWD test.
58858         Do not consume the fd unless successful.
58859         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58860         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58861         block, so that we don't even try to compile it if settimeofday is
58862         available.  This works around a compilation failure on OSF1 V5.1,
58863         due to stime requiring a `long int*' while tv_sec is `int'.
58864
58865 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58866
58867         Sync from coreutils.
58868         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58869         against `yes', rather than just testing for nonempty.
58870
58871 2005-10-01  Simon Josefsson  <jas@extundo.com>
58872
58873         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58874         and Darwin.
58875
58876         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58877         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58878         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58879         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58880         Check if struct addrinfo is declared.
58881
58882 2005-10-01  Simon Josefsson  <jas@extundo.com>
58883
58884         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58885         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58886         AI_* and EAI_* definitions.  Protect function declarations.
58887
58888 2005-10-01  Jim Meyering  <jim@meyering.net>
58889
58890         Sync from coreutils.
58891
58892         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58893         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58894         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58896         in the inet and nsl libraries.  Required on Solaris 5.7.
58897
58898 2005-10-01  Jim Meyering  <jim@meyering.net>
58899
58900         Sync from coreutils.
58901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58902         in the inet and nsl libraries.  Required on Solaris 5.7.
58903
58904 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58905
58906         * lib/getdelim.c (getdelim): Remove unused variables.
58907
58908 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58911         so that the code works even with ancient cpp.  Portability problem
58912         with GCC 2.7.2.1 reported by Thomas M.Ott.
58913
58914 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58915
58916         * modules/regex (Depends-on): Add strcase.
58917
58918         * modules/gethostname (Licence): Change from GPL to LGPL, since
58919         gethostname.c is a trivial implementation of a standard library
58920         function.
58921         * modules/poll (License): Change from GPL to LGPL, since it's
58922         derived from LGPL code.
58923
58924 2005-09-27  Jim Meyering  <jim@meyering.net>
58925
58926         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58927         HAVE_CONFIG_H.
58928
58929         * lib/intprops.h (signed_type_or_expr__): Define.
58930         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58931         for unsigned types.
58932
58933 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58934
58935         * lib/verify.h (verify_expr): Remove, replacing with:
58936         (verify_true): New macro that returns true instead of void.
58937         (verify_type__): Remove.
58938         (verify): Use verify_true rather than verify_type__.
58939
58940 2005-09-26  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58943         is necessary.
58944         (lib_SOURCES): Remove mbchar.c.
58945         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58946         (Files): Add m4/mbrtowc.m4.
58947         * modules/mbiter: Likewise.
58948         * modules/mbuiter: Likewise.
58949
58950 2005-09-26  Bruno Haible  <bruno@clisp.org>
58951
58952         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58953         compile mbchar.c if they are not both present.
58954         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58955         * m4/mbiter.m4 (gl_MBITER): Likewise.
58956         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58957         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58958         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58959
58960 2005-09-25  Jim Meyering  <jim@meyering.net>
58961
58962         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58963         also uses socklen_t.
58964
58965 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58966
58967         * lib/utimens.c (ENOSYS): Define if not already defined.
58968         (futimens): Support having a null PATH if the file descriptor
58969         is nonnegative.
58970
58971         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58972         Remove.
58973         (__attribute): Define to empty unless GCC 3.1 or later.
58974         This works around a core dump on OpenBSD 3.4, which has GCC
58975         2.95.3, which dumps core when given __attribute__(()).  It also
58976         simplifies other tests, since we really don't want to bother with
58977         worrying about which ancient version of GCC supported what.
58978         Original problem reported by Yoann Vandoorselaere, with part of
58979         the fix suggested by Derek Price.
58980
58981 2005-09-24  Jim Meyering  <jim@meyering.net>
58982
58983         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58984         so we can once again use a positive bitfield width of 1 -- now we
58985         don't have to explain why we were using a bitfield width of 2.
58986
58987 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58990         and similarly for the other external symbols.  Problem reported
58991         by James Gallager.
58992
58993         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58994         bug reported by Jim Meyering.
58995
58996         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58998         not needed, since socklen is a prerequisite module.
58999
59000 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59001
59002         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59003         Problem reported by Eric Blake.
59004         (getaddrinfo): Initialize se so that it's not garbage.
59005         Redo internal storage allocation so that it doesn't make unportable
59006         assumptions about alignment.
59007         Fix a memory leak.
59008
59009         * lib/utimens.c (futimens): Use futimesat if available.
59010         Prefer it to futimes since it doesn't have the futimes bug.
59011
59012         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59013         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59014         Instead, declare a function that returns a pointer to an array,
59015         and use verify_type__ to declare the size of the array.
59016         Problem and germ of a solution reported by Bruno Haible.
59017         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59018         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59019
59020 2005-09-23  Jim Meyering  <jim@meyering.net>
59021
59022         Sync from coreutils.
59023         Correct build failure (socklen_t not defined) on at least
59024         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59026
59027 2005-09-23  Jim Meyering  <jim@meyering.net>
59028
59029         * modules/getaddrinfo (Depends-on): Add socklen.
59030
59031 2005-09-23  Bruno Haible  <bruno@clisp.org>
59032
59033         * tests/test-verify.c: New file.
59034
59035 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59036
59037         Sync from coreutils.
59038
59039         * modules/argmatch (Depends-on): Add verify.
59040         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59041         unistd-safer.
59042         * modules/save-cwd (Depends-on): Likewise.
59043
59044         * modules/openat (Files): Add lib/openat-die.c.
59045         (Depends-on): Remove error, exitfail.
59046         Add dirname.
59047
59048         * modules/verify: New file.
59049         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59050         with "verify" module.
59051
59052 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59053
59054         Sync from coreutils.
59055
59056         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59057         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59058         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59059         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59060         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59061         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59062         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59063         Don't bother checking for string.h, stdlib.h, unistd.h.
59064         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59065         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59066         module's job.
59067         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59068         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59069
59070         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59071         (gl_GETDATE): Use it.
59072
59073         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59074
59075 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59076
59077         Sync from coreutils.
59078
59079         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59080         stat-time.h.
59081         * lib/argmatch.h: Include verify.h
59082         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59083         (ARGMATCH_ASSERT): Remove; unused.
59084         * lib/canonicalize.c: Assume STDC_HEADERS.
59085         * lib/exclude.c: Include "strcase.h".
59086         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59087         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59088         and stdio-safer.h.
59089         (getusershell): Call fopen, not fopen_safer.
59090         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59091         Do not include unistd-safer.h.
59092         (save_cwd): Don't call fd_safer; no longer needed
59093         now that we include fcntl--.h.
59094
59095         * lib/getdate.y (relative_time): New type.
59096         (RELATIVE_TIME_0): New constant.
59097         (parser_control): Use relative_time instead of doing it ourselves.
59098         (%union): Add new relative_time rel member.
59099         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59100         Now typeless.
59101         (relunit, relunit_snumber): Now of type rel.
59102         (zone, rel, relunit, get_date): Adjust to above changes.
59103
59104         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59105         Do not include unistd-safer.h.
59106         (getloadavg): Don't call fd_safer; no longer needed
59107         now that we include fcntl--.h.
59108
59109         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59110         (make_dir_parents): Treat ENOSYS like EEXIST.
59111
59112         Improve quality of diagnostics on restore_cwd failure.
59113         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59114         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59115         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59116         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59117         each time through the loop.  Do not diagnose restore_cwd failure;
59118         that is the caller's job (and perhaps the caller does not care).
59119
59120         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59121         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59122         If the file already exists but is not a directory, don't bother
59123         to try to make its parents.
59124         Close potential file descriptor leak if we can't chdir("/") (!).
59125         Don't always return true if chdir($PWD) fails; return true only
59126         if the requested action was done successfully (except for the
59127         chdir($PWD)).
59128         Don't log final directory unless we actually made it.
59129         Refactor to avoid duplicate code to fix up permissions.
59130         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59131
59132         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59133         to make it a bit faster and (I hope) clearer.
59134         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59135         Fix bug in formats like %2N.
59136
59137         * lib/verify.h: New file.
59138
59139 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59140
59141         Sync from coreutils.
59142         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59143
59144 2005-09-22  Jim Meyering  <jim@meyering.net>
59145
59146         Sync from coreutils.
59147
59148         * m4/lstat.m4 (gl_FUNC_LSTAT):
59149         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59150         Remove obsolete comment.
59151         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59152         * m4/xstrtod.m4: Likewise.
59153
59154         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59155
59156 2005-09-22  Jim Meyering  <jim@meyering.net>
59157
59158         Sync from coreutils.
59159
59160         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59161
59162         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59163         the .tm_year member, since otherwise gcc-4.0 would now warn about
59164         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59165
59166         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59167         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59168
59169         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59170         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59171         when run in a time zone for which daylight savings time is in effect
59172         for the starting date.
59173
59174         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59175         stop us from restricting permissions of just-created absolute-named
59176         directories.
59177         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59178         to restore initial working directory.
59179         * lib/mkdir-p.c (make_dir_parents): New parameter:
59180         different_working_dir, to tell caller if/when we change the working
59181         directory and are unable to return to the initial one.
59182         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59183         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59184         `return false'.  This fixes a bug introduced on 2004-07-30.
59185
59186         * lib/openat.c (fdopendir): Be sure to close the supplied
59187         file descriptor before returning.  This makes our replacement
59188         implementation a little closer to Solaris's, where fdopendir
59189         ties the file descriptor to the returned DIR* pointer.
59190         * lib/openat.c (unlinkat): New function.
59191         * lib/openat.h (unlinkat): Add prototype.
59192         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59193         (openat_restore_fail): Rename from openat_restore_die.
59194         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59195
59196         Provide an alternative to exiting immediately upon save_cwd or
59197         restore_cwd failure.  Now, an application can arrange e.g.,
59198         to perform a longjump in that case.
59199         * lib/openat.c: Include dirname.h.
59200         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59201         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59202         and openat_restore_die rather than calling error directly.
59203         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59204
59205         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59206         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59207         define.
59208
59209         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59210         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59211                             int utc, int nanoseconds);
59212         Background:
59213         date should not have to allocate a megabyte of virtual memory to
59214         handle a format argument like +%1048575T.  When implemented with
59215         strftime, it must allocate such a buffer, use strftime to fill it
59216         in, print it, then free it.
59217         With fprintftime, it simply prints everything and exits.
59218         With no need for memory allocation, that's one fewer way to fail.
59219         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59220         optional field width, not before, so we accept %9:z, not %:9z.
59221         (my_strftime): Be sure to use L_('x') for literals.
59222
59223         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59224         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59225         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59226         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59227         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59228         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59229         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59230         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59231         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59232         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59233         * lib/xgethostname.c, lib/xreadlink.c:
59234         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59235
59236         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59237         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59238         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59239         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59240         and don't include <sys/file.h>).
59241
59242 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59243
59244         Sync from coreutils.
59245
59246         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59247         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59248         [!LDAV_DONE]: Avoid unused variable warning.
59249
59250 2005-09-21  Bruno Haible  <bruno@clisp.org>
59251
59252         * lib/unicodeio.h (unicode_to_mb): New declaration.
59253
59254 2005-09-20  Derek Price  <derek@ximbiot.com>
59255
59256         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59257         getaddrinfo.h.
59258
59259 2005-09-20  Bruno Haible  <bruno@clisp.org>
59260
59261         * gnulib-tool: Remove trailing slashes from the values specified for
59262         --source-base, --m4-base, --tests-base, --aux-dir.
59263         Suggested by Simon Josefsson <jas@extundo.com>.
59264
59265 2005-09-20  Bruno Haible  <bruno@clisp.org>
59266
59267         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59268         func_modules_to_filelist, func_import, func_create_testdir): Make all
59269         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59270         change when gnulib-tool is invoked in a different locale.
59271
59272 2005-09-19  Simon Josefsson  <jas@extundo.com>
59273
59274         * m4/socklen.m4: Fix typo.
59275
59276 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59277
59278         Use a consistent style for including <config.h>.
59279         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59280         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59281         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59282         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59283         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59284         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59285         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59286         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59287         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59288         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59289         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59290         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59291         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59292         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59293         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59294         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59295         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59296         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59297         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59298         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59299         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59300         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59301         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59302         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59303         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59304         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59305         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59306         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59307         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59308         lib/xstrtoumax.c, lib/yesno.c:
59309         Standardize inclusion of config.h.
59310         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59311         lib/inttostr.h:  Removed inclusion of config.h from header files.
59312         * lib/inttostr.c:  Adjusted in-tree users.
59313         * lib/timespec.h: Remove superfluous warning to include config.h.
59314         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59315         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59316         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59317         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59318         config.h with HAVE_CONFIG_H.
59319
59320 2005-09-19  Jim Meyering  <jim@meyering.net>
59321
59322         * modules/pathmax (License): Change to LGPL.
59323
59324 2005-09-19  Derek Price  <derek@ximbiot.com>
59325
59326         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59327
59328 2005-09-19  Bruno Haible  <bruno@clisp.org>
59329
59330         * gnulib-tool (import): Provide default for --tests-base.
59331
59332 2005-09-19  Bruno Haible  <bruno@clisp.org>
59333
59334         * doc/quote.texi: New file, extracted from gnulib.texi.
59335         * doc/ctime.texi: New file, extracted from gnulib.texi.
59336         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59337         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59338         * doc/gnulib.texi: Include them.
59339
59340 2005-09-18  Bruno Haible  <bruno@clisp.org>
59341
59342         Portability fix.
59343         * gnulib-tool (func_readlink): New function.
59344         (func_ln_if_changed): Use it.
59345
59346 2005-09-18  Bruno Haible  <bruno@clisp.org>
59347
59348         * gnulib-tool: Support --with-tests also with --import.
59349         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59350         (func_import): Use variables $testsbase and $inctests. Emit a
59351         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59352         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59353         SUBDIRS += $testsdir.
59354         (func_create_testdir): Update.
59355
59356 2005-09-18  Bruno Haible  <bruno@clisp.org>
59357
59358         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59359         instead of $dry_run.
59360         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59361         (func_ln_if_changed): Don't handle dry-run here.
59362         (func_import): In dry-run mode, detect more precisely which actions
59363         would be performed, and don't use "...ing" verbs.
59364
59365 2005-09-18  Bruno Haible  <bruno@clisp.org>
59366
59367         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59368         (func_import): Use join on two temporary files instead of three nested
59369         loops, in order to determine which files are new or old.
59370
59371 2005-09-18  Bruno Haible  <bruno@clisp.org>
59372
59373         * gnulib-tool (func_import): Comment out code that spits out the
59374         new files with --dry-run.
59375
59376 2005-09-18  Bruno Haible  <bruno@clisp.org>
59377
59378         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59379
59380 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59381
59382         * lib/stat-time.h: New file.
59383         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59384         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59385         in a different way.
59386         (timespec_cmp): New function.
59387         * lib/utimecmp.c: Include stat-time.h.
59388         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59389         members exist, not on the obsolescent ST_MTIM_NSEC.
59390         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59391
59392 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59395
59396 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         * MODULES.html.sh (File system functions): Add stat-time.
59399         * modules/stat-time: New file.
59400         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59401         is now done in a different way, by the stat-time module.
59402         * modules/utimecmp (Depends-on): Add stat-time.
59403
59404 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * m4/st_mtim.m4: Remove.  Superseded by...
59407         * m4/stat-time.m4: New file.
59408         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59409         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59410
59411 2005-09-15  Derek Price  <derek@ximbiot.com>
59412
59413         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59414
59415 2005-09-15  Derek Price  <derek@ximbiot.com>
59416
59417         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59418         * lib/regex_internal.c: Ditto, using this...
59419         (__GNUC_PREREQ): ...new macro.
59420         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59421         using...
59422         (__GNUC_PREREQ): ...this new macro.
59423
59424         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59425
59426 2005-09-15  Derek Price  <derek@ximbiot.com>
59427             Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59430         changes, consolidating in...
59431         * lib/regex_internal.h: ...this file.
59432
59433 2005-09-13  Jim Meyering  <jim@meyering.net>
59434
59435         * lib/canon-host.c: Filter through gnu indent and reword comments
59436         slightly.
59437         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59438
59439 2005-09-13  Derek Price  <derek@ximbiot.com>
59440
59441         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59442         failure.
59443         Reported by Jim Meyering  <jim@meyering.net>.
59444
59445 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59446
59447         * lib/base64.c: Typo.
59448         (base64_encode): Put b64str in initialized data section.
59449
59450 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59451
59452         Merge glibc and coreutils changes into gnulib, plus a few
59453         extra fixes.
59454         * lib/md5.c: Use #error rather than a string.
59455         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59456         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59457         (__attribute__): Define to empty for non recent-GCC.
59458         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59459         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59460         Renamed from their non-__ counterparts, with new macros replacing
59461         them if not _LIBC.  Add __THROW attribute.
59462         (rol): Remove.
59463         (struct md5_ctx): Align buffer if using GCC.
59464         * lib/sha1.h (struct sha1_ctx): Likewise.
59465         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59466         The old name was backwards.
59467         (NOTSWAP): Remove; not used.
59468         (rol): New macro, moved here from md5.h.
59469         (sha1_process_block): Remove a FIXME that doesn't make sense.
59470
59471 2005-09-12  Derek Price  <derek@ximbiot.com>
59472
59473         Return usable errors from canon-host.
59474         * lib/canon-host.h: New file.
59475         * lib/canon-host.c (canon_host): Wrap...
59476         (canon_host_r): ...this new function, which now relies exclusively on
59477         getaddrinfo.
59478         (ch_strerror): New function.
59479         (last_cherror): New global.
59480         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59481         interface.
59482         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59483         void *.
59484         (freeaddrinfo): Free ai->ai_canonname when set.
59485
59486 2005-09-12  Derek Price  <derek@ximbiot.com>
59487
59488         Make canon-host require getaddrinfo.
59489         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59490         AC_LIBSOURCE canon-host.h.  Call...
59491         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59492         gl_GETADDRINFO.
59493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59494
59495 2005-09-12  Derek Price  <derek@ximbiot.com>
59496
59497         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59498         LGPL.
59499         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59500
59501 2005-09-12  Derek Price  <derek@ximbiot.com>
59502
59503         * lib/gai_strerror.c: Include config.h when available.  Include
59504         getaddrinfo.h before other headers to test interface.
59505         Reported by Larry Jones <lawrence.jones@ugs.com>.
59506
59507 2005-09-12  Derek Price  <derek@ximbiot.com>
59508             Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         * modules/glob (Files): Add glob-libc.h.
59511
59512 2005-09-12  Derek Price  <derek@ximbiot.com>
59513             Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59516         glob_.h, glob-libc.h.
59517         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59518
59519 2005-09-12  Derek Price  <derek@ximbiot.com>
59520             Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59523         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59524         protecting things that should be done only in gnulib contexts.
59525         * lib/glob_.h: New file, containing only the glob things needed for
59526         gnulib.
59527         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59528         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59529         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59530         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59531         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59532         and to respect the namespace rules better.
59533
59534 2005-09-08  Simon Josefsson  <jas@extundo.com>
59535
59536         * modules/socklen: New file.
59537
59538 2005-09-08  Simon Josefsson  <jas@extundo.com>
59539
59540         * m4/socklen.m4: New file.
59541
59542 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59543
59544         * modules/utimens (Files): Add m4/utimbuf.m4, since
59545         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59546         Reported by Sergey Poznyakoff.
59547
59548 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59551         definitions, since that's the preferred style in glibc.
59552         Fix a minor spacing issue, and update copyright notice to match
59553         glibc's.
59554
59555 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59556
59557         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59558
59559 2005-09-06  Simon Josefsson  <jas@extundo.com>
59560
59561         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59562         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59563
59564 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59567         warning.
59568
59569 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * config/srclist.txt: Add glibc bug 1302.
59572
59573 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59574
59575         Change bitset word type from unsigned int to unsigned long int,
59576         as this has better performance on typical 64-bit hosts.
59577         Port bitset code to hosts with unusual word sizes.
59578         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59579         (build_collating_symbol):
59580         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59581         argument is a bitset.  This is merely a style issue, but it makes
59582         it clearer that an entire array is expected.
59583         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59584         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59585         Port to the case where bitset_word is not the same as unsigned int.
59586         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59587         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59588         Likewise.
59589         * lib/regexec.c (check_dst_limits_calc_pos_1,
59590         check_subexp_matching_top):
59591         (build_trtable, group_nodes_into_DFAstates):
59592         Likewise.
59593         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59594         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59595         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59596         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59597         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59598         * lib/regcomp.c (optimize_subexps, lower_subexp):
59599         Work even if bitset_word has holes in its bitwise representation.
59600         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59601         * lib/regexec.c (check_dst_limits_calc_pos_1,
59602         check_subexp_matching_top):
59603         Likewise.
59604         * lib/regex_internal.c (re_string_reconstruct):
59605         Don't assume UCHAR_MAX == 255.
59606         * lib/regex_internal.h (bitset_set_all): Likewise.
59607         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59608         All uses changed.
59609         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59610         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59611         All uses changed.
59612         (BITSET_WORD_MAX): New macro.
59613         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59614         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59615         (bitset_empty, bitset_copy):
59616         Prefer sizeof (bitset) to multiplying it out ourselves.
59617         (bitset_not_merge): Remove; unused.
59618         (bitset_contain): Return bool, not unsigned int with one bit on.
59619         All callers changed.
59620         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59621         alignment than re_node_set; do this by defining a new internal
59622         type struct dests_alloc and using it to allocate memory.
59623
59624 2005-09-05  Bruno Haible  <bruno@clisp.org>
59625
59626         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59627         links.
59628
59629 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59630
59631         * modules/size_max (Makefile.am): Add size_max.h
59632
59633 2005-09-04  Derek Price  <derek@ximbiot.com>
59634
59635         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59636
59637 2005-09-03  Simon Josefsson  <jas@extundo.com>
59638
59639         * gnulib-tool: Fix typo.
59640
59641 2005-09-03  Simon Josefsson  <jas@extundo.com>
59642
59643         * config/srclist.txt: Add glibc bug 1293.
59644
59645 2005-09-03  Derek Price  <derek@ximbiot.com>
59646
59647         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59648         From Larry Jones <lawrence.jones@ugs.com>.
59649
59650 2005-09-02  Simon Josefsson  <jas@extundo.com>
59651
59652         * modules/socklen: New file.
59653
59654 2005-09-02  Simon Josefsson  <jas@extundo.com>
59655
59656         * modules/havelib: New module.
59657
59658         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59659         Use havelib.
59660
59661 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59662
59663         Check for arithmetic overflow when calculating sizes, to prevent
59664         some buffer-overflow issues.  These patches are conservative, in the
59665         sense that when I couldn't determine whether an overflow was possible,
59666         I inserted a run-time check.
59667         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59668         macros.
59669         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59670         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59671         (re_xnrealloc, re_x2nrealloc): New inline functions.
59672         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59673         parse_bracket_exp):
59674         (build_equiv_class, build_charclass): Check for arithmetic overflow
59675         in size expression calculations.
59676         * lib/regex_internal.c (re_string_realloc_buffers):
59677         (build_wcs_upper_buffer, re_node_set_add_intersect):
59678         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59679         (re_dfa_add_node, register_state): Likewise.
59680         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59681         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59682         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59683         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59684
59685 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59688         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59689
59690 2005-09-02  Bruno Haible  <bruno@clisp.org>
59691
59692         Support for lib vs. lib64 distinction on biarch platforms.
59693         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59694         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59696
59697 2005-09-02  Bruno Haible  <bruno@clisp.org>
59698
59699         * gnulib-tool (import): In the other first-use case, provide defaults
59700         as well.
59701
59702 2005-09-02  Bruno Haible  <bruno@clisp.org>
59703
59704         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59705         patches not yet found in the latest gettext release.
59706
59707 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59708
59709         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59710         to avoid a collision with bits/local_lim.h in glibc.
59711         All uses changed.  Problem reported by Dmitry V. Levin in
59712         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59713
59714         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59715         bugs in int versus size_t comparisons.
59716         (re_string_context_at): Fix bug where the code assumed that
59717         Idx is signed.
59718
59719         Use bool where appropriate.
59720         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59721         All callers changed.
59722         (calc_eclosure_iter): Likewise, for ROOT arg.
59723         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59724         (build_charclass_op): Likewise, for NON_MATCH arg.
59725         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59726         (re_string_construct_common): Likewise, for ICASE arg.
59727         * lib/regexec.c (re_search_2_stub, re_search_stub):
59728         Likewise, for RET_LEN arg.
59729         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59730         (set_regs): Likewise, for FL_BACKTRACK arg.
59731         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59732         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59733         (calc_eclosure_iter, parse_bracket_exp):
59734         Use bool for internal variables that are booleans.
59735         * lib/regexec.c (re_search_internal, check_matching,
59736         proceed_next_node):
59737         (set_regs, build_sifted_states, sift_states_bkref):
59738         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59739         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59740         (find_collation_sequence_value):
59741         Likewise.
59742         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59743         (re_node_set_compare):
59744         Return bool, not int. All callers changed.
59745         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59746         (build_trtable, check_node_accept): Likewise.
59747         * lib/regex_internal.h: Include stdbool.h.
59748
59749         Fix bugs uncovered when converting to bool.
59750         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59751         failure instead of charging ahead blindly.
59752         * lib/regex_internal.c (register_state): Likewise.
59753         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59754         for freeing internal storage.
59755         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59756         bitset pieces used as boolean, to avoid undefined behavior
59757         on hosts that do int overflow checking.
59758
59759 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59760
59761         * config/srclist.txt: Add glibc bugs 1285-1287.
59762
59763 2005-09-01  Jim Meyering  <jim@meyering.net>
59764
59765         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59766         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59767         Require gl_STAT_MACROS, too.
59768
59769 2005-09-01  Bruno Haible  <bruno@clisp.org>
59770
59771         * gnulib-tool (import): In the first-use case, provide defaults.
59772
59773 2005-09-01  Bruno Haible  <bruno@clisp.org>
59774
59775         * gnulib-tool (func_import): Remove the .tmp files.
59776
59777 2005-09-01  Bruno Haible  <bruno@clisp.org>
59778
59779         * gnulib-tool (func_import): Fix handling of symbolic links.
59780
59781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59782
59783         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59784         old glibc regex code mishandles strings longer than 2**31 bytes.
59785         This patch fixes this when the regex code is used in gnulib
59786         (i.e., outside glibc).
59787
59788         This patch should not affect the use of the regex code inside
59789         glibc.  No doubt this problem also needs to be handled for glibc
59790         as well, but the result will be an incompatible change to the
59791         glibc ABI, and the old ABI will have to be supported too.  That
59792         can be the the subject for another patch.
59793
59794         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59795         governing whether the rest of this patch is active.  By default,
59796         the macro is disabled and the patch has no effect.
59797         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59798         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59799         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59800         (re_match_2, re_set_registers): Use the new types.
59801         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59802         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59803         New macros.
59804         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59805         (re_string_context_at, bin_tree_t, re_dfastate_t):
59806         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59807         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59808         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59809         (re_string_char_size_at, re_string_wchar_at):
59810         (re_string_elem_size_at):
59811         Use the new types and macros to port to 64-bit hosts.
59812         Use unsigned types for internal values, so that the code
59813         mostly works even for arrays larger than SSIZE_MAX.
59814         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59815         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59816         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59817         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59818         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59819         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59820         (calc_inveclosure, parse_dup_op, build_range_exp):
59821         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59822         (fetch_number, create_token_tree, mark_opt_subexp):
59823         Likewise.
59824         * lib/regex_internal.c (re_string_construct_common,
59825         create_ci_newstate):
59826         (create_cd_newstate, re_string_allocate, re_string_construct):
59827         (re_string_realloc_buffers, build_wcs_upper_buffer):
59828         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59829         (re_string_reconstruct, re_string_peek_byte_case):
59830         (re_string_fetch_byte_case, re_string_context_at):
59831         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59832         (re_node_set_init_copy, re_node_set_add_intersect):
59833         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59834         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59835         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59836         (re_acquire_state, re_acquire_state_context, register_state):
59837         Likewise.
59838         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59839         search_cur_bkref_entry):
59840         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59841         (re_search_internal, re_search_2_stub, re_search_stub)
59842         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59843         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59844         (update_cur_sifted_state, check_dst_limits):
59845         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59846         (check_subexp_limits, sift_states_bkref, merge_state_array):
59847         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59848         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59849         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59850         (expand_bkref_cache, check_node_accept_bytes):
59851         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59852         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59853         (acquire_init_state_context, check_halt_node_context):
59854         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59855         (sift_states_backward, clean_state_log_if_needed):
59856         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59857         (find_recover_state, transit_state_sb, transit_state_mb):
59858         (transit_state_bkref, build_trtable, match_ctx_clean):
59859         Likewise.
59860         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59861         to work around an assumption that REG_MISSING is negative.
59862
59863         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59864         (seek_collating_symbol_entry) [defined _LIBC]:
59865         (lookup_collation_sequence_value) [defined _LIBC]:
59866         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59867         Use prototypes rather than old-style function definitions.
59868         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59869         (transit_state_sb) [0]:
59870         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59871
59872         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59873         rm_eo.
59874
59875         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59876         (optimize_subexps, lower_subexp):
59877         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59878         since the signed shift might overflow.  Use 1u<<31 instead.
59879         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59880         Likewise.
59881         * lib/regexec.c (check_dst_limits_calc_pos_1,
59882         check_subexp_matching_top): Likewise.
59883
59884         * lib/regcomp.c (optimize_subexps, lower_subexp):
59885         Use CHAR_BIT rather than 8, for clarity.
59886         * lib/regexec.c (check_dst_limits_calc_pos_1):
59887         (check_subexp_matching_top): Likewise.
59888         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59889         have to worry about portability issues when shifting it left.
59890         Remove no-longer-needed test for table_size > 0.
59891         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59892         in a word, as the resulting behavior is undefined.
59893         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59894         in one case, a <= should have been an <, and in another case the
59895         whole test was missing.
59896         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59897         the standard name CHAR_BIT.
59898         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59899         this is not true on one's complement and signed-magnitude hosts.
59900
59901         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59902         next_last_offset.
59903         (struct re_dfa_t): Remove unused member states_alloc.
59904         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59905
59906 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59909         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59910         and large-file glibc and in 32-bit large-file Solaris.
59911
59912 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59915         lengths fit in regoff_t; this isn't true if regoff_t is the same
59916         width as size_t.
59917         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59918         (= START + RANGE) instead of RANGE.  This avoids overflow
59919         problems when regoff_t is the same width as size_t.
59920         All callers changed.
59921         (re_search_2_stub): Check for overflow when adding the
59922         sizes of the two strings.
59923         (re_search_stub): Check for overflow when adding START
59924         to RANGE; if it occurs, substitute the extreme value.
59925
59926 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59929
59930 2005-08-31  Jim Meyering  <jim@meyering.net>
59931
59932         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59933         a pointer-to-const.
59934         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59935         (register_state): Likewise.
59936         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59937         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59938         (group_nodes_into_DFAstates): Likewise.
59939
59940 2005-08-31  Jim Meyering  <jim@meyering.net>
59941
59942         * check-module: Add a FIXME comment.
59943
59944 2005-08-31  Eric Blake  <ebb9@byu.net>
59945
59946         * modules/unistd-safer (Files): Add unistd--.h.
59947         * modules/stdio-safer (Files): Add stdio--.h.
59948
59949 2005-08-31  Derek Price  <derek@ximbiot.com>
59950
59951         * lib/getdelim.c (getdelim): Return EOF on EOF.
59952         Reported by Larry Jones <lawrence.jones@ugs.com>.
59953
59954 2005-08-31  Bruno Haible  <bruno@clisp.org>
59955
59956         Avoid unnecessary diffs in the generated lib/Makefile.am.
59957         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59958         the generated files.
59959         (func_import): Don't set cmd.
59960
59961 2005-08-31  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/strstr.c: Include <stddef.h>, for NULL.
59964         * lib/strcasestr.c: Likewise.
59965         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59966
59967 2005-08-31  Bruno Haible  <bruno@clisp.org>
59968
59969         * gnulib-tool: New option --macro-prefix.
59970         (func_import): Use macro_prefix.
59971         (import): Handle option --macro-prefix.
59972
59973 2005-08-31  Bruno Haible  <bruno@clisp.org>
59974
59975         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59976         Also use new variables cached_lgpl, cached_libtool.
59977
59978 2005-08-31  Bruno Haible  <bruno@clisp.org>
59979
59980         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59981         always instantiating them.
59982
59983 2005-08-31  Bruno Haible  <bruno@clisp.org>
59984
59985         * gnulib-tool (func_import): Read the previous cached settings
59986         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59987         earlier added by gnulib but are now dropped. Warn when a gnulib file
59988         overwrites a non-gnulib file.
59989
59990 2005-08-31  Bruno Haible  <bruno@clisp.org>
59991
59992         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59993         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59994         projects that don't keep autogenerated files in CVS. Put into
59995         actioncmd only the specified modules, not the transitive closure.
59996
59997 2005-08-31  Bruno Haible  <bruno@clisp.org>
59998
59999         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60000         Create directories that shall be filled.
60001         (import): Don't look for gl_* macros in configure.ac. Recurse across
60002         all directories containing a gnulib-cache.m4 files, if meaningful.
60003
60004 2005-08-31  Bruno Haible  <bruno@clisp.org>
60005
60006         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60007         (import): Set seen_libtool when we see gl_LIBTOOL.
60008
60009 2005-08-31  Bruno Haible  <bruno@clisp.org>
60010
60011         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60012         declaration macro definitions from generated gnulib.m4.
60013
60014 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60015
60016         * lib/iconvme.h: Add prototype for iconv_alloc.
60017
60018 2005-08-29  Simon Josefsson  <jas@extundo.com>
60019
60020         * lib/iconvme.c: Fix errno.
60021
60022 2005-08-29  Bruno Haible  <bruno@clisp.org>
60023
60024         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60025         that it works when the directory contains spaces.
60026
60027 2005-08-29  Bruno Haible  <bruno@clisp.org>
60028
60029         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60030
60031 2005-08-29  Bruno Haible  <bruno@clisp.org>
60032
60033         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60034         Emit more advice.
60035
60036 2005-08-29  Bruno Haible  <bruno@clisp.org>
60037         and Stepan Kasal  <kasal@ucw.cz>
60038
60039         * check-module: If more parameters are given, check each of them
60040         separately; add more exceptions, as noted by Jim Meyering.
60041         (check_module): New procedure.
60042         (%exempt_header): Now contains all exceptions.
60043
60044 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60045
60046         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60047
60048 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60049
60050         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60051
60052 2005-08-28  Bruno Haible  <bruno@clisp.org>
60053
60054         * m4/gnulib-tool.m4: New file.
60055
60056 2005-08-27  Jim Meyering  <jim@meyering.net>
60057
60058         * modules/unistd-safer (Files): Add pipe-safer.c.
60059         * modules/fcntl-safer (Files): Add creat-safer.c.
60060
60061 2005-08-27  Jim Meyering  <jim@meyering.net>
60062
60063         * m4/stdlib-safer.m4: New file.  From coreutils.
60064         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60065         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60066         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60067         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60068         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60069
60070 2005-08-27  Jim Meyering  <jim@meyering.net>
60071
60072         * lib/fopen-safer.c: Merge minor changes from coreutils.
60073         * lib/dup-safer.c: Likewise.
60074         * lib/fd-safer.c: Likewise.
60075
60076         Merge from coreutils.
60077         * lib/stdio--.h: New file.
60078         * lib/stdlib--.h: New file.
60079         * lib/mkstemp-safer.c: New file.
60080
60081         GNU tar needs these.
60082         * lib/pipe-safer.c: New file.
60083         * lib/creat-safer.c: New file.
60084         * lib/fcntl--.h (creat): Define to creat_safer.
60085         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60086         * lib/unistd--.h (pipe): Define to pipe_safer.
60087         * lib/unistd-safer.h: Declare pipe_safer.
60088
60089 2005-08-26  Simon Josefsson  <jas@extundo.com>
60090
60091         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60092         Haible <bruno@clisp.org>.
60093
60094 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * lib/regex_internal.h: Remove all references to
60097         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60098         or better.
60099         (bitset_not, bitset_merge, bitset_not_merge):
60100         (bitset_mask, re_string_allocate, re_string_construct):
60101         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60102         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60103         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60104         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60105         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60106         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60107         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60108         (re_acquire_state_context):
60109         Remove unnecessary forward decls.
60110         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60111         Put __attribute at function definition,
60112         now that the function decl has been removed.
60113         * lib/regex_internal.c (re_string_peek_byte_case):
60114         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60115         Likewise.
60116
60117 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60118
60119         * m4/regex.m4: Add AC_PREREQ(2.50).
60120         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60121
60122 2005-08-25  Simon Josefsson  <jas@extundo.com>
60123
60124         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60125         __fsetlocking.
60126
60127 2005-08-25  Simon Josefsson  <jas@extundo.com>
60128
60129         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60130         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60131         GLIBC specific code.
60132
60133 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60134
60135         Make regex safe for g++.  This fixes one real bug (an "err"
60136         that should have been "*err").  g++ problem reported by
60137         Sam Steingold.
60138         * lib/regex_internal.h (re_calloc): New macro, consistent with
60139         re_malloc etc.  All callers of calloc changed to use re_calloc.
60140         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60141         not int.  All callers changed.
60142         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60143         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60144         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60145         (find_recover_state): Change "err" to "*err"; this fixes what
60146         appears to be a real bug.
60147         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60148         versus int.
60149
60150 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60151
60152         * modules/regex (Depends-on): Add malloc, since the code
60153         assumes that !malloc(0) means failure.
60154
60155 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60158
60159         alloca modernization/simplification for regex.
60160         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60161         needs to be at the start of the file, and can be moved into
60162         regex_internal.h and simplified.
60163         * lib/regex_internal.h: Include <alloca.h>.
60164         (__libc_use_alloca) [!defined _LIBC]: New macro.
60165         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60166         now works outside glibc.
60167
60168 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60169
60170         * config/srclist.txt: Add glibc bugs 1241, 1245.
60171
60172 2005-08-25  Jim Meyering  <jim@meyering.net>
60173
60174         * lib/open-safer.c: Include <config.h>.
60175         Otherwise, we'd lose LARGEFILE support in any file using
60176         e.g. "fcntl--.h"
60177
60178 2005-08-25  Bruno Haible  <bruno@clisp.org>
60179
60180         * m4/minmax.m4: Require autoconf 2.52.
60181         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60182         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60183         alternatives of translit over the alphabet.
60184         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60185
60186 2005-08-24  Simon Josefsson  <jas@extundo.com>
60187
60188         * tests/test-getpass.c: New file.
60189
60190 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60193         for GNU regex features.
60194
60195 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60198         * lib/regex.h (regerror): Likewise.
60199
60200         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60201         requires this.  (The code never needed it.)
60202
60203         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60204         All uses of recently-renamed identifiers changed to use the new,
60205         POSIX-compliant names.  The code will build and run just fine
60206         without these changes, but it's better to eat our own dog food
60207         and use the standard-conforming names.
60208
60209         * lib/regex.h: Fix a multitude of POSIX name space violations.
60210         These changes have an effect only for programs that define
60211         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60212         do not change anything for programs compiled in the normal way.
60213         Also, there is no effect on the ABI.
60214
60215         (_REGEX_SOURCE): New macro.
60216         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60217         defined and _GNU_SOURCE is not; this fixes a name space violation.
60218
60219         Rename the following macros to obey POSIX requirements.
60220         The old names are still visible as macros if _REGEX_SOURCE is defined.
60221         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60222         RE_BACKSLASH_ESCAPE_IN_LISTS.
60223         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60224         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60225         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60226         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60227         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60228         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60229         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60230         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60231         (REG_INTERVALS): renamed from RE_INTERVALS.
60232         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60233         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60234         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60235         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60236         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60237         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60238         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60239         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60240         RE_UNMATCHED_RIGHT_PAREN_ORD.
60241         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60242         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60243         (REG_DEBUG): renamed from RE_DEBUG.
60244         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60245         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60246         unusual, since we can't clash with the POSIX REG_ICASE.
60247         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60248         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60249         (REG_NO_SUB): renamed from RE_NO_SUB.
60250         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60251         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60252         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60253         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60254         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60255         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60256         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60257         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60258         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60259         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60260         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60261         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60262         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60263         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60264         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60265         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60266         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60267         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60268         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60269         (REG_FIXED): Renamed from REGS_FIXED.
60270         (REG_NREGS): Renamed from RE_NREGS.
60271
60272         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60273         of other REG_* macros, since POSIX says the user is allowed to
60274         #undef these macros selectively.
60275
60276         (reg_errcode_t): Update comment stating what other tables need
60277         to be consistent.
60278
60279         Rename the following enum values to obey POSIX requirements.
60280         The old names are still visible as macros.
60281         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60282         is not defined, since GNU is supposed to be a superset of POSIX as
60283         much as possible, and since we want reg_errcode_t to be a signed
60284         type for implementation consistency.
60285         (_REG_NOERROR): Renamed from REG_NOERROR.
60286         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60287         (_REG_BADPAT): Renamed from REG_BADPAT.
60288         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60289         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60290         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60291         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60292         (_REG_EBRACK): Renamed from REG_EBRACK.
60293         (_REG_EPAREN): Renamed from REG_EPAREN.
60294         (_REG_EBRACE): Renamed from REG_EBRACE.
60295         (_REG_BADBR): Renamed from REG_BADBR.
60296         (_REG_ERANGE): Renamed from REG_ERANGE.
60297         (_REG_ESPACE): Renamed from REG_ESPACE.
60298         (_REG_BADRPT): Renamed from REG_BADRPT.
60299         (_REG_EEND): Renamed from REG_EEND.
60300         (_REG_ESIZE): Renamed from REG_ESIZE.
60301         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60302         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60303         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60304         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60305         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60306
60307         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60308         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60309         changed.  But support the old name if the new one is not defined
60310         and if _REGEX_SOURCE.
60311
60312         Change the following member names in struct re_pattern_buffer.
60313         The old names are still supported if !_REGEX_SOURCE.
60314         The new names are always supported, regardless of _REGEX_SOURCE.
60315         (re_buffer): Renamed from buffer.
60316         (re_allocated): Renamed from allocated.
60317         (re_used): Renamed from used.
60318         (re_syntax): Renamed from syntax.
60319         (re_fastmap): Renamed from fastmap.
60320         (re_translate): Renamed from translate.
60321         (re_can_be_null): Renamed from can_be_null.
60322         (re_regs_allocated): Renamed from regs_allocated.
60323         (re_fastmap_accurate): Renamed from fastmap_accurate.
60324         (re_no_sub): Renamed from no_sub.
60325         (re_not_bol): Renamed from not_bol.
60326         (re_not_eol): Renamed from not_eol.
60327         (re_newline_anchor): Renamed from newline_anchor.
60328
60329         Change the following member names in struct re_registers.
60330         The old names are still supported if !_REGEX_SOURCE.
60331         The new names are always supported, regardless of _REGEX_SOURCE.
60332         (rm_num_regs): Renamed from num_regs.
60333         (rm_start): Renamed from start.
60334         (rm_end): Renamed from end.
60335
60336         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60337         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60338         Prepend __ to parameter names.
60339
60340         Undo yesterday's changes.
60341
60342 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60345         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60346         lib/regex.c.
60347
60348 2005-08-24  Jim Meyering  <jim@meyering.net>
60349
60350         Sync from coreutils.
60351         * m4/fcntl-safer.m4: New file.
60352
60353         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60354         and object files for this module.
60355
60356 2005-08-24  Jim Meyering  <jim@meyering.net>
60357
60358         Sync from coreutils.
60359         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60360
60361 2005-08-24  Jim Meyering  <jim@meyering.net>
60362
60363         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60364         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60365
60366 2005-08-24  Jim Meyering  <jim@meyering.net>
60367
60368         * modules/fcntl-safer: New module.
60369         * modules/fts (Depends-on): Add fcntl-safer.
60370         * MODULES.html.sh (File descriptor based Input/Output):
60371         Add fcntl-safer.
60372
60373 2005-08-24  Bruno Haible  <bruno@clisp.org>
60374
60375         Support for unit test modules.
60376         * modules/README: Mention tests modules.
60377         * modules/TEMPLATE-TESTS: New file.
60378         * gnulib-tool: New options --extract-tests-module, --with-tests and
60379         --tests-base (unused for the moment).
60380         (testsbase, inctests): New variables.
60381         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60382         (func_verify_module): Exclude TEMPLATE-TESTS.
60383         (func_verify_nontests_module, func_verify_tests_module): New functions.
60384         (func_get_dependencies): Add implicit dependency for tests modules.
60385         (func_get_tests_module): New function.
60386         (func_modules_transitive_closure): When --with-tests was specified,
60387         include the unit tests as well, unless explicitly avoided.
60388         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60389         (func_emit_tests_Makefile_am): New function.
60390         (func_create_testdir): When --with-tests was specified, emit a
60391         tests/ directory.
60392         * MODULES.html.sh (Future developments): Update.
60393
60394 2005-08-24  Bruno Haible  <bruno@clisp.org>
60395
60396         * modules/tls-tests: New file.
60397         * tests/test-tls.c: New file, from GNU gettext.
60398
60399 2005-08-24  Bruno Haible  <bruno@clisp.org>
60400
60401         * modules/lock-tests: New file.
60402         * tests/test-lock.c: New file, from GNU gettext.
60403
60404 2005-08-24  Bruno Haible  <bruno@clisp.org>
60405
60406         * lib/lock.h: Add multiple inclusion guard.
60407         * lib/tls.h: Add multiple inclusion guard.
60408
60409 2005-08-24  Bruno Haible  <bruno@clisp.org>
60410
60411         * gnulib-tool: Add support for the --aux-dir option to
60412         --create-testdir, --create-megatestdir, --test, --megatest.
60413         (func_create_testdir, func_create_megatestdir): Optionally emit a
60414         AC_CONFIG_AUX_DIR directive.
60415         (create-testdir, create-megatestdir, test, megatest): Provide a
60416         default value for $auxdir.
60417
60418 2005-08-24  Bruno Haible  <bruno@clisp.org>
60419
60420         * gnulib-tool (import): Use compound statement instead of subshell
60421         where possible.
60422
60423 2005-08-24  Bruno Haible  <bruno@clisp.org>
60424
60425         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60426
60427 2005-08-24  Bruno Haible  <bruno@clisp.org>
60428
60429         * gnulib-tool (func_version): Update.
60430
60431 2005-08-24  Bruno Haible  <bruno@clisp.org>
60432
60433         * gnulib-tool (func_import, func_create_testdir,
60434         func_create_megatestdir): Quote all autoconf macro arguments.
60435
60436 2005-08-24  Bruno Haible  <bruno@clisp.org>
60437
60438         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60439         option --force, because --force causes the aclocal.m4 of each
60440         subdirectory to be newer than the corresponding config.h.in.
60441
60442 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60445         All contents moved to gl_REGEX.
60446         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60447         assume that it does.
60448
60449 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60450
60451         * lib/regex.h (REG_NOSYS)
60452         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60453         Define, since POSIX requires it as of 2001.
60454         (_REG_ENOSYS)
60455         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60456         New private symbol, used to keep the enum signed in all cases.
60457         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60458         Youngman in
60459         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60460
60461         * lib/regex_internal.c (re_string_skip_chars, register_state):
60462         (calc_state_hash):
60463         Remove forward decls; no longer needed now that we use prototypes.
60464         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60465         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60466         (clean_state_log_if_needed): Likewise.
60467
60468 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60469
60470         * config/srclist.txt: Add glibc bugs 1231-1233.
60471
60472 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         Fix problems reported by Sam Steingold in
60475         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60476         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60477         assumed that reg_errcode_t is a signed type, which is not
60478         necessarily true if _XOPEN_SOURCE is not defined.
60479         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60480         since some compilers warn about it otherwise.
60481
60482 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60483
60484         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60485         (init_word_char, create_initial_state, duplicate_node_closure):
60486         (fetch_token, peek_token_bracket, build_range_exp):
60487         (build_collating_symbol): Remove forward decls; no longer needed
60488         now that we use prototypes.
60489
60490         * lib/regcomp.c:
60491         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60492         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60493         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60494         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60495         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60496         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60497         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60498         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60499         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60500         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60501         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60502         (build_charclass, build_charclass_op, fetch_number, create_tree):
60503         (create_token_tree, mark_opt_subexp, duplicate_tree):
60504         Use prototypes rather than old-style definitions.
60505
60506         * lib/regex_internal.c:
60507         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60508         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60509         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60510         (re_string_reconstruct, re_string_peek_byte_case):
60511         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60512         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60513         (re_node_set_init_copy, re_node_set_add_intersect):
60514         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60515         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60516         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60517         (re_acquire_state, re_acquire_state_context, register_state):
60518         (create_ci_newstate, create_cd_newstate, free_state):
60519         Likewise.
60520         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60521         re_search_2):
60522         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60523         (re_search_internal, prune_impossible_nodes):
60524         (acquire_init_state_context, check_matching, static):
60525         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60526         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60527         (update_regs, sift_states_backward, build_sifted_states):
60528         (clean_state_log_if_needed, merge_state_array):
60529         (update_cur_sifted_state, add_epsilon_src_nodes):
60530         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60531         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60532         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60533         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60534         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60535         (check_arrival, check_arrival_add_next_nodes):
60536         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60537         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60538         (check_node_accept_bytes, check_node_accept, extend_buffers):
60539         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60540         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60541         (sift_ctx_init):
60542         Likewise.
60543
60544         * lib/regex_internal.h:
60545         (re_string_allocate, re_string_construct, re_string_reconstruct):
60546         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60547         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60548         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60549         (re_string_context_at, re_string_peek_byte_case):
60550         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60551         is defined, since we now use prototypes always.
60552
60553         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60554         C89 or better.  All uses removed.
60555
60556 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * config/srclist.txt: Add glibc bugs 1220-1227.
60559
60560 2005-08-20  Jim Meyering  <jim@meyering.net>
60561
60562         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60563         of unused local, dfa.
60564
60565 2005-08-20  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60568
60569 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60570
60571         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60572         (re_node_set_insert_last, re_dfa_add_node):
60573         Rename local variables to avoid GCC shadowing warnings.
60574
60575 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60578         [defined lint]: Suppress bogus uninitialized-variable warnings.
60579
60580         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60581         and let the caller return REG_ESPACE if out of space.  This
60582         removes an uninitialied-variable warning with GCC 4.0.1, and also
60583         avoids taking the address of a local variable.  All callers
60584         changed.
60585
60586 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60589         $LIBCSRC/posix/regexec.c.
60590         Add glibc bug 1217 for regcomp.c.
60591
60592 2005-08-19  Jim Meyering  <jim@meyering.net>
60593
60594         * lib/regexec.c (proceed_next_node): Redo local variables to
60595         avoid GCC shadowing warnings.
60596
60597 2005-08-18  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/strstr.c (strstr): Fix return value in multibyte case.
60600         * lib/strcasestr.c (strcasestr): Likewise.
60601
60602 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60605
60606 2005-08-17  Jim Meyering  <jim@meyering.net>
60607
60608         Make the %s format (seconds since the epoch) work for a negative
60609         number and when used with a zero-padded field width, e.g. %015s.
60610
60611         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60612         label so that it precedes the code to set `digits'.  Otherwise,
60613         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60614         print `00-22'.  Now, it prints `-0022', as it should.
60615
60616 2005-08-17  Bruno Haible  <bruno@clisp.org>
60617
60618         * modules/strstr (Files): Add m4/mbrtowc.m4.
60619         (Depends-on): Add mbuiter.
60620
60621 2005-08-17  Bruno Haible  <bruno@clisp.org>
60622
60623         * modules/strcasestr: New file.
60624         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60625         strcasestr.
60626
60627 2005-08-17  Bruno Haible  <bruno@clisp.org>
60628
60629         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60630
60631 2005-08-17  Bruno Haible  <bruno@clisp.org>
60632
60633         * modules/mbuiter: New file.
60634         * MODULES.html.sh (Extended multibyte and wide character utilities):
60635         Add mbuiter.
60636
60637 2005-08-17  Bruno Haible  <bruno@clisp.org>
60638
60639         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60640         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60641
60642 2005-08-17  Bruno Haible  <bruno@clisp.org>
60643
60644         * m4/strcasestr.m4: New file.
60645
60646 2005-08-17  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60649         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60650
60651 2005-08-17  Bruno Haible  <bruno@clisp.org>
60652
60653         * lib/strcasestr.h: New file.
60654         * lib/strcasestr.c: New file.
60655
60656 2005-08-17  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/strcasecmp.c: Use mbuiter.h.
60659
60660 2005-08-17  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/mbuiter.h: New file.
60663
60664 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60665
60666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60667         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60668         and gl_GETOPT are both invoked via different paths (as happens
60669         with GNU tar CVS because it uses both argp and getopt), the former
60670         wins.
60671
60672 2005-08-16  Bruno Haible  <bruno@clisp.org>
60673
60674         * modules/tls: New file.
60675         * MODULES.html.sh (Multithreading): Add tls.
60676
60677 2005-08-16  Bruno Haible  <bruno@clisp.org>
60678
60679         * modules/strnlen1: New file.
60680         * MODULES.html.sh (String handling): Add strnlen1.
60681
60682 2005-08-16  Bruno Haible  <bruno@clisp.org>
60683
60684         * modules/strcase (Files): Add m4/mbrtowc.m4.
60685         (Depends-on): Add strnlen1, mbchar.
60686
60687 2005-08-16  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/mbiter: New file.
60690         * MODULES.html.sh (Extended multibyte and wide character utilities):
60691         Add mbiter.
60692
60693 2005-08-16  Bruno Haible  <bruno@clisp.org>
60694
60695         * modules/mbfile: New file.
60696         * MODULES.html.sh (Extended multibyte and wide character utilities):
60697         Add mbfile.
60698
60699 2005-08-16  Bruno Haible  <bruno@clisp.org>
60700
60701         * modules/mbchar: New file.
60702         * MODULES.html.sh (Extended multibyte and wide character utilities):
60703         New section.
60704
60705 2005-08-16  Bruno Haible  <bruno@clisp.org>
60706
60707         * m4/tls.m4: New file, from GNU gettext.
60708
60709 2005-08-16  Bruno Haible  <bruno@clisp.org>
60710
60711         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60712         always.
60713         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60714
60715 2005-08-16  Bruno Haible  <bruno@clisp.org>
60716
60717         * m4/mbiter.m4: New file.
60718
60719 2005-08-16  Bruno Haible  <bruno@clisp.org>
60720
60721         * m4/mbfile.m4: New file.
60722
60723 2005-08-16  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/mbchar.m4: New file.
60726
60727 2005-08-16  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/tls.h: New file, from GNU gettext.
60730         * lib/tls.c: New file, from GNU gettext.
60731
60732 2005-08-16  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/strnlen1.h: New file.
60735         * lib/strnlen1.c: New file.
60736
60737 2005-08-16  Bruno Haible  <bruno@clisp.org>
60738
60739         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60740         (mbi_init): Update.
60741         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60742         NUL byte, not after it.
60743
60744 2005-08-16  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/strcase.h (strcasecmp): Add note in comments.
60747         * lib/strncasecmp.c: Use code from strcasecmp.c.
60748         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60749         (strcasecmp): Work correctly in multibyte locales.
60750
60751 2005-08-16  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/mbiter.h: New file.
60754
60755 2005-08-16  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/mbfile.h: New file.
60758
60759 2005-08-16  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/mbchar.h: New file.
60762         * lib/mbchar.c: New file.
60763
60764 2005-08-16  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60767         the valid ones. Makes the comparison operations transitive:
60768         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60769         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60770
60771 2005-08-15  Simon Josefsson  <jas@extundo.com>
60772
60773         * modules/ssize_t (License): Change to 'unlimited'.
60774
60775         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60776
60777 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60780         Add comments for each pending glibc patch.
60781
60782 2005-08-15  Bruno Haible  <bruno@clisp.org>
60783
60784         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60785         __cplusplus is defined.
60786
60787 2005-08-14  Jim Meyering  <jim@meyering.net>
60788
60789         Sync from coreutils.
60790
60791         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60792         Use the hash-table-based cycle-detection code not just when
60793         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60794         Reported by James Youngman in
60795         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60796         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60797         FTS_TIGHT_CYCLE_CHECK.
60798         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60799         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60800         once again.
60801         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60802         * lib/fts.c (fd_safer): Remove decl.
60803         Include fcntl--.h rather than unistd-safer.h
60804         (fts_safe_changedir): Don't call fd_safer; no longer needed
60805         now that we include fcntl--.h.
60806
60807 2005-08-12  Simon Josefsson  <jas@extundo.com>
60808
60809         * modules/getndelim2: Use ssize_t module.
60810         * modules/getnline: Likewise.
60811         * modules/safe-read: Likewise.
60812         * modules/xreadlink: Likewise.
60813
60814         * modules/ssize_t: New file.
60815
60816 2005-08-12  Simon Josefsson  <jas@extundo.com>
60817
60818         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60819
60820 2005-08-12  Simon Josefsson  <jas@extundo.com>
60821
60822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60823         ssize_t.
60824
60825 2005-08-12  Simon Josefsson  <jas@extundo.com>
60826
60827         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60828         readline, getdelim and check_version.
60829         (Support for systems lacking ISO C 99: Sizes of integer types):
60830         Add size_max.
60831
60832 2005-08-12  Bruno Haible  <bruno@clisp.org>
60833
60834         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60835
60836 2005-08-11  Simon Josefsson  <jas@extundo.com>
60837
60838         * modules/readline: New file.
60839
60840         * modules/strnlen (Files): Add strnlen.h.
60841
60842 2005-08-11  Simon Josefsson  <jas@extundo.com>
60843
60844         * m4/readline.m4: New file.
60845
60846 2005-08-11  Simon Josefsson  <jas@extundo.com>
60847
60848         * lib/readline.h, readline.c: New file.
60849
60850 2005-08-11  Simon Josefsson  <jas@extundo.com>
60851
60852         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60853         gl_AVOID.
60854
60855 2005-08-11  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60858
60859 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60860
60861         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60862
60863 2005-08-10  Simon Josefsson  <jas@extundo.com>
60864
60865         * tests/test-iconvme.c: New file.
60866
60867 2005-08-10  Simon Josefsson  <jas@extundo.com>
60868
60869         * m4/strnlen.m4: New file.
60870
60871         * m4/strndup.m4: Don't check for strnlen declaration, done in
60872         strnlen.m4.
60873
60874 2005-08-10  Simon Josefsson  <jas@extundo.com>
60875
60876         * lib/strndup.c: Use strnlen.h.
60877
60878         * lib/strnlen.h: New file.
60879
60880 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60881
60882         * README: Typos.
60883
60884 2005-08-02  Simon Josefsson  <jas@extundo.com>
60885
60886         * modules/readline: New file.
60887
60888 2005-08-02  Simon Josefsson  <jas@extundo.com>
60889
60890         * modules/getdelim: New file.
60891
60892         * modules/getline: Rewrite, don't use getndelim2.
60893
60894 2005-08-02  Simon Josefsson  <jas@extundo.com>
60895
60896         * m4/getline.m4: Separate out getdelim stuff into separate module.
60897
60898         * m4/getdelim.m4: New file.
60899
60900 2005-08-02  Simon Josefsson  <jas@extundo.com>
60901
60902         * lib/getline.h, getline.c: Rewrite.
60903
60904         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60905
60906 2005-07-31  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/lock.h (gl_lock_initializer): New macro.
60909         (gl_lock_define_initialized): Use it.
60910         (gl_rwlock_initializer): New macro.
60911         (gl_rwlock_define_initialized): Use it.
60912         (gl_recursive_lock_initializer): New macro.
60913         (gl_recursive_lock_define_initialized): Use it.
60914
60915 2005-07-30  Karl Berry  <karl@gnu.org>
60916
60917         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60918         Report from Ben Pfaff, regarding getopt.
60919
60920 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60923         normal way.
60924         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60925         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60926         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60927         (gl_GETOPT): Use the new macros.  Most of the implementation
60928         is moved to the new macros.  This is for programs like Emacs
60929         that don't want all the functionality of gl_GETOPT.
60930
60931 2005-07-26  Bruno Haible  <bruno@clisp.org>
60932
60933         * m4/lock.m4: Update from GNU gettext.
60934
60935 2005-07-26  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/lock.h: Update from GNU gettext.
60938         * lib/lock.c: Update from GNU gettext.
60939
60940 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60941
60942         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60943         obsolescent AC_TRY_RUN.  Include the default includes files, for
60944         'exit'.
60945
60946 2005-07-24  Bruno Haible  <bruno@clisp.org>
60947
60948         * modules/visibility: New file.
60949         * MODULES.html.sh (Misc): Add visibility.
60950
60951 2005-07-24  Bruno Haible  <bruno@clisp.org>
60952
60953         * m4/visibility.m4: New file.
60954
60955 2005-07-24  Bruno Haible  <bruno@clisp.org>
60956
60957         * doc/visibility.texi: New file.
60958
60959 2005-07-22  Bruno Haible  <bruno@clisp.org>
60960
60961         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60962         $(ALLOCA_H), redundant through BUILT_SOURCES.
60963         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60964         redundant through BUILT_SOURCES.
60965         * modules/byteswap (Makefile.am): Remove explicit dependency on
60966         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60967         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60968         $(FNMATCH_H), redundant through BUILT_SOURCES.
60969         * modules/getopt (Makefile.am): Remove explicit dependency on
60970         $(GETOPT_H), redundant through BUILT_SOURCES.
60971         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60972         redundant through BUILT_SOURCES.
60973         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60974         redundant through BUILT_SOURCES.
60975         * modules/stdbool (Makefile.am): Remove explicit dependency on
60976         $(STDBOOL_H), redundant through BUILT_SOURCES.
60977         * modules/stdint (Makefile.am): Remove explicit dependency on
60978         $(STDINT_H), redundant through BUILT_SOURCES.
60979         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60980         Remove explicit dependency on $(SYSEXITS_H).
60981         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60982
60983 2005-07-18  Simon Josefsson  <jas@extundo.com>
60984
60985         * lib/check-version.c (check_version): Accept identical versions too.
60986
60987 2005-07-18  Bruno Haible  <bruno@clisp.org>
60988
60989         * modules/lock: New file.
60990         * MODULES.html.sh (Multithreading): New section.
60991
60992 2005-07-18  Bruno Haible  <bruno@clisp.org>
60993
60994         * m4/lock.m4: New file, from GNU gettext.
60995
60996 2005-07-18  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/lock.h: New file, from GNU gettext.
60999         * lib/lock.c: New file, from GNU gettext.
61000
61001 2005-07-18  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/lock.h (gl_once_t): New type.
61004         (gl_once_define, gl_once): New macros.
61005         * lib/lock.c (fresh_once): New variable.
61006         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61007         functions.
61008
61009 2005-07-16  Simon Josefsson  <jas@extundo.com>
61010
61011         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61012         workaround, suggested by Bruno.
61013
61014 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * modules/xalloc (Depends-on): Add xalloc-die.
61017         * modules/xvasprintf (Depends-on): Add xalloc-die.
61018
61019 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61022         with a minor change.
61023
61024 2005-07-15  Bruno Haible  <bruno@clisp.org>
61025
61026         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61027         When using lib/poll.c, define poll as rpl_poll.
61028
61029 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         * modules/argp (Depends-on): Remove unlocked-io.
61032
61033 2005-07-14  Derek Price  <derek@ximbiot.com>
61034
61035         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61036         for glob symlink bug.
61037
61038 2005-07-14  Bruno Haible  <bruno@clisp.org>
61039
61040         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61041         Instead, test for *_unlocked function declarations directly.
61042
61043 2005-07-11  Simon Josefsson  <jas@extundo.com>
61044
61045         * modules/size_max: New file.
61046
61047         * modules/xsize: Depend on size_max module for size_max.m4.
61048
61049 2005-07-11  Simon Josefsson  <jas@extundo.com>
61050
61051         * lib/size_max.h: New file.
61052
61053 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61056         copyright symbol and the year.
61057         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61058         (version_etc_va): Use parameterized copyright notice.
61059         Reword to conform to the current GNU coding standards.
61060
61061 2005-07-11  Karl Berry  <karl@gnu.org>
61062
61063         * doc/gnulib.texi (Quoting): new node.
61064         (Initial import): more info, from Patrice.
61065
61066 2005-07-11  Bruno Haible  <bruno@clisp.org>
61067
61068         * gnulib-tool (func_usage): Document option --avoid.
61069         (Command line options): Handle --avoid.
61070         (func_acceptable): New function.
61071         (func_modules_transitive_closure): Use it.
61072
61073 2005-07-11  Bruno Haible  <bruno@clisp.org>
61074
61075         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61076         Reported by Jim Meyering.
61077
61078 2005-07-10  Bruno Haible  <bruno@clisp.org>
61079
61080         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61081         Needed when size_t is smaller than 'unsigned int'.
61082         Reported by Paul Eggert.
61083
61084 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61085
61086         * modules/argp (Depends-on): Add unlocked-io
61087
61088 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61089
61090         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61091         block of defines.
61092
61093 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61094
61095         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61096         fix now.
61097
61098 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61099         and Paul Eggert  <eggert@cs.ucla.edu>
61100
61101         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61102         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61103
61104 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61105
61106         * modules/regex (Files): Add lib/regex_internal.c,
61107         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61108         (Depends-on): Add extensions.
61109         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61110
61111 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61114         pathconf.
61115         * m4/same.m4 (gl_SAME): Likewise.
61116         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61117
61118         * m4/regex.m4: Adjust to new libc regex implementation.
61119         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61120         all the .c and .h parts of (the new) regex.
61121         Quote the m4 stuff better.
61122         Check for RE_ICASE bug of old gnulib.
61123         Check for REG_STARTEND of recent libc.
61124         Rename local variables from jm_* to gl_*.
61125         Quote operand of "test -f".
61126         Say "recent enough" version of libc, not "version 2".
61127         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61128         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61129         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61130         Remove check for btowc, isascii.
61131         Require AM_LANGINFO_CODESET.
61132
61133 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61134
61135         * lib/regex.c, regex.h: Sync from libc.
61136         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61137         * lib/regexec.c:
61138         New files, synced from libc, except that regex_internal.h
61139         currently has a small porting fix.
61140
61141 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61142
61143         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61144         regex_internal.c, regexec.c.
61145         Add regex_internal.h too, but as a comment, since the libc version
61146         is currently broken in gnulib mode.
61147
61148 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61149
61150         Support programs like Emacs that use gnulib but not gettext.
61151         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61152         * modules/gettext-h: New file.
61153         * modules/gettext (Files): Remove lib/gettext.h.
61154         (Depends-on): Add gettext-h.
61155         (Makefile.am): Remove lib_SOURCES.
61156         * modules/argmatch, modules/c-stack, modules/closeout:
61157         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61158         * modules/execute, modules/file-type, modules/getaddrinfo:
61159         * modules/getopt, modules/human, modules/javacomp:
61160         * modules/javaexec, modules/mkdir-p, modules/obstack:
61161         * modules/openat, modules/pagealign_alloc, modules/pipe:
61162         * modules/quotearg, modules/regex, modules/rpmatch:
61163         * modules/unicodeio, modules/userspec, modules/version-etc:
61164         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61165         * modules/xsetenv:
61166         Depend on gettext-h, not gettext.
61167
61168 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61169
61170         * gnulib-tool (func_import): Add support for 'public domain' license.
61171         * modules/alloca, modules/atexit, modules/memmove:
61172         Now public domain, not GPL.
61173         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61174         * modules/realloc, modules/strerror, modules/strtod:
61175         Now LGPL, not GPL.
61176
61177 2005-07-05  Bruno Haible  <bruno@clisp.org>
61178
61179         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61180         autoconf CVS. Needed for mingw.
61181
61182 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61183
61184         Remove the dependency of the strftime module on the tzset module.
61185         * modules/strftime (Depends-on): Remove dependency on tzset.
61186
61187 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         Remove the dependency of the strftime module on the tzset module.
61190         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61191         gl_FUNC_TZSET_CLOBBER.
61192
61193 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         Remove the dependency of the strftime module on the tzset module.
61196         * lib/strftime.c (my_strftime)
61197         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61198         Copy the input structure, to work around some of the bug with
61199         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61200         Solaris releases, you should also use the tzset module, but we won't
61201         require it as a dependency any more since we don't want LGPLed code
61202         to depend on GPLed code.
61203
61204 2005-07-02  Jim Meyering  <jim@meyering.net>
61205
61206         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61207         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61208         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61209         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61210
61211 2005-07-02  Jim Meyering  <jim@meyering.net>
61212
61213         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61214
61215 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61216
61217         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61218         declares only 'struct timespec;' (!).
61219
61220 2005-07-01  Jim Meyering  <jim@meyering.net>
61221
61222         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61223         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61224         * lib/save-cwd.c, tempname.c:
61225         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61226         and don't include <sys/file.h>).
61227
61228 2005-06-29  Jim Meyering  <jim@meyering.net>
61229
61230         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61231         type name.  Use the variable name instead.
61232         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61233         Likewise.
61234
61235 2005-06-28  Simon Josefsson  <jas@extundo.com>
61236
61237         * modules/check-version (Files): Add check-version.m4.
61238
61239 2005-06-28  Simon Josefsson  <jas@extundo.com>
61240
61241         * m4/check-version.m4: New file, suggested by Jim Meyering
61242         <jim@meyering.net>.
61243
61244 2005-06-28  Simon Josefsson  <jas@extundo.com>
61245
61246         * lib/check-version.h, lib/check-version.c: New files.
61247
61248 2005-06-28  Simon Josefsson  <jas@extundo.com>
61249
61250         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61251         collision with global variable.  Better indentation.  Don't
61252         increment buffer pointer beyond buffer end.  Based on comments
61253         from Paul Eggert <eggert@cs.ucla.edu>.
61254
61255         * lib/base64.h: Indent.
61256
61257 2005-06-28  Simon Josefsson  <jas@extundo.com>
61258
61259         * doc/gnulib.texi (Library version handling): New section.
61260
61261 2005-06-28  Jim Meyering  <jim@meyering.net>
61262
61263         * check-module (find_included_lib_files): Hard-code another
61264         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61265         but modules/fts-lgpl (correctly) does not list those files.
61266
61267         * modules/canonicalize (Files): Add lib/pathmax.h.
61268
61269 2005-06-25  Simon Josefsson  <jas@extundo.com>
61270
61271         * modules/check-version: New file.
61272
61273 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61276         initializer of struct addrinfo, as an indication that we don't
61277         care how many members the structure has.
61278
61279 2005-06-24  Derek Price  <derek@ximbiot.com>
61280         and Bruno Haible  <bruno@clisp.org>
61281
61282         Remove stat module & update lstat.
61283         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61285         * m4/stat.m4: Remove this file.
61286
61287 2005-06-24  Derek Price  <derek@ximbiot.com>
61288         and Bruno Haible  <bruno@clisp.org>
61289
61290         Remove stat module & update lstat.
61291         * lib/stat.c: Remove this file...
61292         (slash_aware_lstat): ...moving this content and its support...
61293         * lib/lstat.c (rpl_lstat): ...into here.
61294         * lib/lstat.h: New file.
61295
61296 2005-06-24  Derek Price  <derek@ximbiot.com>
61297         and Bruno Haible  <bruno@clisp.org>
61298
61299         Remove stat module & update lstat.
61300         * config/srclist.txt (libc sources): Remove stat.
61301
61302 2005-06-24  Derek Price  <derek@ximbiot.com>
61303         and Bruno Haible  <bruno@clisp.org>
61304
61305         Remove stat module & update lstat.
61306         * MODULES.html.sh (stat): Remove.
61307         * MODULES.html: Regenerated.
61308         * modules/lstat (Description): Correct function name.
61309         (Files): Add "lstat.h".
61310         (Depends-on): Remove stat, add xalloc, stat-macros.
61311         * modules/stat: Remove this file.
61312         (Include): Add "lstat.h", remove <sys/stat.h>.
61313
61314 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61315
61316         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61317         (ranged_convert): Don't save conversion in a temporary struct.
61318         This causes a warning with GCC 4.0.0, and anyway in the typical
61319         case it's not worth the extra 100 bytes or so of code.
61320         (ranged_convert, __mktime_internal): When calling a function via a
61321         pointer P, use P () rather than (*P) (), as we now assume C89 or
61322         better.
61323
61324 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61327         "who -r" failed to give output.  Problem reported by Tim Waugh.
61328
61329         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61330         (xcalloc): Use it to avoid needless tests.
61331         Problem reported by Jim Meyering.
61332
61333 2005-06-20  Derek Price  <derek@ximbiot.com>
61334
61335         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61336         unnecessary for Autoconfs > 2.59c.
61337
61338 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61339
61340         * lib/argp.h (__option_is_short): Check upper limit of
61341         __key. Isprint() requires its argument to have the value
61342         of an unsigned char or EOF.
61343
61344 2005-06-16  Jim Meyering  <jim@meyering.net>
61345
61346         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61347         when either N or S is zero.
61348
61349 2005-06-16  Derek Price  <derek@ximbiot.com>
61350
61351         * m4/bison.m4: Declare YACC & YFLAGS precious.
61352
61353 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61354
61355         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61356         multibyte string or pattern, fall back on unibyte matching.
61357         Problem reported by James Youngman.
61358
61359 2005-06-08  Bruno Haible  <bruno@clisp.org>
61360
61361         * modules/csharpcomp: New file.
61362         * MODULES.html.sh (C#): Add csharpcomp.
61363
61364 2005-06-08  Bruno Haible  <bruno@clisp.org>
61365
61366         * m4/csharpcomp.m4: New file, from GNU gettext.
61367
61368 2005-06-08  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/csharpcomp.h: New file, from GNU gettext.
61371         * lib/csharpcomp.c: New file, from GNU gettext.
61372         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61373
61374 2005-06-08  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61377         warning on mingw.
61378
61379 2005-06-07  Derek Price  <derek@ximbiot.com>
61380
61381         Sync from CVS.
61382         * lib/glob_.h: Indent nested #ifdef.
61383
61384 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         Sync from coreutils.
61387         Use "file name" when talking about file names, instead of "filename"
61388         or "path", as per the GNU coding standards.
61389         * lib/mkdir-p.c: Renamed from makepath.c.
61390         (make_dir_parents): Renamed from make_path.  All callers changed.
61391         * lib/mkdir-p.h: Likewise.  All includers changed.
61392         * lib/filenamecat.c: Renamed from path-concat.c.
61393         (file_name_concat): Renamed from path_concat.  All callers changed.
61394         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61395         * lib/filenamecat.h: Likewise.  All includers changed.
61396         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61397         in comments or local variable names.
61398         * lib/basename.c: Likewise.
61399         * lib/canonicalize.c, canonicalize.h: Likewise.
61400         * lib/dirname.c, dirname.h: Likewise.
61401         * lib/euidaccess.c: Likewise.
61402         * lib/exclude.c: Likewise
61403         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61404         * lib/fsusage.c, fsuage.h: Likewise.
61405         * lib/fts.c, fts_.h: Likewise.
61406         * lib/getcwd.c: Likewise.
61407         * lib/getloadavg.c: Likewise.
61408         * lib/mkstemp.c: Likewise.
61409         * lib/mountlist.c, mountlist.h: Likewise.
61410         * lib/openat.c, openat.h: Likewise.
61411         * lib/readlink-stub.c: Likewise.
61412         * lib/readutmp.c, readutmp.h: Likewise.
61413         * lib/rename.c: Likewise.
61414         * lib/rmdir.c: Likewise.
61415         * lib/same.c: Likewise.
61416         * lib/savedir.c: Likewise.
61417         * lib/stripslash.c: Likewise.
61418         * lib/tempname.c: Likewise.
61419         * lib/xreadlink.c: Likewise.
61420         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61421         All uses changed.
61422         * lib/exclude.h: Likewise.
61423
61424         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61425         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61426         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61427         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61428         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61429         files have been getting away with it for years (MORE/BSD 4.3
61430         is extinct now).
61431         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61432         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61433
61434         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61435         Define to 256, not 255, as per modern POSIX.
61436
61437 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         Sync from coreutils.
61440         Use "file name" when talking about file names, instead of "filename"
61441         or "path", as per the GNU coding standards.
61442         * MODULES.html.sh: mkdir-p renamed from makepath.
61443         filenamecat renamed from path-concat.
61444         * modules/filenamecat: Renamed from modules/path-concat.
61445         (Files): filenamecat.h and filenamecat.c renamed from
61446         path-concat.h and path-concat.c.
61447         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61448         (Include): filenamecat.h, not path-concat.h.
61449         * modules/mkdir-p: Renamed from modules/makepath.
61450         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61451         makepath.c.
61452         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61453         (Include): mkdir-p.h, not makepath.h.
61454
61455 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61456
61457         Sync from coreutils.
61458         * m4/mkdir-p.m4: Renamed from makepath.m4.
61459         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61460         Rename files from makepath.c to mkdir-p.c, and from
61461         makepath.h to mkdir-p.h.
61462         * m4/filenamecat.m4: Renamed from path-concat.m4.
61463         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61464         Rename files from path-concat.c to filenamecat.c,
61465         and from path-concat.h to filenamecat.h.
61466         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61467         "file name" in local variables or comments.
61468         * m4/rename.m4: Likewise.
61469
61470 2005-06-01  Bruno Haible  <bruno@clisp.org>
61471
61472         * modules/csharpexec: New file.
61473         * MODULES.html.sh (C#): New section.
61474
61475 2005-06-01  Bruno Haible  <bruno@clisp.org>
61476
61477         * m4/csharp.m4: New file, from GNU gettext.
61478         * m4/csharpexec.m4: New file, from GNU gettext.
61479
61480 2005-06-01  Bruno Haible  <bruno@clisp.org>
61481
61482         * lib/csharpexec.h: New file, from GNU gettext.
61483         * lib/csharpexec.c: New file, from GNU gettext.
61484         * lib/csharpexec.sh.in: New file, from GNU gettext.
61485
61486 2005-05-31  Derek Price  <derek@ximbiot.com>
61487             Paul Eggert  <eggert@cs.ucla.edu>
61488
61489         Sync from cvs.
61490         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61491
61492 2005-05-31  Derek Price  <derek@ximbiot.com>
61493             Paul Eggert  <eggert@cs.ucla.edu>
61494
61495         Sync from cvs.
61496         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61497
61498 2005-05-29  Derek Price  <derek@ximbiot.com>
61499
61500         * config/srclist.txt (glob_.h, glob.c): Add these files.
61501
61502 2005-05-29  Derek Price  <derek@ximbiot.com>
61503
61504         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61505         * modules/glob: New file.
61506         * modules/getlogin_r: Add link to POSIX spec in description.
61507
61508 2005-05-29  Derek Price  <derek@ximbiot.com>
61509             Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         * m4/glob.m4: New file.
61512
61513 2005-05-29  Derek Price  <derek@ximbiot.com>
61514             Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         * lib/glob_.h, lib/glob.c: New files.
61517
61518 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61521         * modules/fts-lgpl (Depends-on): Remove gettext.
61522
61523 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61526         and don't require gt_INTTYPES_PRI.
61527
61528 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61531
61532         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61533         the configuration hassle isn't worth it.
61534         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61535         (LONGEST_MODIFIER, PRIuMAX): Remove.
61536
61537 2005-05-27  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61540
61541 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61544         _POSIX_PTHREAD_SEMANTICS for Solaris.
61545
61546 2005-05-25  Derek Price  <derek@ximbiot.com>
61547
61548         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61549
61550 2005-05-25  Derek Price  <derek@ximbiot.com>
61551             Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61554         * lib/getlogin_r.c, getlogin_r.h: New files.
61555
61556 2005-05-25  Bruno Haible  <bruno@clisp.org>
61557             Derek Price  <derek@ximbiot.com>
61558
61559         * lib/getlogin_r.h: Simplify API documentation.
61560
61561 2005-05-23  Derek Price  <derek@ximbiot.com>
61562
61563         * modules/minmax (Files): Add m4/minmax.m4.
61564         (configure.ac): Add gl_MINMAX.
61565
61566 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61567
61568         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61569         so that unistd-safer.h (GPL'ed code) need not be included.
61570
61571 2005-05-22  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/minmax.m4: New file.
61574         Based on a patch by Derek Price <derek@ximbiot.com>.
61575
61576 2005-05-22  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61579         (INT64_MIN): Fix definition.
61580         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61581
61582         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61583         NEED_SIGNED_INT_TYPES.
61584
61585         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61586         HAVE_SYSTEM_INTTYPES.
61587
61588 2005-05-22  Bruno Haible  <bruno@clisp.org>
61589
61590         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61591         Also include <sys/param.h> if it defines MIN, MAX.
61592         Based on a patch by Derek Price <derek@ximbiot.com>.
61593
61594 2005-05-21  Jim Meyering  <jim@meyering.net>
61595
61596         * modules/fts (Files): Add m4/inttypes-pri.m4.
61597         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61598
61599 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         New fts module.
61602         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61603         (setup_dir, free_dir): New functions.
61604         (enter_dir, leave_dir): Define trivial
61605         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61606         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61607         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61608         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61609         Move to fts-cycle.c.
61610         (fts_open): Use setup_dir.
61611         (fts_close): Use free_dir.
61612         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61613         This adds a label and some gotos, but the alternatives were messier.
61614         Check for memory allocation failure when entering a dir.
61615         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61616         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61617         (FTS): New member fts_cycle, that is a union that contains the
61618         old active_dir_ht and cycle_state.  All uses changed to mention
61619         fts_cycle.ht and fts_cycle.state.
61620         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61621         fts.c, with the following changes:
61622         (setup_dir, free_dir): New functions.
61623         (enter_dir): Now returns bool.  Return true if successful, false
61624         if memory exhausted.  All callers changed.
61625         Do not bother partly cleaning up on
61626         memory allocation failure; that is free_dir's job.
61627         However, free ad if hash_insert fails, to avoid memory leak.
61628         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61629         fts->fts_options to see which union member to use.
61630
61631 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61632
61633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61634         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61635
61636 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61637
61638         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61639
61640 2005-05-20  Jim Meyering  <jim@meyering.net>
61641
61642         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61643         Now a macro, to pacify GCC.
61644
61645 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61646
61647         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61648         of -1.
61649
61650 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61651
61652         * lib/chown.c (rpl_chown): Return -1 on failure.
61653
61654 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61657         Don't check for stddef.h.
61658         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61659         don't use its results.
61660         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61661         since we include them unconditionally.  Don't require
61662         AM_STDBOOL_H, since stdbool is a prerequisite.
61663         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61664         since we assume C89 or better.
61665         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61666         as we don't use their results.
61667         Don't check for fchdir, memmove, memset, strrchr, as we use
61668         them unconditionally.
61669         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61670         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61671
61672 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61675         Include <stddef.h> unconditionally, since we assume C89 now.
61676         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61677         * lib/fts.c: Include fts_.h first, to check interface.
61678         Do not include intprops.h; no longer needed.
61679         Include cycle-check.h and hash.h, since fts_.h no longer does.
61680         Remove unnecessary casts of closedir to void.
61681         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61682         decide whether to decrement nlinks.
61683         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61684         (FTS): Use struct hash_table * instead of Hash_table, so that
61685         we no longer need to include hash.h here.
61686
61687 2005-05-18  Jim Meyering  <jim@meyering.net>
61688
61689         * modules/dirfd (License): Change to LGPL.  Most of the code
61690         is already in the public domain.
61691
61692 2005-05-18  Jim Meyering  <jim@meyering.net>
61693
61694         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61695         Reported by Yoann Vandoorselaere.
61696
61697 2005-05-17  Jim Meyering  <jim@meyering.net>
61698
61699         * m4/fts.m4: New file, from coreutils.
61700
61701 2005-05-17  Jim Meyering  <jim@meyering.net>
61702
61703         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61704
61705 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         Sync from coreutils.
61708         * m4/unlinkdir.m4: New file.
61709
61710 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61711
61712         Sync from coreutils.
61713         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61714         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61715         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61716         White space changes only.
61717         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61718         special.
61719         * lib/yesno.c: Include getline.h, not ctype.h.
61720         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61721         Use getline to remove arbitrary restriction on response length.
61722
61723 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * config/srclist-update: Spell out "Street" in FSF postal
61726         mail address; this is the style the FSF seems to prefer.
61727
61728         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61729         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61730         this updates FSF postal mail address.
61731
61732         Sync from coreutils.
61733         * modules/unlinkdir: New file.
61734         * modules/yesno (Depends-on): Add getline.
61735         * MODULES.html.sh (File system functions): Add unlinkdir.
61736
61737 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61740         lib/strsep.h:
61741         Change the initial comment to refer to GPL, not LGPL.
61742         gnulib-tool will change it to LGPL as needed.
61743
61744         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61745         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61746         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61747         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61748         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61749         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61750         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61751         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61752         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61753         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61754         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61755         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61756         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61757         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61758         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61759         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61760         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61761         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61762         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61763         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61764         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61765         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61766         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61767         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61768         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61769         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61770         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61771         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61772         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61773         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61774         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61775         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61776         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61777         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61778         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61779         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61780         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61781         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61782         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61783         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61784         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61785         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61786         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61787         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61788         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61789         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61790         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61791         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61792         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61793         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61794         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61795         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61796         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61797         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61798         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61799         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61800         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61801         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61802         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61803         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61804         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61805         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61806         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61807         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61808         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61809         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61810         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61811         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61812         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61813         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61814         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61815         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61816         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61817         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61818         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61819         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61820         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61821         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61822         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61823         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61824         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61825         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61826         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61827         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61828         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61829         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61830         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61831         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61832         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61833         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61834         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61835         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61836         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61837         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61838         lib/yesno.c, lib/yesno.h:
61839         Update FSF postal mail address.
61840
61841 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61842
61843         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61844         tests/test-memmem.c, tests/test-stpncpy.c:
61845         Update FSF postal mail address.
61846
61847 2005-05-13  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61850         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61851         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61852         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61853         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61854         Add support for 64-bit integers in the MSVC compiler.
61855
61856 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61857
61858         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61859
61860 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61861
61862         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61863
61864 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61865
61866         * doc/getdate.texi (General date syntax): Don't say that date
61867         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61868         Problem reported by Nic Ferrier.
61869
61870 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61871
61872         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61873         specified in ai_socktype. Fix invalid ai_protocol
61874         check. ai_protocol is usually set to 0 or depending on
61875         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61876         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61877         ai_socktype / ai_protocol in the returned addrinfo structure.
61878
61879 2005-05-10  Simon Josefsson  <jas@extundo.com>
61880
61881         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61882         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61883
61884 2005-05-10  Karl Berry  <karl@gnu.org>
61885
61886         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61887         (from http://www.gnu.org/licenses).
61888         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61889         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61890         fdl.texi suffices.
61891
61892 2005-05-10  Karl Berry  <karl@gnu.org>
61893
61894         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61895         (COPYING.DOC): remove.
61896
61897         * config/srclist-update: new FSF address.
61898
61899 2005-05-10  Derek Price  <derek@ximbiot.com>
61900
61901         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61902         possible.
61903
61904 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61905             Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/inet_ntop: New file.
61908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61909         inet_ntop.
61910
61911 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61912             Bruno Haible  <bruno@clisp.org>
61913
61914         * m4/inet_ntop.m4: New file.
61915
61916 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61917             Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/inet_ntop.h: New file.
61920         * lib/inet_ntop.c: New file, from glibc with modifications.
61921
61922 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * modules/time_r (License): Change to LGPL.
61925         * modules/extensions (License): Change to LGPL.  Actually,
61926         the license is more permissive than that, but currently gnulib-tool
61927         doesn't know how to handle more-permissive licenses.
61928
61929         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61930         Problem reported by Dave Love.
61931
61932 2005-05-08  Jim Meyering  <jim@meyering.net>
61933
61934         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61935         blank.
61936
61937 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         * modules/argmatch (Depends-on): Add stdbool.
61940         * modules/backupfile (Depends-on): Likewise.
61941         * modules/chdir-long (Depends-on): Likewise.
61942         * modules/closeout (Depends-on): Likewise.
61943         * modules/cycle-check (Depends-on): Likewise.
61944         * modules/dirname (Depends-on): Likewise.
61945         * modules/fnmatch (Depends-on): Likewise.
61946         * modules/fsusage (Depends-on): Likewise.
61947         * modules/fwriteerror (Depends-on): Likewise.
61948         * modules/getcwd (Depends-on): Likewise.
61949         * modules/getloadavg (Depends-on): Likewise.
61950         * modules/hard-locale (Depends-on): Likewise.
61951         * modules/makepath (Depends-on): Likewise.
61952         * modules/mountlist (Depends-on): Likewise.
61953         * modules/nanosleep (Depends-on): Likewise.
61954         * modules/posixtm (Depends-on): Likewise.
61955         * modules/quotearg (Depends-on): Likewise.
61956         * modules/readtokens (Depends-on): Likewise.
61957         * modules/readtokens0 (Depends-on): Likewise.
61958         * modules/readutmp (Depends-on): Likewise.
61959         * modules/save-cwd (Depends-on): Likewise.
61960         * modules/strftime (Depends-on): Likewise.
61961         * modules/userspec (Depends-on): Likewise.
61962         * modules/utimecmp (Depends-on): Likewise.
61963         * modules/xgetcwd (Depends-on): Likewise.
61964         * modules/xnanosleep (Depends-on): Likewise.
61965         * modules/xstrtod (Depends-on): Likewise.
61966         * modules/yesno (Depends-on): Likewise.
61967
61968 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61969
61970         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61971         needless checks.
61972
61973 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         Merge from coreutils.  Among other things,
61976         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61977         * lib/fd-safer.c: New file.
61978         * lib/fcntl-safer.h, open-safer.c: Remove.
61979         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61980         * lib/dup-safer.c: Include unistd-safer.h first.
61981         Don't include errno.h.
61982         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61983         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61984         * lib/file-type.c: Rely on file-type.h change.
61985         * lib/getloadavg.c: Include unistd-safer.h.
61986         (getloadavg): Use safer open.
61987         * lib/getusershell.c: Include "stdio-safer.h".
61988         (getusershell): Use safer fopen.
61989         * lib/long-options.c (long_options): Use NULL rather than 0.
61990         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61991         'free'.
61992         * lib/modechange.c: Likewise.
61993         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61994         (MODE_DONE): New constant.
61995         (struct mode_change): Remove 'next' member.
61996         (make_node_op_equals): New function; like the old one of the
61997         same name, except it allocates an array.
61998         (mode_compile, mode_create_from_ref): Use it.
61999         (mode_compile): Allocate result as an array, not a linked list.
62000         Parse octal string ourself, so that we catch mistakes like "+0".
62001         (mode_adjust): Arg is an array, not a linked list.
62002         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62003         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62004         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62005         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62006         Remove.  This is now stat-macros.h's job.
62007         (talloc): Remove.  All callers replaced by xalloc, so that
62008         our invokers don't have to worry about reporting memory failures.
62009         (make_node_op_equals): Remove.
62010         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62011         New constants.
62012         (struct mode_change): Moved here from modechange.h.
62013         (mode_append_entry): Remove.
62014         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62015         apps to have incorrect behavior.  Use simpler algorithm for head
62016         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62017         Detect more invalid usages rather than having somewhat-random behavior.
62018         Don't insert an "a=" action, as that leads to incorrect behavior.
62019         (mode_compile, mode_create_from_ref): Return NULL on error instead
62020         of an enum, since now there's only one way to have an error.  All
62021         callers changed.
62022         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62023         at the correct time.  Simplify calculation of "+u" and its ilk.
62024         Don't mishandle "+X".
62025         (mode_free): Remove "register" and localize decls.
62026         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62027         (struct mode_change): Move to modechange.c; callers don't
62028         need to see this stuff.
62029         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62030         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62031         (mode_change, mode_adjust): Reflect the new signatures noted above.
62032         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62033         that might redefine system include files.
62034         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62035         (my_usleep): Use NULL rather than (void *) 0.
62036         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62037         Use siginterrupt to specify that system calls should be interrupted.
62038         (rpl_nanosleep): Move initialization of suspended closer to call of
62039         my_usleep.
62040         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62041         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62042         (desirable_utmp_entry): New function.
62043         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62044         using x2nrealloc, to simplify logic.
62045         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62046         size calculation.  Do not assume utmp file is a regular file.
62047         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62048         (READ_UTMP_CHECK_PIDS): New constant.
62049         * lib/save-cwd.c: Include unistd-safer.h.
62050         (save_cwd): Use fd_safer.
62051         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62052         [!_LIBC] Include "stat-macros.h" instead.
62053         * lib/unistd-safer.h (fd_safer): New decl.
62054
62055 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * modules/getloadavg (Depends-on): Add unistd-safer.
62058         * modules/getusershell (Depends-on): Add stdio-safer.
62059         * modules/lstat (Depends-on): Remove xalloc.
62060         * modules/mkstemp (Depends-on): Add stat-macros.
62061         * modules/modechange (Depends-on): Remove xstrtol.
62062         Add stat-macros, xalloc.
62063         * modules/save-cwd (Depends-on): Add unistd-safer.
62064         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62065         * modules/unistd-safer (Files): Add lib/fd-safer.c
62066         (Makefile.am): Remove lib_SOURCES.
62067
62068         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62069         Remove fcntl-safer; unistd-safer supersedes it.
62070
62071 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62072
62073         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62074         AC_HEADER_STAT.
62075         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62076         (gl_PREREQ_CHOWN): Remove.
62077         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62078         it.  Don't require AC_HEADER_STAT.
62079         (gl_PREREQ_LSTAT): Remove.
62080         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62081         Don't require AC_HEADER_STAT.
62082         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62083         (gl_PREREQ_RMDIR): Remove.
62084         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62085         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62086         the stat-macros module a prerequisite.
62087         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62088         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62089         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62090         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62091         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62092         variable names.
62093         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62094         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62095         variable prefixes.
62096         * m4/fcntl-safer.m4: Remove.
62097         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62098         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62099         Invoke gl_PREREQ_FD_SAFER.
62100         (gl_PREREQ_FD_SAFER): New macro.
62101         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62102         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62103         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62104         Remove duplicate call to AC_LIBOBJ(readutmp).
62105         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62106
62107         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62108         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62109
62110 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62111
62112         * MODULES.html.sh (Misc): Add byteswap.
62113
62114 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62115
62116         * modules/getcwd (Depends-on): Add extensions.
62117         * modules/openat (Depends-on): Likewise.
62118
62119 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62120
62121         * modules/byteswap: New file.
62122
62123 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62124
62125         * m4/byteswap.m4: New file.
62126
62127 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62128
62129         * lib/byteswap_.h: New file.
62130
62131 2005-04-25  Karl Berry  <karl@gnu.org>
62132
62133         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62134
62135 2005-04-25  Albert Chin  <china@thewrittenword.com>
62136
62137         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62138         Toolkit C bug.
62139
62140 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62141
62142         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62143         (func_ln_if_changed) Remove forcibly for no error message
62144         in case file does not exist.
62145
62146 2005-04-19  Simon Josefsson  <jas@extundo.com>
62147
62148         * gnulib-tool (Options): Make --symlink mean --symbolic.
62149
62150 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62151
62152         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62153
62154 2005-04-16  Simon Josefsson  <jas@extundo.com>
62155
62156         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62157
62158 2005-04-15  Simon Josefsson  <jas@extundo.com>
62159
62160         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62161
62162 2005-04-15  Simon Josefsson  <jas@extundo.com>
62163
62164         * gnulib-tool: Rename --symlink to --symbolic.
62165
62166 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62167
62168         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62169         symbolic links to files instead of copying/moving.  Add --aux-dir,
62170         specifying directory relative --dir where auxiliary build tools
62171         are placed.
62172
62173 2005-04-14  Bruno Haible  <bruno@clisp.org>
62174
62175         * modules/allocsa (License): Change to LGPL.
62176         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62177
62178 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62179
62180         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62181         that "UTC +1 second" continues to work.  Problem reported
62182         by Dmitry V. Levin.
62183         (relunit_snumber): New rule.
62184         (relunit): Use it.
62185
62186 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62187
62188         * lib/getdate.y (universal_time_zone_table): New constant.
62189         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62190         universal_time_zone_table.
62191         (lookup_zone): Prefer universal_time_zone_table to
62192         local_time_zone_table, so that "GMT" time stamps are allowed in
62193         London during the summer.  Problem reported by Ian Abbott.
62194
62195 2005-04-12  Jim Meyering  <jim@meyering.net>
62196
62197         * lib/human.c (humblock): Set *options even when returning due to
62198         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62199         warning from gcc-4.
62200
62201 2005-04-09  Jim Meyering  <jim@meyering.net>
62202
62203         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62204         -Wuninitialized: initialize tm0.tm_year.
62205
62206 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62207
62208         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62209         count, since there's no maximum.  All uses changed.
62210         Add member dsts_seen.
62211         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62212         not being INT_MAX.
62213         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62214         Use pc_rels_seen to decide whther a date is absolute.
62215
62216         * lib/getdate.y (number): Don't overwrite year.
62217         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62218         check.
62219
62220 2005-04-02  Simon Josefsson  <jas@extundo.com>
62221
62222         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62223         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62224
62225 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62226
62227         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62228         where no absolute path name can be longer than PATH_MAX.
62229
62230 2005-03-27  Jim Meyering  <jim@meyering.net>
62231
62232         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62233
62234 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62237         "one's complement" -> "ones' complement" in comment, as per Knuth.
62238         "value of type" -> "type or expression" in comment.
62239         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62240
62241 2005-03-26  Jim Meyering  <jim@meyering.net>
62242
62243         Comment nits.
62244         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62245         Correct typos: s/or/of/.
62246
62247 2005-03-26  Jim Meyering  <jim@meyering.net>
62248
62249         * modules/check-include-files: Move to ../ and rename to...
62250         * check-module: ...this.
62251
62252 2005-03-25  Jim Meyering  <jim@meyering.net>
62253
62254         * modules/xvasprintf (Files): Add xalloc.h.
62255
62256 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62257
62258         * modules/gettext (Files): config/config.rpath ->
62259         build-aux/config.rpath
62260         * modules/iconv (Files): Likewise.
62261         Problem reported by Oskar Liljeblad.
62262
62263 2005-03-23  Jim Meyering  <jim@meyering.net>
62264
62265         * modules/check-include-files: New script to check for
62266         missing dependencies, multiple includes, etc.
62267
62268         * modules/c-strtold (Depends-on): Add xalloc.
62269         * modules/c-strtod (Depends-on): Add xalloc.
62270         * modules/hash (Depends-on): Add xalloc.
62271         (Files): Remove lib/xalloc.h.
62272
62273         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62274         * modules/userspec (Files): Add lib/inttostr.h.
62275
62276 2005-03-23  Jim Meyering  <jim@meyering.net>
62277
62278         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62279
62280 2005-03-22  Jim Meyering  <jim@meyering.net>
62281
62282         * modules/stat-macros: New module.
62283         * modules/canonicalize, modules/euidaccess, modules/file-type,
62284         * modules/filemode, modules/lchown, modules/makepath,
62285         * modules/rmdir, modules/stat: Depend on new stat-macros module
62286         rather than listing lib/stat-macros.h manually.
62287         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62288
62289 2005-03-22  Jim Meyering  <jim@meyering.net>
62290
62291         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62292
62293 2005-03-22  Bruno Haible  <bruno@clisp.org>
62294
62295         * config/srclist.txt: Replace target directory 'config' with
62296         'build-aux'.
62297         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62298         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62299         ../build-aux/.
62300
62301 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * modules/chdir-long (Depends-on): Add mempcpy.
62304
62305         * modules/acl, modules/backupfile, modules/c-strtod,
62306         modules/c-strtold, modules/canon-host, modules/canonicalize,
62307         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62308         modules/exclude, modules/exitfail, modules/file-type,
62309         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62310         modules/getdate, modules/getline, modules/getpagesize,
62311         modules/getpass, modules/getugroups, modules/group-member,
62312         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62313         modules/inttostr, modules/long-options, modules/makepath,
62314         modules/md5, modules/memcasecmp, modules/memcoll,
62315         modules/modechange, modules/mountlist, modules/path-concat,
62316         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62317         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62318         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62319         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62320         modules/strftime, modules/strndup, modules/strverscmp,
62321         modules/timespec, modules/unlocked-io, modules/userspec,
62322         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62323         modules/yesno:
62324         Remove lib_SOURCES line from Makefile.am section, as this is now
62325         done automatically by the corresponding Autoconf macro.
62326
62327 2005-03-21  Jim Meyering  <jim@meyering.net>
62328
62329         Changes imported from coreutils.
62330
62331         * lib/cycle-check.c: Don't include xalloc.h.
62332
62333         * lib/path-concat.c: Don't include assert.h.
62334         (path_concat): Remove assertion that would have triggered
62335         for ABASE starting with more than one slash.
62336         Reported by Andreas Schwab.
62337
62338         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62339         properly when ABASE is an absolute file name.
62340         Correct the description of this function.
62341         Include <assert.h>.
62342         Add an assertion and a test driver.
62343         This fixes a bug introduced on 2004-07-02.
62344         Andreas Schwab reported the resulting failure of cp --parents:
62345         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62346
62347 2005-03-21  Jim Meyering  <jim@meyering.net>
62348
62349         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62350         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62351
62352 2005-03-21  Jim Meyering  <jim@meyering.net>
62353         and  Paul Eggert  <eggert@cs.ucla.edu>
62354
62355         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62356         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62357         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62358         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62359         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62360         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62361         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62362         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62363         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62364         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62365         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62366         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62367         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62368         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62369         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62370         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62371         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62372         for these modules.
62373
62374 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62375
62376         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62377         (which shouldn't happen), generate nothing instead of returning 0
62378         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62379
62380 2005-03-16  Bruno Haible  <bruno@clisp.org>
62381
62382         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62383         HAVE_LONGLONG_64BIT.
62384
62385 2005-03-16  Bruno Haible  <bruno@clisp.org>
62386
62387         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62388         HAVE_LONGLONG_64BIT.
62389
62390 2005-03-16  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62393         HAVE_LONGLONG_64BIT.
62394
62395 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62398         reliably distinguish strftime failure from empty output on POSIX
62399         hosts.
62400
62401 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62404         (iconv_string): Don't guess a size-zero buffer, as that might cause
62405         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62406         result would be 'too large', where 'too large' is (heuristically)
62407         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62408         overflow concerns.  This will prevent some unwanted malloc failures
62409         when the inputs are very large.
62410
62411 2005-03-15  Karl Berry  <karl@gnu.org>
62412
62413         * config/srclist.txt (config.rpath): from gettext.
62414         * config/config.rpath: update.
62415
62416 2005-03-15  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62419         to 'negate'.
62420
62421         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62422         variable.
62423
62424         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62425         results.
62426
62427 2005-03-14  Simon Josefsson  <jas@extundo.com>
62428
62429         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62430         <fx@gnu.org>.
62431
62432 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62435         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62436         intprops.h.
62437         * lib/strtol.c: Likewise.
62438
62439 2005-03-14  Jim Meyering  <jim@meyering.net>
62440
62441         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62442         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62443         to be nonzero so that we (and caller) can detect the difference
62444         between a valid zero-length expansion and an error return, even
62445         when the underlying strftime fails before writing anything into
62446         that location.
62447
62448 2005-03-14  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62451         Update from GNU gettext 0.14.3.
62452
62453 2005-03-10  Jim Meyering  <jim@meyering.net>
62454
62455         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62456
62457 2005-03-10  Jim Meyering  <jim@meyering.net>
62458
62459         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62460         so that this module works on systems without fchdir.
62461
62462 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         Factor int-properties macros into a single file, except for
62465         glibc-related files.
62466         * lib/intprops.h: New file.
62467         * lib/getloadavg.c: Include it instead of limits.h.
62468         (INT_STRLEN_BOUND): Remove.
62469         * lib/human.c: Include intprops.h.
62470         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62471         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62472         302/1000.
62473         * lib/inttostr.h: Include intprops.h instead of limits.h.
62474         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62475         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62476         for consistency with intprops.h.
62477         (time_t_is_integer, twos_complement_arithmetic): Use them.
62478         * lib/sig2str.h: Include <signal.h>, intprops.h.
62479         (INT_STRLEN_BOUND): Remove.
62480         * lib/strftime.c (TYPE_SIGNED): Remove.
62481         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62482         * lib/strtol.c: Adjust comments to match intprops.h.
62483         * lib/userspec.c: Include intprops.h.
62484         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62485         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62486         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62487         instead of rolling our own expressions.
62488         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62489
62490         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62491         instead of int.
62492         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62493         the right thing even if adding 1900 would overflow.  Similarly
62494         for tm_mon + 1 and tm_yday + 1.
62495         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62496         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62497         (DO_SIGNED_NUMBER): New macro.
62498         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62499
62500 2005-03-07  Bruno Haible  <bruno@clisp.org>
62501
62502         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62503
62504 2005-03-07  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62507
62508 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62509
62510         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62511         (func_import): Only replace files via --import when they have actually
62512         changed.
62513
62514 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62515
62516         * m4/mmap-anon.m4: New file.
62517         * m4/pagealign_alloc.m4: New file.
62518
62519 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62520             Bruno Haible  <bruno@clisp.org>
62521
62522         * modules/pagealign_alloc: New file.
62523         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62524
62525 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62526             Bruno Haible  <bruno@clisp.org>
62527
62528         * lib/pagealign_alloc.h: New file.
62529         * lib/pagealign_alloc.c: New file.
62530
62531 2005-03-03  Bruno Haible  <bruno@clisp.org>
62532
62533         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62534         Use an all-permissive copyright notice, recommended by RMS.
62535
62536 2005-03-02  Bruno Haible  <bruno@clisp.org>
62537
62538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62539         of AIX, the replacement has to be done only after <string.h> is
62540         included, therefore not in config.h. stpncpy.h does the replacement,
62541         and stpncpy.c uses it.
62542
62543 2005-03-02  Bruno Haible  <bruno@clisp.org>
62544
62545         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62546         stpncpy.c uses it.
62547
62548 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62549
62550         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62551         The workaround isn't strictly needed for POSIX conformance, and
62552         it's too much of a pain to configure and maintain.  We'll ask
62553         people to fix their kernels instead.
62554         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62555         (NANOSLEEP_BUG_WORKAROUND): Remove.
62556         (xnanosleep): Remove the workaround.
62557
62558 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62559
62560         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62561         Reported by Derek Price.
62562         (Include): Add "timespec.h".
62563
62564         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62565
62566 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62569         to detect nanosleep bug.
62570
62571 2005-03-01  Bruno Haible  <bruno@clisp.org>
62572
62573         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62574
62575 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62576
62577         * modules/gethrxtime: New file.
62578         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62579         (Depends-on): Add gethrxtime.
62580         (configure.ac): Add gl_XNANOSLEEP.
62581         (Makefile.am): Remove lib_SOURCES line.
62582
62583 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62584
62585         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62586         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62587
62588 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62591         * lib/timespec.h (gettime): Return void, since it always
62592         succeeds now.  All uses changed.
62593         * lib/gettime.c (gettime) Likewise.
62594         [HAVE_NANOTIME]: Prefer nanotime.
62595         Assume gettimeofday succeeds, as POSIX requires.
62596         Assime time () succeeds, since other code already does.
62597         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62598         (timespec_subtract): Remove.
62599         (NANOSLEEP_BUG_WORKAROUND): New constant.
62600         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62601         things considerably.  Use it only on GNU/Linux hosts, since the
62602         workaround shouldn't be needed elsewhere.
62603
62604 2005-02-24  Bruno Haible  <bruno@clisp.org>
62605
62606         * modules/gettext (Files): Add m4/glibc2.m4.
62607
62608 2005-02-24  Bruno Haible  <bruno@clisp.org>
62609
62610         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62611         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62612         * m4/progtest.m4:
62613         Update from GNU gettext 0.14.2.
62614         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62615
62616 2005-02-24  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62619         * lib/config.charset: Update from GNU gettext 0.14.2.
62620
62621 2005-02-24  Bruno Haible  <bruno@clisp.org>
62622
62623         * lib/gettext.h: Update from GNU gettext 0.14.2.
62624
62625 2005-02-23  Simon Josefsson  <jas@extundo.com>
62626
62627         * m4/iconvme.m4: New file.
62628
62629 2005-02-23  Jim Meyering  <jim@meyering.net>
62630
62631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62632         change.
62633         Thanks to Bruno Haible for catching it.
62634
62635 2005-02-22  Simon Josefsson  <jas@extundo.com>
62636
62637         * modules/iconvme: New file.
62638
62639         * MODULES.html.sh: Add iconvme.
62640
62641 2005-02-22  Simon Josefsson  <jas@extundo.com>
62642
62643         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62644
62645 2005-02-22  Simon Josefsson  <jas@extundo.com>
62646
62647         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62648
62649 2005-02-22  Jim Meyering  <jim@meyering.net>
62650
62651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62652         s/ifndef/ifdef/.
62653
62654 2005-02-20  Neil Conway  <neilc@samurai.com>
62655
62656         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62657         returned by OSX/Darwin if the specified buffer is not large
62658         enough for the hostname.
62659
62660 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62661
62662         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62663         pass it to _help, otherwise the latter coredumps trying to
62664         dereference state.root_argp.
62665
62666 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * modules/chdir-long (Depends-on): Add memrchr.
62669         * modules/memrchr (Files): Add lib/memrchr.h.
62670         (Include): "memrchr.h".
62671
62672 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62675
62676 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62677
62678         * lib/memrchr.h: New file.
62679         * lib/chdir-long.c: Include it.
62680         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62681         Don't bother including stddef.h.
62682
62683 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62686         inclusion.
62687         Include <sys/types.h>, for dev_t.
62688         (ME_DUMMY, ME_REMOTE): Move from here....
62689         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62690         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62691         Dmitry V. Levin.
62692         Include mountlist.h first, to test the interface.
62693
62694 2005-01-29  Bruno Haible  <bruno@clisp.org>
62695
62696         * lib/progname.c (program_name): Initialize.
62697         Needed when linking statically on MacOS X.
62698
62699 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         Sync from coreutils.
62702         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62703         (Depends-on): Add c-strtod.
62704         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62705
62706 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62707
62708         Sync from coreutils.
62709         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62710
62711         Remove files that are specific to coreutils.
62712         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62713
62714 2005-01-28  Bruno Haible  <bruno@clisp.org>
62715
62716         * modules/javacomp: New file.
62717         * MODULES.html.sh (Java): Add javacomp.
62718
62719 2005-01-28  Bruno Haible  <bruno@clisp.org>
62720
62721         * m4/javacomp.m4: New file, from GNU gettext.
62722
62723 2005-01-28  Bruno Haible  <bruno@clisp.org>
62724
62725         * lib/javacomp.sh.in: New file, from GNU gettext.
62726         * lib/javacomp.h: New file, from GNU gettext.
62727         * lib/javacomp.c: New file, from GNU gettext.
62728
62729 2005-01-26  Simon Josefsson  <jas@extundo.com>
62730
62731         * lib/gai_strerror.c: Use GPL in header.
62732
62733 2005-01-26  Bruno Haible  <bruno@clisp.org>
62734
62735         * modules/javaexec: New file.
62736         * MODULES.html.sh (Java): Add javaexec.
62737
62738 2005-01-26  Bruno Haible  <bruno@clisp.org>
62739
62740         * m4/javaexec.m4: New file, from GNU gettext.
62741
62742 2005-01-26  Bruno Haible  <bruno@clisp.org>
62743
62744         * lib/javaexec.sh.in: New file, from GNU gettext.
62745         * lib/javaexec.h: New file, from GNU gettext.
62746         * lib/javaexec.c: New file, from GNU gettext.
62747
62748 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62749
62750         * modules/lchown (Depends-on): Remove lchown.h
62751
62752 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62753
62754         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62755         must be defined if the header file was not found, in order
62756         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62757
62758 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62759
62760         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62761         initializers for struct pentry_state.
62762         (__argp_error): Check return value of __asprintf
62763         (__argp_failure): Translate error message
62764
62765         * lib/argp-parse.c: Removed braces around the expansion of N_()
62766
62767 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62768
62769         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62770         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62771         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62772         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62773         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62774         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62775         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62776         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62777         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62778         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62779         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62780         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62781         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62782         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62783         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62784         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62785         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62786         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62787         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62788         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62789         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62790         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62791         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62792         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62793         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62794         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62795         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62796         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62797         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62798         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62799         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62800         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62801         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62802         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62803         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62804         Use an all-permissive copyright notice, recommended by RMS.
62805
62806 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62807
62808         * modules/chdir-long (Depends-on): Remove mempcpy.
62809
62810 2005-01-21  Jim Meyering  <jim@meyering.net>
62811
62812         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62813         same value as for Solaris 9.
62814
62815         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62816         component length.  This included changing the parameter to be
62817         of type `char *' rather than `char const *'.
62818         * lib/chdir-long.h (chdir_long): Update prototype.
62819
62820         * lib/openat.c (fdopendir, fstatat): New functions.
62821         * lib/openat.h: Include headers required for use of DIR and struct
62822         stat.
62823         [AT_SYMLINK_NOFOLLOW]: Define.
62824         (fdopendir, fstatat): Add prototypes.
62825
62826 2005-01-21  Bruno Haible  <bruno@clisp.org>
62827
62828         * modules/classpath: New file.
62829         * MODULES.html.sh (Java): Add classpath.
62830
62831 2005-01-21  Bruno Haible  <bruno@clisp.org>
62832
62833         * lib/classpath.h: New file, from GNU gettext.
62834         * lib/classpath.c: New file, from GNU gettext.
62835
62836 2005-01-20  Simon Josefsson  <jas@extundo.com>
62837
62838         * modules/version-etc-fsf: New file.
62839
62840 2005-01-20  Simon Josefsson  <jas@extundo.com>
62841
62842         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62843         * lib/version-etc.c: Remove version_etc_copyright.
62844         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62845         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62846
62847 2005-01-20  Simon Josefsson  <jas@extundo.com>
62848
62849         * lib/base64.h (isbase64): Add.
62850
62851         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62852         using a unsigned prototype, don't inline.
62853         (base64_decode): Use it.
62854
62855 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62858         it.
62859
62860 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * lib/save-cwd.c (save_cwd): Remove code to support the case
62863         where fchdir is missing or flaky.
62864
62865 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62868
62869 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62872         AC_LIBSOURCES now does this.
62873         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62874         with new ullong_max module.
62875
62876 2005-01-19  Bruno Haible  <bruno@clisp.org>
62877
62878         * modules/sh-quote: New file.
62879         * MODULES.html.sh (Executing programs): Add sh-quote.
62880
62881 2005-01-19  Bruno Haible  <bruno@clisp.org>
62882
62883         * lib/sh-quote.h: New file, from GNU gettext.
62884         * lib/sh-quote.c: New file, from GNU gettext.
62885
62886 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62887
62888         Merge from coreutils.
62889         * m4/ullong_max.m4: New file.
62890         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62891         (gl_MACROS): Assume localeconv exists.
62892
62893 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62894
62895         Merge changes from coreutils, as described below in several
62896         changelogs dated today.
62897
62898         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62899         (O_DIRECTORY): Remove; not needed here, since "." must be
62900         a directory.  All uses removed.
62901         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62902         universal on Suns, and we also need to test for IRIX.
62903         Revamp code to use 'if' rather than '#if'.
62904         Avoid unnecessary comparison of cwd->desc to 0.
62905
62906         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62907         for known valid error numbers rather than observed invalid ones.
62908
62909 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62910
62911         * modules/ullong_max: New file.
62912
62913         * modules/chdir-long, modules/openat: New files.
62914         * modules/save-cwd (Depends-on): Depend on chdir-long.
62915         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62916
62917 2005-01-18  Jim Meyering  <jim@meyering.net>
62918
62919         Merge from coreutils.
62920         * m4/chdir-long.m4, m4/openat.m4: New files.
62921         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62922         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62923         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62924         is sane and DOES follow symlinks.  Besides, testing 20 different
62925         systems found no broken chown implementations.
62926         Prompted by a change in rsync's copy of this macro.
62927         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62928
62929         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62930
62931         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62932         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62933         NULL-means-set-to-current-time semantics.
62934         Remove temporary file immediately, rather than waiting
62935         for configure's at-exit trap code to do it.
62936
62937 2005-01-18  Jim Meyering  <jim@meyering.net>
62938
62939         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62940
62941         * lib/utimens.c (futimens): Account for the fact that futimes
62942         can also fail with errno == ENOSYS or errno == ENOENT.
62943         Patch from Dmitry V. Levin.
62944
62945         Change the name of the robust chdir function from chdir to chdir_long.
62946         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62947         (restore_cwd): Use chdir_long, not chdir.
62948         * lib/chdir-long.c: Renamed from chdir.c.
62949         * lib/chdir-long.h: Renamed from chdir.h.
62950         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62951         Hurd.
62952
62953 2005-01-18  Bruno Haible  <bruno@clisp.org>
62954
62955         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62956         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62957         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62958         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62959         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62960         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62961         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62962         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62963         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62964         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62965         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62966         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62967         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62968         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62969         Use an all-permissive copyright notice, recommended by RMS.
62970
62971 2005-01-18  Bob Proulx  <bob@proulx.com>
62972
62973         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62974         simplify offsetof() macro construct to avoid compile failure with
62975         native HP-UX 11.0 ANSI C compiler.
62976
62977 2005-01-17  Bruno Haible  <bruno@clisp.org>
62978
62979         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62980         redundant because stpncpy.m4 takes care of it.
62981
62982 2005-01-17  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62985
62986 2005-01-17  Bruno Haible  <bruno@clisp.org>
62987
62988         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62989         used.
62990
62991 2005-01-17  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/fwriteerror.h (fwriteerror): Change specification to include
62994         fclose.
62995         * lib/fwriteerror.c: Include <stdbool.h>.
62996         (fwriteerror): At the end, close the file stream. Record whether
62997         stdout was already closed.
62998
62999 2005-01-17  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/execute.c (environ): Declare if needed.
63002         * lib/pipe.c (environ): Likewise.
63003         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63004
63005 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63006
63007         * modules/argp: Depend on vsnprintf
63008
63009 2005-01-10  Jim Meyering  <jim@meyering.net>
63010
63011         * modules/closeout (Depends-on): Add atexit.
63012
63013 2005-01-06  Bruno Haible  <bruno@clisp.org>
63014
63015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63016
63017 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63020         definitions to be after all include files, to avoid collisions.
63021         Problem reported by Bob Proulx.
63022
63023 2005-01-04  Jim Meyering  <jim@meyering.net>
63024
63025         Changes imported from coreutils.
63026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63027         as the mkstemp template, use a temporary directory and an
63028         8.3-friendly template to avoid trouble on systems like DJGPP.
63029         Reported by Juan M. Guerrero via Stepan Kasal.
63030         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63031         close. Remove the temporary directory right away, rather than waiting
63032         for configure's at-exit trap code to do it.
63033         Suggestion from Stepan Kasal.
63034
63035 2005-01-01  Simon Josefsson  <jas@extundo.com>
63036
63037         * gnulib-tool: Print #include directives when --import'ing.
63038
63039 2004-12-28  Simon Josefsson  <jas@extundo.com>
63040
63041         * tests/test-base64.c: Include required header files.  Remove
63042         unused variables.
63043
63044 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * modules/error (Depends-on): Remove gettext.
63047
63048 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63051         not needed.  This removes a dependency on the gettext module.
63052         [defined _LIBC]: Do not include <libintl.h>; not needed.
63053
63054 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63057         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63058
63059 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63062         HAVE_DECL_STRTOLD.
63063
63064 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * modules/getdate (Depends-on): Remove alloca-opt.
63067
63068 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63071
63072 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         * lib/argp-parse.c: Include <stddef.h>.
63075         (alignof, alignto): New macros.
63076         (parser_init): Don't assume that void * is aligned sufficiently
63077         for struct option.
63078
63079         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63080         need to extend the stack.
63081         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63082         large.
63083
63084 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63085
63086         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63087
63088 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63089
63090         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63091         (2004-10-24) change.  Apparently this was a false alarm.
63092
63093         * modules/getdate: Depend on alloca-opt, not alloca.
63094
63095 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63098         Remove now-obsolete comment about AIX.
63099         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63100         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63101         (YYMAXDEPTH): New macro.
63102
63103 2004-12-18  Simon Josefsson  <jas@extundo.com>
63104
63105         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63106
63107 2004-12-18  Bruno Haible  <bruno@clisp.org>
63108
63109         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63110
63111 2004-12-18  Bruno Haible  <bruno@clisp.org>
63112
63113         * lib/fatal-signal.c (fatal_signals): Make non-const.
63114         (init_fatal_signals): New function.
63115         (uninstall_handlers, install_handlers): Ignore signals that were set to
63116         SIG_IGN.
63117         (at_fatal_signal): Call init_fatal_signals.
63118         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63119         SIG_IGN.
63120         Reported by Paul Eggert.
63121
63122 2004-12-18  Bruno Haible  <bruno@clisp.org>
63123
63124         * doc/alloca.texi: New file.
63125         * doc/alloca-opt.texi: New file.
63126
63127 2004-12-17  Jim Meyering  <jim@meyering.net>
63128
63129         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63130         Otherwise, install-sh could exit with improper exit status when
63131         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63132
63133 2004-12-16  Simon Josefsson  <jas@extundo.com>
63134
63135         * tests/test-base64.c: Add license.
63136
63137 2004-12-15  Stepan Kasal  <address@hidden>
63138
63139         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63140
63141 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * modules/getcwd (Files): Add m4/d-ino.m4.
63144         Suggested by Mark D. Baushke.
63145
63146 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * lib/getdate.y (textint): New member "negative".
63149         (time_zone_hhmm): New function.
63150         Expect 14 shift-reduce conflicts, not 13.
63151         (o_colon_minutes): New rule.
63152         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63153         (yylex): Set the "negative" member of signed numbers.
63154
63155 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         * doc/getdate.texi (Time of day items, Time zone items):
63158         Describe new formats +00:00, UTC+00:00.
63159
63160 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63161
63162         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63163         spurious "-l"s.  Problem reported by Stepan Kasal.
63164
63165 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63168         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63169
63170 2004-12-04  Simon Josefsson  <jas@extundo.com>
63171
63172         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63173         Vandoorselaere <yoann@prelude-ids.org>.
63174
63175 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63176
63177         Changes imported from coreutils.
63178         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63179         exist.
63180         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63181
63182 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         Changes imported from coreutils.
63185         * lib/hard-locale.c: Assume <locale.h> exists.
63186         Include "strdup.h".
63187         (GLIBC_VERSION): New macro.
63188         (hard_locale): Assume setlocale exists.
63189         Rewrite to avoid #ifdef.
63190         Use strdup rather than malloc + strcpy.
63191         * lib/human.c: Assume <locale.h> exists.
63192         (human_readable): Assume localeconv exists.
63193
63194 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * modules/hard-locale (Depends-on): Add strdup.
63197
63198 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63199
63200         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63201         convert T2, not T.  (Imported from libc.)
63202
63203 2004-11-30  Simon Josefsson  <jas@extundo.com>
63204
63205         * modules/restrict (License): Change to LGPL.
63206
63207 2004-11-30  Simon Josefsson  <jas@extundo.com>
63208
63209         * m4/restrict.m4: Add copyright and copying conditions.
63210
63211 2004-11-30  Simon Josefsson  <jas@extundo.com>
63212
63213         * m4/base64.m4: New file.
63214
63215 2004-11-30  Simon Josefsson  <jas@extundo.com>
63216
63217         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63218         base64.
63219
63220         * tests/test-base64.c: New file.
63221
63222         * modules/base64: New file.
63223
63224 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63225
63226         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63227         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63228
63229         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63230
63231 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63234         (__getcwd.c): Don't restore errno; glibc doesn't.
63235         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63236         first, falling back to our code only if its results look suspicious.
63237         Ensure that the resulting buffer is only as large as necessary.
63238
63239         * lib/readutmp.c: Include readutmp.h first.
63240         Include <errno.h>, since readutmp.h no longer does that.
63241         * lib/readutmp.h: Don't include <errno.h>,
63242         <sys/param.h>, <time.h>; not needed to establish interface.
63243         (errno): Remove decl.
63244         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63245         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63246         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63247
63248 2004-11-28  Simon Josefsson  <jas@extundo.com>
63249
63250         * lib/base64.h, base64.c: New file.
63251
63252 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63255
63256 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63259         (Depends-on): Remove pathmax, same.  Add mempcpy.
63260         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63261         (Makefile.am): Append getcwd.h to lib_SOURCES.
63262         (Include): Add getcwd.h.
63263         (Maintainer): Change from Jim Meyering to "all, glibc",
63264         since getdate now uses intended-for-glibc code.
63265         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63266         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63267
63268 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63271         HP's ANSI C compiler.
63272         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63273         Declaring int functions causes warnings on some modern systems and
63274         shouldn't be needed to compile on ancient ones.
63275         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63276         defined.
63277
63278         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63279         with the following changes.
63280         (__set_errno): Parenthesize properly.
63281         Include <stdbool.h>.
63282         (MIN, MAX, MATCHING_INO): New macros.
63283         (__getcwd): Define with prototype, not K&R form.
63284         Use heuristics to allocate default buffer on stack if possible.
63285         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63286         behavior, and to avoid the PATH_MAX limit when computing
63287         ../../../../...
63288         Use MATCHING_INO to compare inode number to file.
63289         Check for arithmetic overflow in size calculations.
63290         Fix bug in reallocation of dot array that caused getcwd to fail
63291         on directories nested deeper than 75.
63292         Be more careful about saving errno on error.
63293         Do not use realloc; use only free+malloc, as this is a bit
63294         more flexible and avoids a needless copy operation.
63295         Do not inspect st_dev and st_ino for symbolic links; POSIX
63296         doesn't specify the latter.
63297         Check for closedir errors.
63298         Avoid needless casts.
63299         Use "#ifdef weak_alias" around weak_alias, to be like other
63300         glibc code.
63301         The following changes to getcwd.c have effect only when used in
63302         gnulib; they have no effect inside glibc proper.
63303         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63304         as alloca isn't used.
63305         (alloca, __alloca): Likewise.
63306         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63307         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63308         unconditionally, as gnulib assumes C89 or better.
63309         Do not include <sys/param.h>.
63310         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63311         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63312         better.
63313         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63314         Include <dirent.h> in a way that is compatible with modern Autoconf.
63315         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63316         New macros, if not already defined.
63317         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63318         Use "_LIBC", not "defined _LIBC", for consistency.
63319         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63320         a mempcpy module.
63321         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63322         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63323         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63324         credit only to Jim Meyering and adjust the copyright dates.
63325         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63326         <stdlib.h>, <unistd.h>, "pathmax.h".
63327         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63328         (INITIAL_BUFFER_SIZE): Remove.
63329         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63330
63331 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63334         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63335         Use the _ONCE methods, for efficiency.
63336         Check for fcntl.h.  In test program, include <errno.h>
63337         and <fcntl.h> if available.  Remove old K&R cruft from
63338         test program.  Check for common errors in GNU/Linux,
63339         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63340         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63341         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63342         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63343         name accordingly.
63344         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63345         accommodate new getcwd.c.
63346         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63347         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63348         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63349         that's all we need now.
63350
63351 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63352
63353         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63354         argp-parse.c depends on getopt internals, that means we should
63355         always use our getopt, to be on the safe side.
63356         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63357         order not to spoil the result of an eventual previous invocation
63358         of gl_GETOPT_SUBSTITUTE.
63359
63360 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63361
63362         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63363         redefinition warnings. To avoid them, include the defines
63364         in `#if !defined __need_getopt ... #endif'. The only place
63365         where __getopt_argv_const is used is in definitions
63366         of getopt_long and getopt_long_only below, which are as well
63367         protected by `#ifndef __need_getopt'.
63368         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63369         __need_getopt after including <stdio.h> and <unistd.h> These
63370         headers might have defined it.
63371
63372 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63375
63376 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63379         (futimens): New function, which uses futimes if available.
63380         (futimens, utimens): Support timespec==NULL, with same semantics
63381         as utime and utimens.
63382         * lib/utimens.h (futimens): New decl.
63383
63384 2004-11-23  Jim Meyering  <jim@meyering.net>
63385
63386         * lib/getopt_.h: Remove trailing blanks.
63387
63388 2004-11-23  Jim Meyering  <jim@meyering.net>
63389
63390         * lib/__fpending.c: Add comment.
63391
63392 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * modules/canonicalize (Depends-on): Add xreadlink.
63395         Problem reported by James Youngman.
63396
63397 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63400         New macros.
63401         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63402         optopt): Use them instead of invoking ## directly; otherwise, the
63403         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63404
63405 2004-11-19  Bruno Haible  <bruno@clisp.org>
63406
63407         * lib/strtok_r.c: Move comments from here...
63408         * lib/strtok_r.h: ... to here.
63409
63410 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63411
63412         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63413         implementations that mishandle size_t overflow.
63414
63415 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63418         might fail.  Problem reported by Yoann Vandoorselaere.
63419         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63420         implementations that mishandle size_t overflow.
63421
63422 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * modules/canon-host (Depends-on): Add strdup.
63425
63426 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63429
63430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63431
63432         * lib/canon-host.c: Include "strdup.h".
63433         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63434         Use strdup instead of malloc/strcpy to duplicate strings.
63435
63436         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63437         (human_space_before_unit): New constant.
63438         * lib/human.c (human_readable): Support it.
63439
63440         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63441         (xgetcwd): Set errno correctly when failing.
63442         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63443         the failure is actually due to a PATH_MAX problem.
63444
63445         Further getopt changes to make it more likely that glibc will
63446         buy the changes back.
63447         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63448         (getopt): Use it, so to preserve glibc semantic
63449         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63450         when compiling for libc.
63451         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63452         (getopt_long, getopt_long_only): Use it.
63453
63454         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63455         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63456         (getopt): Argv is now char * const *, as per standard.
63457         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63458         not char *__getopt_argv_const *.
63459         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63460         _getopt_long_only_r): Likewise.
63461         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63462         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63463         _getopt_long_r, _getopt_long_only_r): Likewise.
63464         * lib/getopt_.h (__getopt_argv_const): Remove.
63465         (getopt): Argv is now char * const *, as per standard.
63466
63467         * lib/getdate.y (tORDINAL): New token.
63468         (day, relunit): Allow it for relative times.
63469         (relative_time_table): Use tORDINAL for ordinals.
63470
63471 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63474         Document that "second" isn't allowed as an ordinal number.
63475
63476 2004-11-16  Jim Meyering  <jim@meyering.net>
63477
63478         * modules/closeout (Depends-on): Add fpending.
63479
63480 2004-11-15  Jim Meyering  <jim@meyering.net>
63481
63482         * lib/closeout.c: Include "__fpending.h" once again.
63483         Include <stdbool.h>.
63484         (close_stdout): Don't fail just because stdout was closed initially,
63485         since some programs don't write to stdout in the normal course of
63486         operation (other than --version and --help), and we don't want this
63487         function to make e.g. `touch file >&-' fail.
63488         But do fail if it was closed and someone has tried to write to it.
63489         E.g., `printf foo >&-' must fail.
63490
63491 2004-11-13  Jim Meyering  <jim@meyering.net>
63492
63493         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63494
63495 2004-11-12  Simon Josefsson  <jas@extundo.com>
63496
63497         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63498         small doc fix is still pending.
63499
63500 2004-11-11  Simon Josefsson  <jas@extundo.com>
63501
63502         * modules/strtok_r: New file.
63503
63504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63505         strtok_r.
63506
63507 2004-11-11  Simon Josefsson  <jas@extundo.com>
63508
63509         * m4/strtok_r.m4: New file.
63510
63511         * m4/getopt.m4: Replace opterr.
63512
63513 2004-11-11  Simon Josefsson  <jas@extundo.com>
63514
63515         * lib/strtok_r.h, strtok_r.c: New file.
63516
63517 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63520         of replacing opterr, getopt, etc.  This should handle the
63521         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63522
63523 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63526         we can stop lying to compilers about the constness of argv when we
63527         are compiled outside glibc.
63528         (getopt, getopt_long, getopt_long_only): Use it.
63529         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63530         _getopt_internal, getopt): Likewise.
63531         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63532         _getopt_long_only_r): Likewise.
63533         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63534         _getopt_long_r, _getopt_long_only_r): Likewise.
63535
63536         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63537         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63538         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63539         the other external symbols.
63540         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63541         declaration, since the above renaming now works around collisions.
63542
63543 2004-11-11  Jim Meyering  <jim@meyering.net>
63544
63545         * lib/linebreak.c: Remove trailing blanks.
63546         * lib/alloca_.h: Likewise.
63547         * lib/acosl.c: Likewise.
63548         * lib/euidaccess.c: Likewise.
63549         * lib/allocsa.h: Likewise.
63550
63551 2004-11-10  Simon Josefsson  <jas@extundo.com>
63552
63553         * m4/getaddrinfo.m4: New file.
63554
63555 2004-11-10  Simon Josefsson  <jas@extundo.com>
63556
63557         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63558
63559 2004-11-10  Simon Josefsson  <jas@extundo.com>
63560
63561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63562         getaddrinfo.
63563
63564         * modules/getaddrinfo: New file.
63565
63566 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63567
63568         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63569
63570 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         * lib/mktime.c (SHR): New macro, which is a portable
63573         substitute for >> that should work even on Crays.
63574         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63575         Problem reported by Mark D. Baushke in
63576         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63577         * lib/getdate.y (SHR): Likewise.
63578         (tm_diff): Use it.
63579         * lib/strftime.c (SHR): Likewise.
63580         (tm_diff): Use it.
63581         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63582         quote_these_too, so that right shifts are well defined.  All uses
63583         changed.
63584
63585 2004-11-10  Jim Meyering  <jim@meyering.net>
63586
63587         Ensure that no close failure goes unreported.
63588         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63589         return early when it seems there's nothing to flush.
63590         Don't include __fpending.h.
63591
63592 2004-11-10  Jim Meyering  <jim@meyering.net>
63593
63594         * modules/closeout (Depends-on): Remove fpending.
63595
63596 2004-11-10  Jim Meyering  <jim@meyering.net>
63597
63598         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63599
63600 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63603         gl_FUNC_STRFTIME.
63604         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63605         and AC_REQUIRE when possible, to avoid duplicate checks.
63606         Check for <wchar.h>.
63607
63608 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63611
63612 2004-11-09  Bruno Haible  <bruno@clisp.org>
63613
63614         * m4/sockpfaf.m4: New file.
63615
63616 2004-11-05  Bruno Haible  <bruno@clisp.org>
63617
63618         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63619         Reported by Mark D. Baushke <mdb@cvshome.org>.
63620
63621 2004-11-04  Bruno Haible  <bruno@clisp.org>
63622
63623         2004-09-11  Bruno Haible  <bruno@clisp.org>
63624                 * allocsa.valgrind: New file.
63625         2004-02-06  Bruno Haible  <bruno@clisp.org>
63626                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63627                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63628                 Reported by Christopher Seip <chris.seip@hp.com>.
63629
63630 2004-11-04  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63633         (Makefile.am): Distribute it.
63634
63635 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63638         with errno == ERANGE if the buffer is too small.
63639         Problem reported by Mark D. Baushke.
63640
63641 2004-11-03  Albert Chin  <china@thewrittenword.com>
63642             Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63645         equivalent, substitute $ac_type for equivalent type rather than
63646         blindly using uint32_t *always* which won't work if uint32_t is not
63647         available.  Define _UINT32_T to work around typedef of uint32_t if
63648         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63649         2.5.1.
63650
63651 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         * m4/jm-macros.m4: Sync from coreutils.
63654         (gl_MACROS): Check for mbrlen, for pathchk.
63655         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63656
63657 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63658
63659         * lib/xreadlink.c (MAXSIZE): New macro.
63660         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63661         size does not exceed MAXSIZE.  Avoid cast.
63662         As suggested by Mark D. Baushke in
63663         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63664         if readlink fails with buffer size just under MAXSIZE, try again
63665         with MAXSIZE.
63666
63667 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63668
63669         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63670
63671 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63672         and  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63675         (get_date): Overparenthesize to avoid GCC warning.
63676
63677 2004-11-02  Bruno Haible  <bruno@clisp.org>
63678
63679         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63680         returns void.
63681
63682 2004-11-02  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63685         function returns void.
63686
63687 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63690         fflush_unlocked, flockfile, funlockfile, funlockfile,
63691         fputs_unlocked, putc_unlocked.
63692
63693 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63696         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63697         already declared.
63698
63699 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * modules/getdate (Files): Add doc/getdate.texi.
63702         (Depends-on): Add setenv, xalloc.
63703
63704 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63705
63706         * lib/getdate.y: Add support for TZ="foo" within a date string.
63707         Fix some bugs near time_t boundaries.  Reject dates with
63708         out-of-range components, e.g., "Sept 31".
63709         Include <stdlib.h>, "setenv.h", "xalloc.h".
63710         (ISDIGIT_LOCALE): Remove; unused.
63711         Note that the TZ and time functions used here are not reentrant.
63712         (mktime_ok, get_tz): New functions.
63713         (TZBUFSIZE): New constant.
63714         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63715         This requires that we sometimes generate our own TZ="XXX..." setting.
63716
63717 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63718
63719         * doc/getdate.texi: New file, from coreutils with modifications for
63720         the new TZ parsing.
63721
63722 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63723
63724         * lib/mktime.c (not_equal_tm): Remove redundant check.
63725
63726 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63727
63728         * modules/regex (lib_SOURCES): Add regex.c.
63729         Reported by James Youngman in
63730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63731
63732 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         * lib/getdate.y: Use Bison 1.875 features, and some minor
63735         code cleanups.  This change does not affect semantics.
63736         Don't include <stdlib.h>; no longer needed.
63737         Don't include unlocked-io.h; only the "#if TEST" code uses
63738         stdio, and performance isn't crucial there.
63739         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63740         Bison 1.875 features as described below.
63741         All uses of "PC." replaced by "pc->".
63742         (YYSTYPE): Add a forward declaration.
63743         (yylex, yyerror): Use full prototypes in forward decls.
63744         Use "%pure-parser" rather than obsolescent "%pure_parser".
63745         Use %parse-param and %lex-param instead of obsolescent
63746         YYPARSE_PARAM and YYLEX_PARAM.
63747         (meridian_table, month_and_day_table, time_units_table,
63748         relative_time_table, time_zone_table, military_table,
63749         lookup_zone, lookup_word, get_date):
63750         Use NULL instead of 0 where appropriate.
63751         (to_hour): Avoid abort (), to avoid a dependency on
63752         stdlib.h.
63753         (yyerror, yylex): Now accepts parser_control * arg.
63754         (main) [TEST]: Use '\0' rather than 0 for char.
63755
63756 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63759
63760 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63763         It's now the caller's responsibility to handle the case where
63764         !HAVE_GETPAGESIZE && !defined getpagesize.
63765
63766         * lib/mktime.c (leapyear): Arg is long int, not int.
63767
63768 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63771
63772 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63775         missing.  Problem reported by James Youngman.
63776
63777 2004-10-16  Simon Josefsson  <jas@extundo.com>
63778
63779         * gnulib-tool: Fix comments.  Fix parse problem.
63780         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63781
63782 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63785         implementation of getopt_long.  Problem reported by Alexander Taler in:
63786         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63787
63788 2004-10-15  Bruno Haible  <bruno@clisp.org>
63789
63790         * gnulib-tool: Untabify. Initialize supplied_libname.
63791         (func_usage): More homogenous output.
63792         (func_modules_transitive_closure, func_modules_to_filelist,
63793         func_emit_lib_Makefile_am): New functions.
63794         (func_import): New function, extracted from big case statement. Use
63795         func_get_license, func_modules_transitive_closure,
63796         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63797         opt_lgpl. Don't use test -a, as it's not portable.
63798         (func_create_testdir): Use func_modules_transitive_closure,
63799         func_modules_to_filelist, func_emit_lib_Makefile_am.
63800
63801 2004-10-15  Bruno Haible  <bruno@clisp.org>
63802
63803         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63804
63805 2004-10-15  Bruno Haible  <bruno@clisp.org>
63806
63807         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63808         the portions belonging to each module.
63809         Suggested by Derek Robert Price <derek@ximbiot.com>.
63810
63811 2004-10-12  Simon Josefsson  <jas@extundo.com>
63812
63813         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63814         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63815         to real functions.
63816
63817 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63818
63819         * modules/vsnprintf: New file.
63820
63821 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63822
63823         * m4/vsnprintf.m4: New file.
63824
63825 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63826
63827         * lib/vsnprintf.h: New file.
63828         * lib/vsnprintf.c: New file.
63829
63830 2004-10-11  Bruno Haible  <bruno@clisp.org>
63831
63832         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63833         vsnprintf.
63834
63835 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63838
63839 2004-10-07  Bruno Haible  <bruno@clisp.org>
63840
63841         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63842         fits into the provided buffer.
63843
63844 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * lib/diacrit.c, diacrit.h: Add GPL notice.
63847
63848         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63849         notice.
63850         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63851         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63852         This avoids a potential constant-folding bug.
63853
63854 2004-10-05  Bruno Haible  <bruno@clisp.org>
63855
63856         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63857         for the declaration of strsep.
63858
63859 2004-10-05  Bruno Haible  <bruno@clisp.org>
63860
63861         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63862
63863 2004-10-04  Simon Josefsson  <jas@extundo.com>
63864
63865         * modules/memmem: New file.
63866         * tests/test-memmem.c: New file.
63867         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63868
63869 2004-10-04  Simon Josefsson  <jas@extundo.com>
63870
63871         * m4/memmem.m4: New file.
63872
63873 2004-10-04  Simon Josefsson  <jas@extundo.com>
63874
63875         * lib/memmem.h: New file.
63876         * lib/memmem.c: New file, taken from glibc.
63877
63878 2004-10-04  Simon Josefsson  <jas@extundo.com>
63879
63880         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63881         '#ifdef USE_UNLOCKED_IO'.
63882
63883 2004-10-04  Simon Josefsson  <jas@extundo.com>
63884
63885         * config/srclist.txt: Add memmem from glibc.
63886
63887 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63888
63889         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63890
63891         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63892         modules/exclude, modules/getdate, modules/getline,
63893         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63894         modules/getusershell, modules/linebuffer, modules/md5,
63895         modules/mountlist, modules/posixtm, modules/readtokens,
63896         modules/readutmp, modules/regex, modules/sha1,
63897         modules/version-etc, modules/yesno:
63898         Remove dependency on unlocked-io.
63899
63900 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63901
63902         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63903
63904         * m4/unlocked-io.m4: Add copyright notice.
63905         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63906
63907 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63910         * lib/xmalloc.c (xmemdup): Likewise.
63911         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63912         XFREE): Remove these long-obsolescent macros.
63913         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63914         * lib/xstrdup.c: Remove.
63915
63916         * lib/regex.c (re_comp): Cast gettext return value to char *,
63917         Problem reported by Martin Neitzel via Mark D. Baushke.
63918
63919 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63920
63921         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63922         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63923         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63924         regex.c, sha1.c, version-etc.c, yesno.c:
63925         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63926         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63927         the includer's responsibility.
63928
63929         Sync from coreutils.
63930
63931         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63932         points to the start of a string, as the C Standard says the
63933         resulting behavior is undefined.
63934
63935         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63936         simple -> simple_backups, numbered_existing ->
63937         numbered_existing_backups, numbered -> numbered_backups
63938         to avoid shadowing problems.  All uses changed.
63939         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63940         * lib/backupfile.c (check_extension, numbered_backup):
63941         Rename locals to avoid shadowing 'basename'.
63942         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63943         once.
63944
63945         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63946         * lib/.cvsignore: Add getopt.h.
63947
63948 2004-10-04  Bruno Haible  <bruno@clisp.org>
63949
63950         * modules/README: New file.
63951         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63952         not a module.
63953
63954 2004-10-02  Jim Meyering  <jim@meyering.net>
63955
63956         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63957
63958 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63959
63960         * modules/strsep: New file.
63961
63962 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63963
63964         * m4/strsep.m4: New file.
63965
63966 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63967
63968         * lib/strsep.h: New file.
63969         * lib/strsep.c: New file.
63970
63971 2004-10-01  Simon Josefsson  <jas@extundo.com>
63972
63973         * lib/snprintf.c (snprintf): Handle size==0.
63974
63975 2004-10-01  Simon Josefsson  <jas@extundo.com>
63976             Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63979         (snprintf): Declare 'args'.
63980
63981 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         * lib/snprintf.c: Remove comments as to why each header is needed.
63984
63985 2004-10-01  Bruno Haible  <bruno@clisp.org>
63986
63987         * MODULES.html.sh: Add strsep.
63988
63989 2004-09-30  Simon Josefsson  <jas@extundo.com>
63990
63991         * modules/snprintf: New file.
63992
63993 2004-09-30  Simon Josefsson  <jas@extundo.com>
63994
63995         * m4/snprintf.m4: New file.
63996
63997 2004-09-30  Simon Josefsson  <jas@extundo.com>
63998
63999         * lib/snprintf.h, lib/snprintf.c: New files.
64000
64001 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64002
64003         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64004         (hol_entry_help): Never translate an empty string.
64005         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64006         * lib/argp.h (OPTION_NO_TRANS): New option.
64007
64008 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * modules/argp (Maintainer): Replace Simon Josefsson
64011         by Sergey Poznyakoff.
64012
64013 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64016         changes merged back into glibc.
64017
64018 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64021
64022 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64023
64024         * lib/xvasprintf.c: Include xalloc.h.
64025         (xvasprintf): Use xalloc_die, not xmalloc_die.
64026
64027 2004-09-29  Bruno Haible  <bruno@clisp.org>
64028
64029         * modules/alloca-opt: New file, derived from modules/alloca.
64030         * modules/allocsa: Depend on alloca-opt instead of alloca.
64031         * modules/setenv: Likewise.
64032         * modules/vasnprintf: Likewise.
64033         * MODULES.html.sh: Add alloca-opt.
64034
64035 2004-09-28  Simon Josefsson  <jas@extundo.com>
64036
64037         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64038         LGPL, and to replace license template from GPL to LGPL.
64039
64040 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64041
64042         * modules/dummy: Change license to LGPL.
64043
64044 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64047
64048 2004-09-24  Simon Josefsson  <jas@extundo.com>
64049
64050         * modules/minmax (License): Change from GPL to LGPL.
64051
64052 2004-09-23  Simon Josefsson  <jas@extundo.com>
64053
64054         * gnulib-tool (--import): Typo.
64055
64056 2004-09-23  Simon Josefsson  <jas@extundo.com>
64057
64058         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64059
64060 2004-09-22  Bruno Haible  <bruno@clisp.org>
64061
64062         * modules/*: Add 'License' field.
64063         * gnulib-tool: Accept --extract-license option.
64064         (func_get_license): New function.
64065
64066 2004-09-21  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64069         Reported by Simon Josefsson.
64070
64071 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64072
64073         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64074         gl_AC_TYPE_LONG_LONG.
64075
64076 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64079
64080 2004-09-18  Simon Josefsson  <jas@extundo.com>
64081         and  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64084         calls with autoreconf.  Define GL_LIB.
64085
64086 2004-09-14  Karl Berry  <karl@gnu.org>
64087
64088         * config/srclist.txt: unsync setenv.c, sigh.
64089
64090 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64093         Problem reported by Bruno Haible in:
64094         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64095
64096 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64097
64098         * config/srclist.txt: Comment out argp-pvh.c.
64099
64100 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64101
64102         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64103         in case some system header has #define'd it.  Problem reported by
64104         Soeren D. Schulze in
64105         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64106
64107 2004-09-09  Karl Berry  <karl@gnu.org>
64108
64109         * regex.[ch]: delete from the root.  These were supposed to be
64110                 synced with emacs cvs, but this has not happened for about
64111                 a year, and anyway nothing else uses emacs regex.[ch].
64112                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64113                 lib/regex[.ch] is untouched.
64114
64115 2004-09-09  Bruno Haible  <bruno@clisp.org>
64116
64117         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64118
64119 2004-09-09  Bruno Haible  <bruno@clisp.org>
64120
64121         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64122         modifications.
64123         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64124
64125 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64126
64127         * modules/xvasprintf: New file.
64128         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64129
64130 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64131
64132         * lib/xvasprintf.h: New file.
64133         * lib/xvasprintf.c: New file.
64134         * lib/xasprintf.c: New file.
64135
64136 2004-09-08  Bruno Haible  <bruno@clisp.org>
64137
64138         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64139
64140 2004-09-08  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64143         length is > INT_MAX.
64144         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64145         more.
64146
64147 2004-09-08  Bruno Haible  <bruno@clisp.org>
64148
64149         * lib/stdint_.h: New file, taken from GNU clisp.
64150
64151 2004-09-08  Bruno Haible  <bruno@clisp.org>
64152             Oskar Liljeblad  <oskar@osk.mine.nu>
64153
64154         * modules/stdint: New file.
64155         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64156
64157 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         Import from coreutils.
64160         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64161         strings on unbounded length.  alloca's performance benefits aren't
64162         that important here.
64163         (V_STRDUP): Remove.
64164         (parse_with_separator): New function, with most of the internals
64165         of the old parse_user_spec.  Allow user to omit both user and group,
64166         for compatibility with FreeBSD.
64167         Clone only the user name, not the entire spec.
64168         Do not set *uid, *gid unless entirely successful.
64169         Avoid memory leak in some failing cases.
64170         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64171         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64172         (parse_user_spec): Rewrite to use parse_with_separator.
64173
64174 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64175
64176         * modules/userspec: Don't depend on alloca.
64177
64178 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64181
64182 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64185         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64186         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64187
64188 2004-08-16  Simon Josefsson  <jas@extundo.com>
64189
64190         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64191         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64192         Add --dry-run for --import.
64193         Let user provided command line parameters override configure.ac
64194         settings.
64195
64196 2004-08-12  Simon Josefsson  <jas@extundo.com>
64197
64198         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64199         as discussed with Paul Eggert in threads rooted at
64200         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64201         and
64202         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64203         Before, the test was empty, and relied on ELIDE_CODE in source
64204         code.)
64205         (gl_PREREQ_GETOPT): New macro.
64206         (gl_GETOPT): Use them.
64207
64208 2004-08-12  Simon Josefsson  <jas@extundo.com>
64209
64210         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64211         * lib/getopt_.h: Renamed from getopt.h.
64212
64213 2004-08-12  Simon Josefsson  <jas@extundo.com>
64214
64215         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64216         Change default library name from libfoo to libgnu.
64217         Now, if you have a configure.ac that says:
64218                 gl_SOURCE_BASE(gl)
64219                 gl_M4_BASE(gl/m4)
64220                 gl_MODULES(error getopt etcetera)
64221                 gl_INIT
64222         you can import all you need by running:
64223                 ../gnulib/gnulib-tool --import
64224
64225         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64226         (Makefile.am): Rewrite, use logic from argz.
64227         (Include): Use <getopt.h> instead of "getopt.h".
64228
64229 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * modules/argp (Files): Add m4/unlocked-io.m4.
64232         (Depends-on): Add extensions.
64233
64234 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64235
64236         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64237         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64238         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64239         Check for program_invocation_name, program_invocation_short_name,
64240         flockfile, funlockfile, features.h, _getopt_long_only_r.
64241
64242 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64245         its complicated substitute.
64246         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64247         and program_invocation_name.
64248         (__argp_basename) [!_LIBC]: Remove; the only use was
64249         replaced by its body.
64250         (__argp_short_program_name): Change condition from
64251         !defined __argp_short_program_name to
64252         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64253         to match argp-namefrob.h.
64254         (__argp_failure): Don't assume strerror_r returns char *.
64255         * lib/argp-parse.c (N_): Define unconditionally.
64256         (argp_default_options): Fill out initializers with 0 to avoid
64257         gcc warnings.
64258
64259 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64262         getopt1.c.
64263
64264 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64265
64266         Merge from coreutils.
64267
64268         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64269
64270         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64271         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64272
64273 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         Merge from coreutils.
64276
64277         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64278         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64279         for Reliant Unix 5.43.
64280
64281         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64282         (union fooround): Use uintmax_t, not long int.
64283         The rest is a merge from libc:
64284         [defined _LIBC]: Include <shlib-compat.h>.
64285         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64286
64287         * lib/settime.c (settime): Recode to avoid warning with
64288         Sun Forte C 6U2.
64289
64290         * lib/strverscmp.c: Convert to UTF-8.
64291
64292 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64295         m4/uintmax_t.m4.
64296
64297 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         * modules/xalloc-die: New file.
64300         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64301
64302         * modules/md5 (Files): Add m4/uint32_t.m4.
64303         * modules/sha1: Renamed from modules/sha.
64304         (Files):
64305         Rename lib/sha.h to lib/sha1.h.
64306         Rename lib/sha.c to lib/sha1.c.
64307         Rename m4/sha.m4 to m4/sha1.m4.
64308         (lib_SOURCES): Likewise.
64309         (configure.ac): Rename gl_SHA to gl_SHA1.
64310         (Include): sha.h -> sha1.h.
64311
64312 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64313
64314         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64315         * m4/sha1.m4: Renamed from sha.m4.
64316         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64317
64318 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * lib/obstack.h (obstack_empty_p):
64321         Don't assume that chunk->contents is suitably aligned.
64322         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64323         Likewise. Problem reported by Benno in
64324         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64325
64326         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64327         readable.  This could be improved further but it'd take some work.
64328
64329 2004-08-08  Simon Josefsson  <jas@extundo.com>
64330
64331         * modules/xgethostname (Depends-on): Remove exit and error (not
64332         used).
64333
64334         * modules/getpass-gnu: Add getpass.h.
64335         (Depends-on): Add stdbool.
64336         * modules/getpass: Add getpass.h.
64337
64338 2004-08-08  Simon Josefsson  <jas@extundo.com>
64339
64340         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64341         Check getpass declaration.
64342
64343 2004-08-08  Simon Josefsson  <jas@extundo.com>
64344
64345         * lib/xgethostname.c: Don't include error.h (not used).
64346
64347         * lib/getpass.h: Add.
64348         * lib/getpass.c: Include getpass.h first.
64349
64350 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * lib/xalloc-die.c: New file.
64353         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64354         All uses removed.
64355         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64356         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64357         xalloc-die.c.
64358         (_, N_, xalloc_die): Move to xalloc-die.c.
64359         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64360         so that we needn't mess with xalloc_msg_memory_exhausted.
64361
64362         * lib/sha1.h: Renamed from sha.h.
64363         (SHA1_H): Renamed from _SHA_H.
64364         (sha1_ctx): Renamed from sha_ctx.
64365         (sha1_init_ctx): Renamed from sha_init_ctx.
64366         (sha1_process_block): Renamed from sha_process_block.
64367         (sha1_process_bytes): Renamed from sha_process_bytes.
64368         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64369         (sha1_read_ctx): Renamed from sha_read_ctx.
64370         (sha1_stream): Renamed from sha_stream.
64371         (sha1_buffer): Renamed from sha_buffer.
64372         * lib/sha1.c: Likewise; renamed from sha.c.
64373         Do not include <sys/types.h>.
64374         Include <stddef.h> rather than <stdlib.h>.
64375
64376 2004-08-08  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64379         FILESYSTEM_PREFIX_LEN.
64380         * lib/progreloc.c: Likewise.
64381         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64382
64383 2004-08-06  Simon Josefsson  <jas@extundo.com>
64384
64385         * modules/progname (Depends-on): Don't depend on stdbool.
64386
64387 2004-08-06  Simon Josefsson  <jas@extundo.com>
64388
64389         * modules/getsubopt: New file.
64390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64391         getsubopt.
64392
64393 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64394
64395         More merge from coreutils.
64396
64397         * m4/utimens.m4, m4/utimecmp.m4: New files.
64398         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64399         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64400         prereq.m4, sha.m4: Import changes from coreutils.
64401
64402 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64403
64404         More merge from coreutils.
64405         * modules/raise, modules/readtokens0, modules/utimens:
64406         * modules/utimecmp, module/xnanosleep: New files.
64407         * modules/strftime: Add lib/strftime.h.
64408         Change include from <time.h> to "strftime.h".
64409         * modules/yesno: Add lib/yesno.h.
64410         * modules/backupfile: Remove lib/addext.c.
64411         * modules/euidaccess: Add stat-macros.h.
64412         * modules/canonicalize, modules/euidaccess,
64413         modules/filemode, modules/lchown, modules/makepath,
64414         modules/rmdir, modules/stat: Likewise.
64415
64416 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64417
64418         Merge from tar.
64419         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64420         SIZE_MAX is a valid preprocessor constant.
64421         (__argp_basename): Change from "#ifndef _LIBC"
64422         to "#ifndef __argp_short_program_name", so that
64423         we don't compile these functions for tar.
64424
64425         More merges from coreutils.
64426         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64427         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64428         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64429         * lib/addext.c: Remove; no longer needed.
64430         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64431         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64432         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64433         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64434         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64435         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64436         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64437         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64438         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64439         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64440         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64441         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64442         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64443         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64444         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64445         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64446         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64447         Import changes from coreutils.
64448
64449 2004-08-05  Simon Josefsson  <jas@extundo.com>
64450
64451         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64452
64453 2004-08-05  Simon Josefsson  <jas@extundo.com>
64454
64455         * m4/getsubopt.m4: New file.
64456
64457 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64458
64459         Merge from coreutils.
64460
64461         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64462         * m4/getcwd-path-max.m4: New files.
64463
64464         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64465         FILESYSTEM_PREFIX_LEN ->
64466         FILE_SYSTEM_PREFIX_LEN.
64467         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64468         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64469         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64470         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64471
64472         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64473         prerequisite modules now handle the DOS stuff.
64474         Don't check for unistd.h.
64475
64476 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         Merge from coreutils.
64479
64480         * lib/.gdb-history: Remove; this doesn't belong here.
64481
64482         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64483         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64484         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64485         * lib/getcwd.c: New files.
64486
64487         * lib/dirname.h: Include <stdbool.h>.
64488         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64489         for consistency with POSIX terminology.  All uses changed.
64490         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64491         (strip_trailing_slashes): Use bool for booleans.
64492         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64493
64494         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64495         sometimes returns a positive errno value even when it succeeds.
64496         (print_errno_message) [!LIBC]: Fall back on strerror if
64497         __strerror_r fails.
64498
64499         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64500         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64501         (longest_relative_suffix): New function.
64502         (path_concat): Use it.  Assume first argument is not NULL.
64503         Port to DOS.  Omit redundant separators.
64504         Report an error instead of returning NULL.
64505         Use mempcpy instead of memcpy.
64506         (xpath_concat): Remove: not declared or used.
64507
64508         * lib/same.h: Include <stdbool.h>
64509         (same_name): Return bool, not int.
64510         * lib/same.c (same_name): Likewise.
64511         (errno): Don't declare; we assume C89 or better now.
64512
64513         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64514         if not already defined.
64515
64516         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64517         * lib/dup-safer.c (errno): Likewise.
64518
64519 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64520
64521         Merge from coreutils.
64522         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64523         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64524         * modules/path-concat: Don't depend on strdup.
64525
64526 2004-08-03  Simon Josefsson  <jas@extundo.com>
64527
64528         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64529         * lib/progname.h: Don't include stdbool.h.
64530
64531 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64534         * MODULES.html.sh (func_all_modules): Remove fatal.
64535
64536 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64539
64540 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64543         working.
64544
64545 2004-08-02  Simon Josefsson  <jas@extundo.com>
64546
64547         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64548         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64549         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64550
64551 2004-08-01  Simon Josefsson  <jas@extundo.com>
64552
64553         * lib/xgetdomainname.c: Include stdlib.h, for free().
64554
64555 2004-07-19  Bruno Haible  <bruno@clisp.org>
64556
64557         * MODULES.html.sh (func_all_modules): Add dummy.
64558
64559 2004-07-16  Simon Josefsson  <jas@extundo.com>
64560
64561         * modules/dummy: New file.
64562
64563 2004-07-16  Simon Josefsson  <jas@extundo.com>
64564
64565         * lib/dummy.c: New file.
64566
64567 2004-07-16  Bruno Haible  <bruno@clisp.org>
64568
64569         * lib/backupfile.h: Add extern "C" for C++.
64570         * lib/closeout.h: Likewise.
64571         * lib/copy-file.h: Likewise.
64572         * lib/findprog.h: Likewise.
64573         * lib/full-write.h: Likewise.
64574         * lib/pathname.h: Likewise.
64575         * lib/progname.h: Likewise.
64576         * lib/stpcpy.h: Likewise.
64577         * lib/stpncpy.h: Likewise.
64578         * lib/strcase.h: Likewise.
64579         * lib/strstr.h: Likewise.
64580         * lib/xalloc.h: Likewise.
64581
64582         * lib/mbswidth.h: Add extern "C" for C++.
64583         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64584
64585 2004-07-13  Robert Millan  <robertmh@gnu.org>
64586
64587         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64588
64589 2004-07-09  Simon Josefsson  <jas@extundo.com>
64590
64591         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64592         failed without this.)
64593
64594 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         * modules/chown (Files): Add lib/fchown-stub.c, since
64597         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64598
64599 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * lib/fchown-stub.c: New file.
64602
64603 2004-06-24  Jim Meyering  <jim@meyering.net>
64604
64605         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64606
64607 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         * modules/argz: Omit "#include".
64610
64611         * MODULES.html.sh (func_all_modules): Add calloc, to match
64612         2004-06-01 addition of calloc module.
64613
64614 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * m4/argz.m4: New file, which is autoupdated from libtool.
64617
64618 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64621         libtool.
64622
64623 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * config/srclist-update: Don't insist on "USA." before the
64626         close-comment, as libtool omits the period and puts the */ on a
64627         separate line.
64628         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64629         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64630
64631 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64632
64633         * modules/argz: New file.
64634         * MODULES.html.sh (func_all_modules): Add argz.
64635
64636 2004-06-12  Jim Meyering  <jim@meyering.net>
64637         and  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * modules/hash (Files): Add lib/xalloc.h.
64640         * modules/pipe (Depends-on): Add wait-process.
64641         * modules/stat (Depends-on): Add xalloc.
64642         * modules/userspec (Files): Add lib/userspec.h.
64643         * modules/xstrto
64644
64645         Upgrade from gettext-0.13.
64646         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64647         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64648         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64649
64650 2004-06-10  Jim Meyering  <jim@meyering.net>
64651
64652         * lib/calloc.c: New file.
64653
64654 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * lib/getdate.y (yylex): Allow space between sign and number.
64657         Problem reported by Dan Jacobson.
64658
64659 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         Merge from coreutils CVS.
64662
64663         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64664         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64665         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64666         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64667         xstrtol.m4: Fix copyright date and/or serial number.
64668
64669         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64670         See if we need an fchown replacement.
64671         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64672         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64673         and use the replacement function if we detect either defect.
64674
64675         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64676         gl_UTIMECMP.
64677
64678 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64679         and  Jim Meyering  <jim@meyering.net>
64680
64681         Merge from coreutils CVS.
64682
64683         * lib/stat-macros.h: New file, with contents from file-type.h
64684         and coreutils' system.h.
64685         * lib/file-type.c: Include "stat-macros.h".
64686         * lib/file-type.h (file_type): Move all macro definitions to new file,
64687         stat-macros.h.
64688
64689         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64690         Wrap old code with this conditional.
64691         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64692         function that does not dereference symlinks.
64693         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64694
64695         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64696         dependency problems.
64697         (xreadlink): Accept new arg SIZE, for efficiency.
64698         All decls and uses changed.
64699         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64700
64701         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64702         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64703
64704         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64705         sysexits.h.
64706
64707 2004-06-01  Jim Meyering  <jim@meyering.net>
64708
64709         * m4/calloc.m4: New file.
64710
64711 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64714         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64715         Also, fix a typo in a diagnostic.
64716
64717 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64720         or AC_FUNC_REALLOC.
64721
64722 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64725         macros to be defined.
64726         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64727         the allocator returns NULL because the requested size is zero.
64728
64729 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64730
64731         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64732         var.  Add comment explaining why libc still defines it.  This
64733         merges the following patch from glibc:
64734         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64735
64736 2004-05-20  Andreas Schwab  <schwab@suse.de>
64737
64738         * m4/free.m4: Replace free if it not known to work, not the other
64739         way round.
64740
64741 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64744         present in glibc since revision 1.1 of this file.
64745         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64746         obstack_alignment_mask, obstack_alloc, obstack_base,
64747         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64748         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64749         obstack_grow0, obstack_init, obstack_int_grow,
64750         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64751         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64752         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64753         nonexistent functions.
64754
64755 2004-05-18  Karl Berry  <karl@gnu.org>
64756
64757         * config/srclist.txt: break link for vasnprintf.c.
64758
64759 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64760
64761         Port obstack to the AS/400, where pointers are 16 bytes wide and
64762         you cannot cast an integer to a valid pointer.  This patch is
64763         currently waiting to be integrated into glibc; see
64764         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64765
64766         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64767         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64768         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64769         (struct obstack): temp member is now a union of a pointer and
64770         an integer, instead of an integer.  All integer uses changed.
64771         This does not affect the physical layout of struct obstack,
64772         except on hosts (like the AS/400) where the size or alignment of
64773         void * is greater than that of ptrdiff_t.
64774         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64775         __STDC__)]: Store temporary in pointer member of union, not
64776         integer member.
64777         * lib/obstack.c: Include <stddef.h>, for offsetof.
64778         (struct fooalign): Remove; it doesn't need a name.
64779         (union fooround): Change double to long double, and add void *.
64780         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64781         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64782         not a macro.  Hence the values are always int; so remove all
64783         casts-to-int in uses.
64784
64785 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64786
64787         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64788         we can get this patch merged into glibc.
64789
64790 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64791             Paul Eggert  <eggert@cs.ucla.edu>
64792
64793         * m4/argp: Depend on alloca.
64794
64795 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64796             Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64799         freecoding.
64800
64801 2004-05-17  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64804         precision that consists of a '.' followed by an empty digit string.
64805         Patch by Tor Lillqvist <tml@iki.fi>.
64806
64807 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64810         for backward compatibility with older code.  We need our own
64811         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64812         it under some other name, and our alloca.h will define it.
64813
64814 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64815             Derek Price  <derek@ximbiot.com>
64816
64817         * lib/alloca.c: Include <alloca.h>, to get our interface.
64818         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64819         include <alloca.h> first.  Use C89 prototype for alloca; this
64820         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64821         Use #elif for simplicity, since we can assume C89 now.
64822         Don't try to source the system alloca.h since it will not be found
64823         and to prevent recursively including its replacement.
64824         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64825         * lib/regex.c: Likewise.
64826
64827 2004-05-16  Derek Price  <derek@ximbiot.com>
64828             Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         getline cleanup.  This changes the getndelim2 API: both order of
64831         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64832         no delimiter).
64833
64834         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64835         interface does that.
64836         (getline): Always use getdelim, so that we don't have two
64837         copies of this code.
64838         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64839         if available.
64840         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64841         (GETNDELIM2_MAXIMUM): New macro.
64842         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64843         instead of the old practice of delim2==0.  All callers changed.
64844         Return -1 on overflow, instead of returning junk.
64845         Do not set *linesize unless allocation succeeds.
64846         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64847         that we include sys/types.h.
64848         * lib/getnline.h: Likewise.
64849         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64850         (getndelim2): Reorder arguments.
64851         * lib/getnline.c (getnline, getndelim):
64852         Don't discard the NMAX argument.
64853         (getnline): Invoke getndelim, to avoid code duplication.
64854         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64855         of (size_t) -1 by callers of the getnline family.
64856
64857 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64858
64859         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64860         Check for gettimeofday.
64861         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64862         Check for settimeofday, stime.
64863
64864 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64865
64866         * lib/nanosleep.c (suspended): Change its type from int to
64867         sig_atomic_t volatile.
64868         (first_call): Make it private to rpl_nanosleep, and have it
64869         be zero initially as that's a bit faster.
64870         (my_usleep): Round up fractional times instead of truncating them,
64871         as this is the usual meaning for 'sleep'.
64872
64873         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64874         doesn't work.
64875         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64876         (ENOSYS): Define if not defined.
64877         (settime): Fall back on stime if it exists and settimeofday fails.
64878         But don't bother with fallbacks if a method fails with errno == EPERM.
64879
64880 2004-05-11  Jim Meyering  <jim@meyering.net>
64881
64882         Prior to this change, the save_cwd caller required read access to the
64883         current directory on most systems (ones with the fchdir function).
64884
64885         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64886         fails, try write-only, and finally, resort to using xgetcwd.
64887
64888 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         * lib/obstack.c, obstack.h: Import changes from libc.
64891
64892 2004-04-28  Bruno Haible  <bruno@clisp.org>
64893
64894         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64895         also implicitly appends .exe to executables.
64896         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64897         accepts Windows pathnames.
64898         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64899         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64900         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64901         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64902         Reported by Derek Robert Price <derek@ximbiot.com>.
64903
64904 2004-04-21  Karl Berry  <karl@gnu.org>
64905
64906         * config/srclist.txt (localcharset.c): break sync.
64907
64908 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64909
64910         * m4/host-os.m4: Add a copyright notice.
64911
64912 2004-04-20  Jim Meyering  <jim@meyering.net>
64913
64914         Change UTILS_ to gl_ in AC_DEFINE'd names.
64915         Change utils_- and jm_-prefixed variables, too.
64916         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64917         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64919
64920         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64921         Don't emit trailing blanks.
64922         Also rename jm_-prefixed variables to have gl_ prefix.
64923
64924         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64925         Also rename jm_-prefixed variables to have gl_ prefix.
64926
64927         * m4/jm-macros.m4: Reflect the renamings.
64928         * m4/prereq.m4: Likewise.
64929
64930 2004-04-20  Jim Meyering  <jim@meyering.net>
64931
64932         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64933         memory.
64934
64935 2004-04-20  Jim Meyering  <jim@meyering.net>
64936             Bruno Haible  <bruno@clisp.org>
64937
64938         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64939         memory when realloc fails.
64940
64941 2004-04-19  Jim Meyering  <jim@meyering.net>
64942
64943         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64944         now that readutmp.c may call `free (0)'.
64945
64946 2004-04-19  Bruno Haible  <bruno@clisp.org>
64947
64948         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64949         * m4/inttypes_h.m4: Likewise.
64950         * m4/stdint_h.m4: Likewise.
64951         * m4/intmax_t.m4: Likewise.
64952         * m4/uintmax_t.m4: Likewise.
64953
64954 2004-04-18  Jim Meyering  <jim@meyering.net>
64955
64956         * m4/prereq.m4: Don't forbid jm_ prefix.
64957
64958         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64959         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64960         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64961         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64962         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64963         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64964         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64965         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64966         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64967         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64968         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64969         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64970         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64971         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64972         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64973         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64974         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64975         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64976         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64977
64978 2004-04-18  Jim Meyering  <jim@meyering.net>
64979
64980         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64981         failure, don't leak memory and do call END_UTMP_ENT.
64982
64983 2004-04-16  Jim Meyering  <jim@meyering.net>
64984
64985         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64986         coreutils' stat program.
64987         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64988
64989 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64990
64991         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64992         C89.
64993         (CHAR_BIT): Remove, since we assume C89.
64994         Include <stdint.h> if available, as per current Autoconf CVS advice.
64995
64996 2004-03-31  Jim Meyering  <jim@meyering.net>
64997
64998         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64999         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65000         * m4/xalloc.m4: Likewise.
65001
65002 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65003
65004         Merge from coreutils.
65005
65006         * m4/inttostr.m4: New file.
65007         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65008         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65009         Require gl_CLOCK_TIME.
65010         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65011
65012 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65013
65014         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65015         not bool, to be more consistent with Unix conventions.
65016         Suggested by Bruno Haible.
65017
65018         Merge from coreutils.
65019
65020         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65021         * lib/umaxtostr.c: New files.
65022
65023         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65024         the usual <time.h> dance.
65025         (get_date): Change signature to support fractional time stamps.
65026         All callers changed.
65027         * lib/getdate.y: Include "getdate.h" first, as we can now
65028         assume C89 and don't need to worry about 'const'.
65029         Similarly, include "unlocked-io.h" near start, not in middle.
65030         Include <limits.h>.
65031         (textint.value): Use long int rather than int.
65032         (textint.digits): Use size_t rather than int.
65033         (BILLION, LOG10_BILLION): New constants.
65034         (parser_control): New member rel_ns.  Members day_ordinal,
65035         time_zone, month, day, hour, minutes, rel_year, rel_month,
65036         rel_day, rel_hour, rel_minutes, rel_seconds
65037         are now long int, not int.  Member seconds is now struct timespec,
65038         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65039         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65040         not int.
65041         (%union.intval): Now long int, not int.
65042         New member timespec.
65043         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65044         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65045         (spec): Now is a timespec or an item list.
65046         (timespec, items): New nonterminals.
65047         (time, rel, relunit, number, get_date):
65048         Add support for fractional seconds.
65049         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65050         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65051         (to_hour): First arg is now long int, not int.
65052         (to_year): Returns long int, not int.
65053         Don't treat year -70 like 70.
65054         (tm_diff): Returns long int, not int.
65055         (lookup_word): Use bool instead of int when appropriate.
65056         (yylex): Use size_t for count, not int.
65057         Detect overflow when parsing large integer constants.
65058         Add support for fractions.
65059         (get_date): Make pointers 'const' if possible.
65060         Use more-portable code to detect integer overflow.
65061         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65062         Don't use ctime; it's not reliable if the year has >4 digits.
65063
65064         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65065         This is for compatibility with BSD.
65066
65067         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65068         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65069         From coreutils' system.h.
65070
65071         * lib/userspec.c: Don't include "posixver.h".
65072         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65073         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65074         compatible extension.  Simplify code by removing a boolean int
65075         that was always nonzero if a string was nonnull.
65076
65077 2004-03-30  Jim Meyering  <jim@meyering.net>
65078
65079         Merge from coreutils.
65080
65081         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65082         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65083         on some systems one must include <grp.h> before it.
65084         Reported by Christian Krackowizer.
65085
65086 2004-03-30  Jim Meyering  <jim@meyering.net>
65087
65088         Merge from coreutils.
65089
65090         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65091
65092         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65093         an empty input stream.
65094
65095         * lib/readtokens.c: Include <stdbool.h>.
65096         (readtoken): Use `size_t' rather than int/long.
65097         All callers adjusted.
65098         Use `bool' rather than `int' where appropriate.
65099         Use memset rather than an explicit loop.
65100         Use x2nrealloc rather than xrealloc.
65101         Allow the use of `\0' as a delimiter.
65102         (readtokens): Likewise.
65103         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65104
65105 2004-03-30  Jim Meyering  <jim@meyering.net>
65106
65107         * m4/realloc.m4: Remove file, since now it does no more than
65108         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65109         the `configure.ac' section of module/realloc.
65110         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65111
65112 2004-03-30  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65115         nonnull.
65116
65117 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65118
65119         Merge changes to getloadavg.c from coreutils and Emacs.
65120
65121         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65122         Define to an expression, not to the empty string.
65123         Include cloexec.h and xalloc.h.
65124         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65125         Use set_cloexec_flag rather than rolling our own.
65126         * lib/cloexec.c, lib/cloexec.h: New files.
65127
65128 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65129
65130         * m4/cloexec.m4: New file.
65131
65132 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65133
65134         * lib/getopt.h: Sync with libc CVS.
65135
65136 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65137             Bruno Haible  <bruno@clisp.org>
65138
65139         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65140         mbswidth.
65141
65142 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65143             Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/mbswidth.h: Include <wchar.h> only if
65146         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65147         <wchar.h>.
65148         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65149
65150 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65151
65152         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65153         Sync with libc CVS.
65154         * lib/getopt_int.h: New file, also synced from libc.
65155
65156 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65157
65158         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65159         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65160         Bring back getopt.c, getopt.h, getopt1.c.
65161
65162 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65163
65164         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65165         All uses changed.  Check for sa_sigaction member; this fixes
65166         a bug first reported by Jason Andrade in
65167         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65168
65169 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65170
65171         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65172         '#if' expressions.  Unlike the code it replaces, it does not
65173         depend on (defined _SC_PAGESIZE).  However, it does depend on
65174         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65175         first reported by Jason Andrade in
65176         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65177
65178 2004-02-25  Simon Josefsson  <jas@extundo.com>
65179
65180         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65181
65182 2004-02-25  Simon Josefsson  <jas@extundo.com>
65183
65184         * lib/strdup.h: New file.
65185         * lib/strdup.c: Include it.
65186         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65187         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65188
65189 2004-02-23  Karl Berry  <karl@gnu.org>
65190
65191         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65192         (from fencepost.gnu.org:/gd/gnuorg).
65193
65194 2004-02-23  Karl Berry  <karl@gnu.org>
65195
65196         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65197         * config/srclist.txt: add maintain/standards documents.
65198
65199 2004-02-18  Bruno Haible  <bruno@clisp.org>
65200
65201         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65202         Reported by Derek Robert Price <derek@ximbiot.com>.
65203
65204 2004-02-16  Karl Berry  <karl@gnu.org>
65205
65206         * config/mkinstalldirs, install-sh: update from automake.
65207
65208 2004-02-06  Karl Berry  <karl@gnu.org>
65209
65210         * m4/po.m4: update from gettext 0.14.1.
65211
65212 2004-02-06  Karl Berry  <karl@gnu.org>
65213
65214         * lib/config.charset: update from gettext 0.14.1.
65215
65216 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65217
65218         Add comments and code, prompted by suggestions from Bruno Haible
65219         for sh-quote.
65220         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65221         describing the enum quoting_style values.
65222         * lib/quotearg.c (quotearg_alloc): New function.
65223         (quotearg_buffer_restyled): Treat lone { and } as special.
65224         Treat = as special.  Work around bug with older shells
65225         that "see" a '\' that is really the 2nd byte of a multibyte char.
65226         Quote empty string with shell_quoting_style.
65227
65228 2004-02-03  Bruno Haible  <bruno@clisp.org>
65229
65230         * m4/pipe.m4: New file, from GNU gettext.
65231
65232 2004-02-03  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/pipe.h: New file, from GNU gettext.
65235         * lib/pipe.c: New file, from GNU gettext.
65236
65237 2004-01-27  Bruno Haible  <bruno@clisp.org>
65238
65239         * m4/execute.m4: New file, from GNU gettext.
65240
65241 2004-01-27  Bruno Haible  <bruno@clisp.org>
65242
65243         * lib/execute.h: New file, from GNU gettext.
65244         * lib/execute.c: New file, from GNU gettext.
65245         * lib/w32spawn.h: New file, from GNU gettext.
65246
65247 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65248
65249         Merge from diffutils.
65250
65251         * lib/file-type.c (file_type): Add typed memory objects.
65252         * lib/file-type.h (S_TYPEISTMO): New macro.
65253
65254         * lib/c-stack.h (c_stack_action): Remove argv argument.
65255         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65256         (die): Don't calculate message unless segv_action returns.
65257         (get_stack_location, min_address_from_argv, max_address_from_argv,
65258         volatile stack_base, volatile_stack_size): Remove.
65259         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65260         that every segmentation violation is a stack overflow.  (Ouch!)
65261         See Debian bug 136249 (still outstanding) for more info about why
65262         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65263
65264 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65265
65266         Exit-status fix from coreutils.
65267
65268         Use exit_failure consistently in place of EXIT_FAILURE,
65269         so that program exit statuses are consistent on failure.
65270
65271         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65272         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65273         * lib/argmatch.h: Comment fix to match the above.
65274         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65275         Now a macro referring to exit_failure, instead of a separate
65276         variable.  Include "exitfail.h" to get it.
65277         * lib/xstrtol.h: Include "exitfail.h".
65278         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65279
65280         * lib/long-options.c (parse_long_options): Use prototype
65281         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65282         for clarity.
65283
65284 2004-01-21  Jim Meyering  <jim@meyering.net>
65285
65286         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65287         so as not to conflict with a different-sized __mktime_internal
65288         function in GNU libc.
65289         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65290         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65291
65292 2004-01-20  Karl Berry  <karl@gnu.org>
65293
65294         * config/config.guess: update from config.
65295
65296         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65297
65298 2004-01-20  Bruno Haible  <bruno@clisp.org>
65299
65300         Safer stack allocation.
65301         * lib/setenv.c: Include allocsa.h.
65302         (alloca): Remove fallback definition.
65303         (freea): Remove macro.
65304         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65305         instead of freea.
65306
65307 2004-01-20  Bruno Haible  <bruno@clisp.org>
65308
65309         * m4/eealloc.m4: New file, from GNU gettext.
65310
65311 2004-01-20  Bruno Haible  <bruno@clisp.org>
65312
65313         * m4/allocsa.m4: New file, from GNU gettext.
65314
65315 2004-01-20  Bruno Haible  <bruno@clisp.org>
65316
65317         * lib/xallocsa.h: New file, from GNU gettext.
65318         * lib/xallocsa.c: New file, from GNU gettext.
65319
65320 2004-01-20  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65323
65324 2004-01-20  Bruno Haible  <bruno@clisp.org>
65325
65326         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65327         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65328         specially.
65329
65330 2004-01-20  Bruno Haible  <bruno@clisp.org>
65331
65332         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65333         patch.
65334
65335 2004-01-20  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65338
65339 2004-01-20  Bruno Haible  <bruno@clisp.org>
65340
65341         * lib/eealloc.h: New file.
65342
65343 2004-01-20  Bruno Haible  <bruno@clisp.org>
65344
65345         * lib/binary-io.h: Avoid warnings on Cygwin.
65346
65347 2004-01-20  Bruno Haible  <bruno@clisp.org>
65348
65349         * lib/allocsa.h: New file, from GNU gettext.
65350         * lib/allocsa.c: New file, from GNU gettext.
65351
65352 2004-01-18  Karl Berry  <karl@gnu.org>
65353
65354         * doc/gpl.texi, doc/lgpl.texi: new files.
65355
65356 2004-01-18  Karl Berry  <karl@gnu.org>
65357
65358         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65359         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65360
65361 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65362
65363         Merge from coreutils.
65364
65365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65366         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65367         (gl_DEFAULT_POSIX2_VERSION): Move
65368         the documentation from 'configure' into 'config.hin',
65369         so that 'configure --help' isn't burdened by it and
65370         we don't have to worry about its formatting there.
65371         Reword the documentation so that it's more succinct
65372         and can be run together into a single paragraph.
65373         * m4/same.m4 (gl_SAME): Check for pathconf.
65374
65375 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65376
65377         Merge from coreutils.
65378
65379         * lib/posixver.c: Include posixver.h.
65380
65381         * lib/same.c: Include <stdbool.h>, <limits.h>.
65382         (_POSIX_NAME_MAX): Define if not defined.
65383         (MIN): New macro.
65384         (same_name): If file names are silently truncated, report
65385         that the file names are the same if they are the same after
65386         the silent truncation.
65387
65388         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65389         conversion function.
65390         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65391         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65392         longer needed.
65393
65394 2004-01-15  Jim Meyering  <jim@meyering.net>
65395
65396         Merge from coreutils.
65397
65398         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65399         if no library is required.
65400         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65401         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65402         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65403         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65404         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65405         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65406         value, $ac_cv_search_crypt, if it's "none required".
65407         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65408         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65409         not gl_FUNC_GETLOADAVG.
65410         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65411         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65412
65413 2004-01-15  Jim Meyering  <jim@meyering.net>
65414
65415         Merge from coreutils.
65416
65417         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65418         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65419         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65420
65421         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65422         optional configure-time default.
65423
65424         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65425
65426         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65427
65428 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65429
65430         Merge from coreutils.
65431
65432         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65433         value, $ac_cv_search_nanosleep, if it's "none required".
65434
65435 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65436
65437         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65438         with like-named macro in fnmatch.c.
65439         (EXT): Use an internal constant instead.
65440
65441         Merge fnmatch patches from glibc.
65442         * lib/fnmatch.c (mbsinit): Remove define.
65443         Add libc_hidden_ver (__fnmatch, fnmatch).
65444         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65445         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65446
65447 2004-01-14  Karl Berry  <karl@gnu.org>
65448
65449         * config/install-sh: update from automake.
65450
65451 2004-01-13  Karl Berry  <karl@gnu.org>
65452
65453         * config/install-sh: update from automake.
65454
65455 2004-01-09  Karl Berry  <karl@gnu.org>
65456
65457         * config/install-sh: update from automake.
65458
65459 2004-01-05  Karl Berry  <karl@gnu.org>
65460
65461         * config/config.{sub,guess}: update from config.
65462
65463 2003-12-31  Karl Berry  <karl@gnu.org>
65464
65465         * config/depcomp: update from automake.
65466
65467 2003-12-14  Karl Berry  <karl@gnu.org>
65468
65469         * lib/config.charset: update from gettext-runtime.
65470
65471 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65472
65473         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65474         Bug reported by Alfred M. Szmidt.
65475
65476 2003-12-03  Bruno Haible  <bruno@clisp.org>
65477
65478         * m4/gettext.m4: Upgrade from gettext-0.13.
65479         * m4/po.m4: Upgrade from gettext-0.13.
65480         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65481         * m4/intmax.m4: New file, from gettext-0.13.
65482         * m4/printf-posix.m4: New file, from gettext-0.13.
65483
65484 2003-11-29  Karl Berry  <karl@gnu.org>
65485
65486         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65487
65488 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65489             Bruno Haible  <bruno@clisp.org>
65490
65491         * lib/printf-parse.h: Don't include sys/types.h.
65492         (ARG_NONE): New macro.
65493         (char_directive): Change type of *arg_index fields to size_t.
65494         * lib/printf-parse.c: Don't include sys/types.h.
65495         (SSIZE_MAX): Remove macro.
65496         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65497         Remove unnecessary overflow check.
65498         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65499         fields.
65500
65501 2003-11-25  Bruno Haible  <bruno@clisp.org>
65502
65503         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65504
65505 2003-11-25  Bruno Haible  <bruno@clisp.org>
65506
65507         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65508         gt_TYPE_SSIZE_T.
65509
65510 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65511
65512         * modules/alloca: Remove dependency on xalloc.
65513
65514 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65515
65516         * lib/alloca.c: Remove dependency on xalloc module.
65517         (xalloc_die): Remove.
65518         (memory_full) [!defined emacs]: New macro.
65519         [!defined emacs]: Don't include xalloc.h.
65520         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65521         address arithmetic overflows.  Change datatypes a bit to avoid
65522         unnecessary casts.
65523
65524 2003-11-22  Jim Meyering  <jim@meyering.net>
65525
65526         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65527         s/size/size_t/.
65528
65529 2003-11-21  Karl Berry  <karl@gnu.org>
65530
65531         * config/config.{sub,guess}: update from config.
65532
65533 2003-11-18  Karl Berry  <karl@gnu.org>
65534
65535         * config/config.{sub,guess}: update from config.
65536
65537         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65538
65539 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65540
65541         * README: Mention that S+T cannot overflow if S is the size of
65542         an existing object and T is sufficiently small.
65543
65544 2003-11-17  Jim Meyering  <jim@meyering.net>
65545
65546         On systems without utime and without a utimes function capable of
65547         dealing with a NULL struct utimbuf* argument, this utime replacement
65548         could -- in unusual circumstances -- leak a file descriptor.
65549         * lib/utime.c: Include <unistd.h> and <errno.h>.
65550         (utime_null): Be sure to close `fd' and to preserve errno.
65551         Reported by Geoff Collyer via Arnold Robbins.
65552
65553 2003-11-17  Bruno Haible  <bruno@clisp.org>
65554
65555         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65556         (Depends-on): Add xsize.
65557
65558 2003-11-17  Bruno Haible  <bruno@clisp.org>
65559
65560         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65561
65562 2003-11-17  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/vasnprintf.c (alloca): Remove fallback definition.
65565         (freea): Remove definition.
65566         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65567         Reported by Paul Eggert.
65568
65569 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65570             Bruno Haible  <bruno@clisp.org>
65571
65572         Protect against address arithmetic overflow.
65573         * lib/printf-args.h: Include stddef.h.
65574         (arguments): Change type of field 'count' to size_t.
65575         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65576         'unsigned int' where appropriate.
65577         * lib/printf-parse.h: Include sys/types.h.
65578         (char_directive): Change type of *arg_index fields to ssize_t.
65579         (char_directives): Change type of fields 'count', max_*_length to
65580         size_t.
65581         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65582         (SSIZE_MAX): Define fallback value.
65583         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65584         instead of 'int' where appropriate. Check a_allocated, d_allocated
65585         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65586         * lib/vasnprintf.c: Include xsize.h.
65587         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65588         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65589         overflow. Avoid wraparound when converting a width or precision from
65590         decimal to binary.
65591
65592 2003-11-16  Bruno Haible  <bruno@clisp.org>
65593
65594         Update from GNU gettext.
65595         * lib/printf-parse.c: Generalize to it can be compiled for wide
65596         strings.
65597         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65598         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65599         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65600         SNPRINTF): New macros.
65601         Don't include <alloca.h> if the file is used inside libintl.
65602         (local_wcslen): New function, for Solaris 2.5.1.
65603         (VASNPRINTF): Use it instead of wcslen.
65604
65605 2003-11-16  Bruno Haible  <bruno@clisp.org>
65606
65607         * lib/xsize.h (xmax): New function.
65608         (xsum, xsum3, xsum4): Declare as "pure" functions.
65609
65610 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65611
65612         * modules/xalloc (Files): Undo latest change, since xalloc.h
65613         no longer needs SIZE_MAX or PTRDIFF_MAX.
65614
65615 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65616
65617         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65618         gl_PTRDIFF_MAX.
65619
65620 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65621
65622         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65623         "return", to pacify some unknown compiler.  Problem reported
65624         by Joerg Schilling.
65625
65626 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65627
65628         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65629         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65630         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65631         heuristic is just as accurate as far as we know, and it removes a
65632         dependency on size_max.m4 and ptrdiff_max.m4.
65633
65634 2003-11-11  Bruno Haible  <bruno@clisp.org>
65635
65636         * modules/xsize (Files): Add m4/size_max.m4.
65637         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65638
65639 2003-11-11  Bruno Haible  <bruno@clisp.org>
65640
65641         * m4/size_max.m4: New file.
65642         * m4/ptrdiff_max.m4: New file.
65643         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65644         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65645         (gl_XALLOC): Invoke it.
65646
65647 2003-11-11  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65650         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65651         defined.
65652
65653 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65654
65655         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65656         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65657         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65658         From Bruno Haible.
65659         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65660         not (size_t) -1, since it's defined here.
65661
65662 2003-11-09  Karl Berry  <karl@gnu.org>
65663
65664         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65665
65666 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65667
65668         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65669         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65670         Reject sizes of exactly SIZE_MAX bytes.
65671         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65672         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65673
65674 2003-11-05  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65677         SIZE_MAX defined in <limits.h> on Solaris.
65678
65679 2003-11-04  Jim Meyering  <jim@meyering.net>
65680
65681         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65682         variable names, rather than @VAR@.
65683         * modules/poll: Likewise.
65684
65685 2003-11-04  Bruno Haible  <bruno@clisp.org>
65686
65687         * modules/xsize: New file.
65688         * modules/linebreak: Depend on xsize.
65689         * MODULES.html.sh (func_all_modules): Add xsize.
65690
65691 2003-11-04  Bruno Haible  <bruno@clisp.org>
65692
65693         * m4/xsize.m4: New file.
65694
65695 2003-11-04  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/xsize.h: New file.
65698         * lib/linebreak.c: Include xsize.h.
65699         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65700         argument for overflow.
65701         Suggested by Paul Eggert.
65702
65703 2003-11-03  Karl Berry  <karl@gnu.org>
65704
65705         * config/config.{guess,sub}: update from config.
65706
65707 2003-11-03  Jim Meyering  <jim@meyering.net>
65708
65709         * modules/userspec (lib_SOURCES): Add userspec.h.
65710         (Include): Add "userspec.h".
65711         Improve description.
65712
65713 2003-11-03  Jim Meyering  <jim@meyering.net>
65714
65715         * lib/userspec.c: Include "userspec.h".
65716         * lib/userspec.h: New file.
65717
65718 2003-11-03  Bruno Haible  <bruno@clisp.org>
65719
65720         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65721
65722 2003-11-03  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65725         available, to avoid (extremely rare) race condition.
65726         Suggested by Paul Eggert.
65727
65728 2003-11-02  Karl Berry  <karl@gnu.org>
65729
65730         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65731
65732 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65733
65734         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65735         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65736         (read_filesystem_list): Set and use me_type_malloced.
65737         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65738         whatever the type happens to be), for brevity and consistency.
65739         Check for size calculation overflow on Alphas running OSF/1.
65740
65741 2003-10-31  Jim Meyering  <jim@meyering.net>
65742
65743         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65744
65745         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65746
65747 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65748             Bruno Haible  <bruno@clisp.org>
65749
65750         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65751         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65752
65753 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65756         netbsd*-gnu*.  Suggested by Robert Millan.
65757
65758 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65759
65760         * modules/group-member: Depend on stdbool.
65761
65762 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65763
65764         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65765
65766 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65767
65768         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65769         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65770         after the 'gnu' in these cases.  This fixes some bugs in the
65771         previous change, and is based on suggestions by Robert Millan.
65772
65773 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65774
65775         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65776         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65777         no longer needed.
65778         * lib/quotearg.c (quotearg_n_options): Use it.
65779         * lib/group-member.c: Include <stdbool.h>.
65780         (free_group_info): Arg is now const *; don't free arg.
65781         (get_group_info): Now returns bool and accepts struct group_info *,
65782         rather than returning a malloc'ed struct group_info *.
65783         All uses changed.  Check for overflow in internal size calculation.
65784
65785         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65786         rather than xmalloc/xrealloc.
65787         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65788         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65789         conformance bug: the old code used a pointer after freeing the
65790         storage that it addressed.
65791         * lib/hash.c (hash_initialize): Simplify the code by using
65792         xalloc_oversized rather than doing it by hand.
65793         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65794         the buffer preserved.  Use free and xmalloc instead.
65795         * lib/quotearg.c (quotearg_n_options): Likewise.
65796         Use a simpler test for size overflow.  Don't use xalloc_oversized
65797         because unsigned int might be wider than size_t (!); this suggests
65798         that we should switch from unsigned int to size_t for slot numbers.
65799
65800 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65801
65802         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65803         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65804         NetBSD kernels.  Requested by Richard Stallman.
65805
65806 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65807
65808         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65809         to allocate the returned structure.  Do not allocate a subarray,
65810         as x2nrealloc will do that.
65811         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65812         instead of xnrealloc.
65813         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65814
65815 2003-10-27  Bruno Haible  <bruno@clisp.org>
65816
65817         * lib/stdbool_.h: Better support for BeOS.
65818
65819 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65820
65821         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65822         now uses inline.
65823
65824 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65825
65826         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65827         callers that want to do their own size-overflow checking.  Include
65828         <stdbool.h>, since xalloc_oversized returns bool.
65829         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65830         to use xalloc_oversized.
65831
65832         Add two functions x2realloc, x2nrealloc, for programs that grow
65833         arrays dynamically by doubling their sizes.
65834         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65835         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65836         New functions.
65837
65838         Port to C99 semantics for 'inline' of external functions.
65839         Bug reported by Bruno Haible.
65840         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65841         with the old contents of xnmalloc.
65842         (xnmalloc, xmalloc): Use it.
65843         (xnrealloc_inline): New static inline function,
65844         with the old contents of xnrealloc.
65845         (xnrealloc, xrealloc): Use it.
65846
65847         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65848         that.
65849
65850 2003-10-26  Karl Berry  <karl@gnu.org>
65851
65852         * config/srclist.txt (COPYING.DOC): no longer available from
65853         /gd/gnuorg; don't know where the ultimate source is.
65854
65855 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65856
65857         Fix several address-calculation bugs in the hash modules,
65858         plus some minor code cleanup.
65859
65860         * lib/hash.h: Include <stdbool.h>, for bool.
65861         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65862         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65863         hash_get_n_entries, hash_get_max_bucket_length,
65864         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65865         hash_rehash): Use size_t rather than unsigned.
65866         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65867         hash_get_n_buckets_used, hash_get_n_entries,
65868         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65869         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65870         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65871         Likewise.
65872         (SIZE_MAX): Define if not defined.
65873         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65874         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65875         hash_print):
65876         Use const * when possible.
65877         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65878         (check_tuning): Fix bug: if tuning parameters were very close to
65879         0 or 1, rounding errors could have caused subscript violations.
65880         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65881         (hash_initialize): Add 'fail:' label
65882         to free table and return NULL, and use it to simplify code.
65883         Use calloc rather than clearing the storage ourself.
65884         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65885         buffer size calculations.
65886         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65887         Include <stddef.h>, for size_t.
65888         * lib/hash-pjw.c (hash_pjw): Likewise.
65889         Switch to method described by Bruno Haible.
65890         Include <limits.h>, for CHAR_BIT.
65891         (SIZE_BITS): New macro.
65892
65893 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65894
65895         * m4/getline.m4 (AM_FUNC_GETLINE):
65896         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65897         hosts.  Problem reported by Derek Robert Price in
65898         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65899         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65900         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65901
65902 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65903
65904         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65905         ceiling the allocation at NMAX bytes rather than silently
65906         discarding input bytes before NMAX is reached.  This makes
65907         a difference only if NMAX exceeds SIZE_MAX / 2.
65908
65909         * lib/obstack.c: Merge from glibc.
65910         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65911         Add libc_hidden_def (_obstack_newchunk).
65912         (_obstack_free) [! defined _LIBC]: Remove.
65913         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65914         a clone of the function body.
65915         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65916         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65917
65918         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65919         glibc.
65920         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65921         arg to memcpy.
65922
65923         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65924         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65925         Don't use lvalue casts, as GCC plans to remove support for them
65926         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65927         was also present in the non-GCC version, indicating that this
65928         code had always been buggy and had never been widely used.
65929         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65930         Use the fast variant of each macro, rather than copying the
65931         definiens of the fast variant; that way, we'll be more likely to
65932         catch future bugs in the fast variants.
65933
65934 2003-10-20  Bruno Haible  <bruno@clisp.org>
65935
65936         * modules/wait-process: New file.
65937         * MODULES.html.sh (func_all_modules): Add wait-process.
65938
65939 2003-10-20  Bruno Haible  <bruno@clisp.org>
65940
65941         * m4/wait-process.m4: New file.
65942
65943 2003-10-20  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/wait-process.h: New file, from GNU gettext.
65946         * lib/wait-process.c: New file, from GNU gettext.
65947
65948 2003-10-19  Jim Meyering  <jim@meyering.net>
65949
65950         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65951         HPUX 10.20.
65952
65953 2003-10-18  Karl Berry  <karl@gnu.org>
65954
65955         * config/config.guess: update from config.
65956
65957 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65958
65959         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65960         (getgroups): First arg is int, not size_t.
65961         Don't let 'free' mangle errno.
65962
65963 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65964
65965         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65966
65967 2003-10-16  Karl Berry  <karl@gnu.org>
65968
65969         * config/config.{guess,sub}: update from config.
65970
65971 2003-10-16  Jim Meyering  <jim@meyering.net>
65972
65973         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65974         memcpy.
65975
65976 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65977
65978         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65979         (SIZE_MAX): Remove.
65980         (new_exclude, add_exclude_file): Initial size no longer needs to
65981         be a power of 2.
65982         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65983         our own address arithmetic overflow checking.
65984
65985         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65986         (fnmatch): Do not alloca more than 2000 wide characters;
65987         instead, use malloc for large buffers.
65988         Check for address arithmetic overflow, and return -1
65989         with errno set to ENOMEM in that case.
65990         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65991         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65992         instead, return -1.  Check for address arithmetic overflow.
65993
65994 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65995
65996         Handle invalid suffixes and overflow independently, so that
65997         callers can treat them independently as needed.  Fix some bugs in
65998         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65999         suffix for a human-readable blocksize.  The major caller-visible
66000         change is the addition of a new
66001         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66002         that both overflow and suffix chars were found.
66003
66004         * lib/human.c (humblock): Don't check separately for invalid suffix
66005         char; that is xstrtoumax's job (now that its bug is fixed).
66006         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66007         INTMAX_MAX]: New macros.
66008         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66009         TYPE_MAXIMUM): New macros.
66010         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66011         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66012         if overflow occurs, as it's what __strtol does and it's more useful
66013         in practice.
66014         (__xstrtol): If __strtol reports some error other than ERANGE,
66015         reflect it to the caller as LONGINT_INVALID.  If it reports
66016         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66017         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66018         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66019         value.
66020         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66021         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66022         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66023         [defined UINTMAX_MAX]: New macros.
66024
66025 2003-10-14  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66028
66029 2003-10-14  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/sig_atomic_t: New file, from GNU gettext.
66032         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66033
66034 2003-10-14  Bruno Haible  <bruno@clisp.org>
66035
66036         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66037         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66038         Also use volatile where needed.
66039
66040 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66041
66042         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66043         Change maintainer from Bruno Haible to 'all'.
66044
66045 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66046
66047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66048
66049 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66050
66051         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66052         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66053         and define in terms of the other primitives.
66054         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66055         (SIZE_MAX): Define if not already defined.
66056         (array_size_overflow): New function.
66057         (xalloc_die): Abort instead of exiting if 'error' returns.
66058         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66059         (xmalloc, xrealloc): Use them.
66060         (xcalloc): Check for address arithmetic overflow.
66061         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66062         a bit faster than strcpy.
66063
66064 2003-10-10  Simon Josefsson  <jas@extundo.com>
66065
66066         * modules/argp (Depends-on): Add restrict and strcase.
66067
66068 2003-10-10  Simon Josefsson  <jas@extundo.com>
66069
66070         * m4/argp.m4: Add AC_C_INLINE.
66071
66072 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66073
66074         Merge getpass from libc, plus a few fixes.
66075
66076         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66077         Include <stdbool.h>.
66078         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66079         __fsetlocking to empty.
66080         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66081         do include <bits/libc-lock.h>.
66082         Do not include <fcntl.h>; not needed.
66083         [_LIBC]: Include <wchar.h>.
66084         (NOTCANCEL_MODE): New macro.
66085         (flockfile, funlockfile) [_LIBC]: New macros.
66086         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66087         [!_LIBC]: New macros.
66088         (call_fclose): New function.
66089         (getpass): Use it.  Save tty stream separately; this simplifies the
66090         code and makes it more reliable if stdin happens to equal stdout.
66091         Invoke __fsetlocking on tty.
66092         Handle thread cancellation if needed.
66093         Namespace cleanup (use __tcgetattr, __getline).
66094         Use bool for Booleans.
66095         [USE_IN_LIBIO]: Handle wide streams.
66096         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66097         stream might go where.
66098
66099         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66100         doesn't have to include <stdio.h> before us.
66101         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66102         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66103         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66104         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66105         if not declared, so that we can use getpass.c code from libc without
66106         rewriting it.
66107         (flockfile, ftrylockfile, funlockfile): New macros.
66108
66109 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66110
66111         * modules/getpass: Depend on stdbool.
66112
66113 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66114
66115         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66116
66117 2003-10-07  Karl Berry  <karl@gnu.org>
66118
66119         * config/config.{guess,sub}: update from config.
66120
66121 2003-10-06  Jim Meyering  <jim@meyering.net>
66122             Bruno Haible  <bruno@clisp.org>
66123
66124         This lets translators provide better translations for the
66125         "Written by ..." part of --version output.
66126         * lib/version-etc.h: Include stdarg.h.
66127         (version_etc_copyright): Declare as readonly.
66128         (version_etc): Make this function variadic with a NULL-terminated list
66129         of author name strings.
66130         (version_etc_va): New declaration.
66131         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66132         (version_etc_copyright): Declare as readonly.
66133         (version_etc_va): New function. Provide a different translatable string
66134         for each possible number of authors < 10. Abbreviate when there are 10
66135         authors or more.
66136         (version_etc): Make this function variadic. Call version_etc_va.
66137         Suggestion from Gary V. Vaughan.
66138
66139         * lib/long-options.h (parse_long_options): Change prototype: the
66140         authors string is moved to the end and becomes variadic.
66141         * lib/long-options.c: Include stdarg.h.
66142         (parse_long_options): Make this function variadic, too.
66143         Call version_etc_va, not version_etc.
66144
66145 2003-10-06  Bruno Haible  <bruno@clisp.org>
66146
66147         * modules/version-etc-2: Remove file.
66148         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66149
66150 2003-10-06  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/fatal-signal: New file.
66153         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66154
66155 2003-10-06  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/fatal-signal.m4: New file.
66158         * m4/signalblocking.m4: New file, from GNU gettext.
66159
66160 2003-10-06  Bruno Haible  <bruno@clisp.org>
66161
66162         * lib/version-etc-2.h: Remove file.
66163         * lib/version-etc-2.c: Remove file.
66164
66165 2003-10-06  Bruno Haible  <bruno@clisp.org>
66166
66167         * lib/fatal-signal.h: New file, from GNU gettext.
66168         * lib/fatal-signal.c: New file, from GNU gettext.
66169
66170 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66171
66172         * README: Rework advice for preventing empty .o files.
66173         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66174         not <sys/types.h>.
66175
66176 2003-10-04  Karl Berry  <karl@gnu.org>
66177
66178         * lib/argp*: update from libc.
66179
66180 2003-10-04  Karl Berry  <karl@gnu.org>
66181
66182         * config/config.{guess,sub}: update from config.
66183
66184 2003-10-02  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/lchown (Include): Add lchown.h.
66187         * modules/time_r (Include): Use "..." syntax.
66188         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66189
66190 2003-10-01  Simon Josefsson  <jas@extundo.com>
66191
66192         * MODULES.html.sh (func_all_modules): Move gethostname from section
66193         'based on' to section 'lacking' POSIX:2001.
66194
66195 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66196
66197         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66198         to output mode on the same stream.
66199
66200 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66201
66202         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66203         Fix arg typo in previous patch.
66204
66205 2003-09-28  Jim Meyering  <jim@meyering.net>
66206
66207         * lib/error.c: Correct cpp indentation.
66208
66209 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66210
66211         * modules/free: New file.
66212
66213 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66214
66215         * m4/free.m4: New file.
66216
66217 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66218
66219         * lib/minmax.h (MIN, MAX)
66220         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66221         Omit the special code that used __typeof__, since we worry that
66222         it could be more trouble than it's worth.  See:
66223         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66224         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66225
66226         * lib/free.c: New file.
66227
66228 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66229
66230         Trivial fixes to Makefile.am parts of module listings.
66231         * modules/strstr: Append strstr.h to lib_SOURCES.
66232         * modules/strcase: Likewise, for strcase.h.
66233
66234 2003-09-27  Karl Berry  <karl@gnu.org>
66235
66236         * config/mkinstalldirs: update from automake.
66237
66238 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66239
66240         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66241         (error_tail): Do not loop, reallocating temporary buffer, since
66242         the output cannot contain more wide characters than the input
66243         contains bytes, the size must be big enough already.  This avoids
66244         one potential size overflow calculation.  Check for size overflow
66245         when calculating temporary buffer size.  Free temporary buffer
66246         when done, if it was allocated with malloc; this plugs a memory
66247         leak.  Remove casts from void * to pointers, that are no longer
66248         needed now that we're assuming C89 or better.
66249
66250         Merge error changes from glibc.
66251
66252         * lib/error.c, error.h: Update copyright notice header to match glibc.
66253         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66254         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66255         Disable cancellation while printing error.
66256         * lib/error.h: Prepend __ to parameter names.
66257
66258 2003-09-26  Jim Meyering  <jim@meyering.net>
66259
66260         * lib/error.c (error_tail): Move some declarations
66261         into inner scope where the local variables are used.
66262
66263 2003-09-26  Bruno Haible  <bruno@clisp.org>
66264
66265         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66266         stpncpy().
66267         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66268
66269 2003-09-26  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66272         (stpncpy): Define as alias for gnu_stpncpy.
66273         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66274
66275 2003-09-25  Simon Josefsson  <jas@extundo.com>
66276
66277         * lib/xgetdomainname.h: New file.
66278         * lib/xgetdomainname.c: New file.
66279
66280 2003-09-25  Simon Josefsson  <jas@extundo.com>
66281             Bruno Haible  <bruno@clisp.org>
66282
66283         * modules/getdomainname: New file.
66284         * modules/xgetdomainname: New file.
66285         * MODULES.html.sh (func_all_modules): Add getdomainname,
66286         xgetdomainname.
66287
66288 2003-09-25  Simon Josefsson  <jas@extundo.com>
66289             Bruno Haible  <bruno@clisp.org>
66290
66291         * m4/getdomainname.m4: New file.
66292
66293 2003-09-25  Simon Josefsson  <jas@extundo.com>
66294             Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/getdomainname.h: New file.
66297         * lib/getdomainname.c: New file.
66298
66299 2003-09-25  Karl Berry  <karl@gnu.org>
66300
66301         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66302
66303 2003-09-25  Karl Berry  <karl@gnu.org>
66304
66305         * config/install-sh: update from automake.
66306
66307 2003-09-25  Bruno Haible  <bruno@clisp.org>
66308
66309         * modules/version-etc-2: New file, from modules/version-etc with
66310         modifications.
66311         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66312
66313 2003-09-25  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66316         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66317
66318 2003-09-24  Simon Josefsson  <jas@extundo.com>
66319
66320         * modules/xgethostname: Add xgethostname.h.
66321
66322 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66323
66324         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66325         the buffer associated with the argument.  Bug reported by
66326         Simon Josefsson.
66327
66328 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66329
66330         * README: Document assumptions that 'int' is at least 32 bits
66331         wide, that integer arithmetic is 2's complement without overflow,
66332         that there are no holes in integer values, that adding sizes of
66333         two nonoverlapping objects can't overflow, and that all-bits-zero
66334         yields scalar zero.  Fix spelling and capitalization typos.
66335
66336 2003-09-19  Karl Berry  <karl@gnu.org>
66337
66338         * lib/argp.h: update from libc.
66339
66340 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66341
66342         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66343         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66344         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66345
66346 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66347
66348         * gnulib-tool: Use "test -h", not "test -L", for portability
66349         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66350         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66351         (sed_extract_prog): Issue s commands one-by-one, rather than
66352         using \| in one s command.
66353
66354 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66355
66356         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66357         input error, instead of returning NULL the next time we are called
66358         (and therefore losing track of errno).
66359
66360 2003-09-16  Bruno Haible  <bruno@clisp.org>
66361
66362         * gnulib-tool (func_create_testdir): Warn about duplicated
66363         dependencies.
66364
66365 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66366
66367         * modules/argmatch, modules/fatal, modules/obstack,
66368         modules/xalloc, modules/xgethostname: Sort dependencies by
66369         importance, not alphabetically.
66370
66371 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66372
66373         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66374         fails, so that the caller gets the proper errno.
66375
66376         * lib/readutmp.c (read_utmp): Likewise.
66377         Check for fstat error.  Close stream and free storage
66378         when failing.
66379
66380 2003-09-14  Karl Berry  <karl@gnu.org>
66381
66382         * config/srclist.txt (strdup.c): disable for c89 changes.
66383
66384 2003-09-14  Jim Meyering  <jim@meyering.net>
66385
66386         * lib/getloadavg.c: Correct cpp indentation.
66387         * lib/strdup.c: Likewise.
66388         * lib/vasnprintf.c: Likewise.
66389
66390 2003-09-14  Bruno Haible  <bruno@clisp.org>
66391
66392         * modules/fwriteerror: New file.
66393         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66394
66395 2003-09-14  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/fwriteerror.h: New file.
66398         * lib/fwriteerror.c: New file.
66399
66400 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66401
66402         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66403         modules/xgethostname, modules/xalloc: Depend on exit.
66404
66405 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66406
66407         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66408
66409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66410         and AC_MINIX, too, so that their extensions are available.
66411
66412         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66413         This macro has been superseded by gl_BACKUPFILE.
66414
66415         More patches to assume C89 or better.
66416
66417         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66418
66419         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66420         unconditionally.
66421         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66422         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66423         Include <string.h>, <stdlib.h> unconditionally.
66424         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66425         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66426         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66427         headers or for string.h.
66428         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66429         or strtoul.
66430
66431         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66432         headers.
66433         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66434         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66435         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66436         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66437         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66438         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66439         memcpy, memset.
66440         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66441         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66442         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66443         strtol.
66444         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66445         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66446         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66447         strtoul.
66448
66449 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66450
66451         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66452         * lib/obstack.c [!defined _LIBC]: Likewise.
66453         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66454         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66455         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66456
66457         More changes to assume C89 or better.
66458
66459         * lib/error.c (error_tail): Assume vprintf.
66460
66461         * lib/argmatch.c (getenv): Remove decl.
66462         * lib/progreloc.c (get_full_program_name): Define via prototype.
66463         * lib/setenv.c (clearenv): Likewise.
66464         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66465         needed.
66466         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66467         (malloc, memcpy): Remove decls.
66468         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66469         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66470         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66471         (memcpy): Remove macro.
66472         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66473         (__P): Remove.  All uses removed.
66474         (PTR): Remove.  All uses changed to void *.
66475         (CHAR_BIT, NULL): Remove.
66476         (spaces, zeros, memset_space, memset_zero)
66477         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66478         Remove.
66479         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66480         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66481         Define with prototype.
66482         Remove now-unnecessary prototype decl.
66483         (extra_args_spec): Assume ANSI C.  All uses changed.
66484         (extra_args_spec_iso): Remove.
66485         (my_strftime, emacs_strftimeu): Define via prototype.
66486         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66487         unconditionally.
66488         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66489         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66490         (strtoul, strtol): Remove decls.
66491         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66492         LONG_MAX): Remove.
66493         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66494         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66495         (LOCALE_PARAM_PROTO): New macro.
66496         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66497         (INTERNAL (strtol), strtol): Define with a prototype.
66498         (PARAMS): Remove.  All uses removed.
66499         * lib/tempname.c: Include <string.h> unconditionally.
66500         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66501         * lib/xgethostname.c (main): Define with a prototype.
66502         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66503         Include <stdlib.h> unconditionally.
66504         (calloc, malloc, realloc, free): Remove decls.
66505         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66506         Include <stdlib.h> unconditionally.  Sort include file names.
66507         (strtod): Remove.
66508         (xstrtod): Define with a prototype.
66509         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66510         (strtol, strtoul): Remove decls.
66511
66512 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66513
66514         More patches to assume C89 or better.
66515         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66516         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66517         string.h, memchr, STDC_HEADERS.
66518
66519 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66520
66521         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66522         Include <stdlib.h>, <string.h> unconditionally.
66523         Remove now-unnecessary cast to char *.
66524         * lib/strnlen.c: Include <string.h> unconditionally.
66525         * lib/yesno.c (yesno): Define with a prototype.
66526
66527 2003-09-11  Bruno Haible  <bruno@clisp.org>
66528
66529         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66530
66531 2003-09-10  Jim Meyering  <jim@meyering.net>
66532
66533         * lib/error.c: Correct indentation of cpp directives.
66534
66535 2003-09-10  Bruno Haible  <bruno@clisp.org>
66536
66537         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66538         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66539         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66540         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66541         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66542         <stdlib.h> and <string.h> checks.
66543         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66544         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66545
66546 2003-09-10  Bruno Haible  <bruno@clisp.org>
66547
66548         * lib/strcspn.c: Include <string.h> unconditionally.
66549         * lib/strpbrk.c: Include <string.h> unconditionally.
66550         * lib/strstr.c: Include <string.h> unconditionally.
66551         * lib/unicodeio.c: Include <string.h> unconditionally.
66552         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66553         * lib/unsetenv.c: Likewise.
66554         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66555         * lib/yesno.c: Include <stdlib.h> unconditionally.
66556         (rpmatch): Add prototype.
66557
66558 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66559
66560         More patches to assume C89 or better.
66561         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66562         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66563         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66564         or for string.h.
66565         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66566         stdlib.h.
66567         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66568         C headers.
66569         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66570         string.h.
66571         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66572         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66573         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66574         or for string.h.
66575         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66576         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66577         C headers.
66578         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66579         memcpy.
66580         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66581         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66582         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66583         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66584         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66585         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66586         string.h, free.
66587         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66588         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66589         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66590         C headers, or for string.h.
66591         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66592         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66593         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66594         headers, memory.h, stdlib.h, string.h, strings.h.
66595         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66596         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66597         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66598         strchr.
66599         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66600         headers, memory.h, string.h.
66601         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66602         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66603         free.
66604         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66605         headers.
66606         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66607         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66608         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66609         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66610         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66611
66612 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66613
66614         More K&R removal.
66615
66616         * lib/acosl.c (main): Use a prototype.
66617         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66618         tanl.c: Likewise.
66619
66620         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66621
66622         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66623         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66624         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66625         with a prototype.
66626         * lib/getopt.c (const): Remove macro.
66627         Include <string.h> unconditionally.
66628         (my_index): Remove; all uses changed to strchr.
66629         (strlen): Remove decl.
66630         (exchange): Remove forward decl; no longer needed.
66631         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66632         Define with prototype.
66633         * lib/getopt1.c (const): Remove macro.
66634         (getopt_long, getopt_long_only, main): Define with prototype.
66635
66636         * lib/getugroups.c: Include <string.h> unconditionally.
66637
66638         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66639         (getusershell, setusershell, endusershell, readname, main):
66640         Define with prototypes.
66641
66642         * lib/group-member.c: Include group-member.h first.
66643         Include <stdlib.h> unconditionally.
66644
66645         * lib/hard-locale.c: Include hard-locale.h first.
66646         Include <stdlib.h>, <string.h> unconditionally.
66647
66648         * lib/hash.c (free, malloc): Remove decls.
66649         Include <stdlib.h> unconditionally.
66650
66651         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66652         (getenv): Do not declare.
66653
66654         * lib/idcache.c: Include <string.h> unconditionally.
66655
66656         * lib/long-options.c: Include long-options.h first, to test interface.
66657         Include <stdlib.h> unconditionally.
66658
66659         * lib/makepath.c: Include makepath.h first, to test interface.
66660         Include <stdlib.h> and <string.h> unconditionally.
66661
66662         * lib/linebuffer.c: Include <stdlib.h>.
66663         (free): Remove decl.
66664
66665         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66666         stddef.h. rpl_malloc returns void *, not char *.
66667         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66668         prototype.
66669
66670         * lib/md5.h: Include <limits.h> unconditionally.
66671         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66672         (__P): Remove; all uses removed.
66673         * lib/md5.c: Include "md5.h" first.
66674         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66675         md5_buffer, md5_process_bytes, md5_process_block):
66676         Define with prototypes.
66677         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66678         * lib/sha.c: Include "sha.h" first.
66679         Include <stdlib.h>, <string.h> unconditionally.
66680
66681         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66682         * lib/memcmp.c (__ptr_t): Likewise.
66683         * lib/memrchr.c (__ptr_t): Likewise.
66684         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66685         Include <string.h> unconditionally.
66686         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66687         * lib/memchr.c: Include <stdlib.h> unconditionally.
66688         * lib/memchr.c (LONG_MAX): Remove.
66689         * lib/memrchr.c (LONG_MAX): Likewise.
66690         * lib/memchr.c (__memchr): Define via a prototype.
66691         * lib/memrchr.c (__memrchr): Likewise.
66692         * lib/memcmp.c (__P): Remove, and remove all uses.
66693         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66694         Remove forward decls; no longer needed.
66695         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66696         Use types required by C89 in prototype.
66697
66698         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66699         * lib/savedir.c: Likewise.
66700         * lib/mkdir.c (free): Remove decl.
66701         * lib/rmdir.c (rmdir): Define with a prototype.
66702         * lib/savedir.c: Include savedir.h first, to test interface.
66703
66704         * lib/mktime.c (STDC_HEADERS): Remove.
66705         Include <stdlib.h>, <string.h> unconditionally.
66706
66707         * lib/modechange.c: Include <stdlib.h> unconditionally.
66708         (malloc): Remove decl.
66709
66710         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66711         (free): Remove decl.
66712
66713         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66714         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66715         (This type really should be intptr_t, but that's a C99ism.)
66716         (_obstack_memcpy): Remove: all uses changed to memcpy.
66717         Include <string.h> unconditionally.
66718         (struct obstack): Assume __STDC__ for types of members
66719         chunkfun, freefun, extra_arg.
66720         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66721         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66722         obstack_begin, obstack_specify_allocation,
66723         obstack_specify_allocation_with_arg, obstack_chunkfun,
66724         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66725         Remove unprototyped decls and the macros that use them.
66726         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66727         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66728         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66729         (defined __STDC__ && __STDC__)]:
66730         Remove nonprototyped code.
66731         Include <stdlib.h> unconditionally.
66732         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66733         _obstack_allocated_p, _obstack_free, obstack_free,
66734         _obstack_memory_used, print_and_abort):
66735         Define using prototypes.
66736         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66737         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66738         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66739         obstack_next_free, obstack_object_size, obstack_room) [0]:
66740         Remove unused, unprototyped code.
66741
66742         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66743
66744         * lib/physmem.c (physmem_total, physmem_available, main): Define
66745         with prototypes.
66746
66747         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66748         (main): Define with a prototype.
66749
66750         * lib/posixver.c (getenv): Remove decl.
66751
66752         * lib/putenv.c (malloc): Returns void *, not char *.
66753         Include <string.h> unconditionally.
66754         (strchr, memcpy, NULL): Do not define.
66755
66756         * lib/readtokens.c: Include readtokens.h first, to test interface.
66757         Include <stdlib.h>, <string.h> unconditionally.
66758         (init_tokenbuffer): Define with a prototype.
66759
66760         * lib/regex.c (PARAMS): Remove.  All uses removed.
66761         All uses of _RE_ARGS removed, too.
66762         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66763         unconditionally.
66764         (bzero): Assume memset exists.
66765         (memcmp, memcpy, NULL): Remove.
66766         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66767         char, or assignments to local vars of type signed char.
66768         (init_syntax_once, PREFIX(extract_number_and_incr),
66769         PREFIX(print_partial_compiled_pattern),
66770         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66771         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66772         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66773         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66774         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66775         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66776         wcs_compile_range, byte_compile_range, truncate_wchar,
66777         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66778         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66779         count_mbs_length, wcs_re_match_2_internal,
66780         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66781         PREFIX(alt_match_null_string_p),
66782         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66783         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66784         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66785         now-unnecessary declaration, if any.
66786         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66787         regcomp, regexec):
66788         Remove now-unnecessary casts among pointer types.
66789         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66790
66791         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66792         (free): Remove decl.
66793
66794         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66795
66796         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66797         (free): Remove decl.
66798
66799         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66800         * lib/xgetcwd.c: Likewise.
66801
66802         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66803         (free): Remove decl.
66804
66805         * lib/strchrnul.c (strchrnul): Define with a prototype.
66806         Fix bug: c_in was not converted to char before searching.
66807
66808         The following changes are not K&R related:
66809
66810         * lib/group-member.h: Include <sys/types.h>, so that this file is
66811         self-contained.
66812         * lib/makepath.h: Likewise.
66813
66814         * lib/getusershell.c (readname, default_index, line_size, readname):
66815         Use size_t, not int, for sizes.
66816         (readname): If the size overflows, report an error instead of
66817         looping forever.
66818
66819 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66820
66821         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66822         libc.
66823
66824 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66825
66826         * README: New section: portability guidelines.
66827
66828 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66829
66830         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66831         C89 spec.
66832
66833 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66834
66835         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66836
66837 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66838
66839         Assume C89 or better; remove K&R cruft.
66840         A few of these changes were first proposed by Derek Robert Price
66841         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66842
66843         * lib/addext.c: Include <string.h> unconditionally.
66844         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66845         Don't declare getenv or malloc.
66846
66847         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66848         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66849         (NULL): Remove.
66850         (find_stack_direction, alloca): Use prototypes.
66851
66852         * lib/atexit.c (atexit): Define using a prototype.
66853
66854         * lib/basename.c, dirname.c, stripslash.c:
66855         Include <string.h> unconditionally.
66856
66857         * lib/bcopy.c: Include <stddef.h>.
66858         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66859
66860         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66861
66862         * lib/error.h (error, error_at_line, error_print_progname)
66863         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66864         * lib/error.c: Include error.h first, to check interface.
66865         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66866         (VA_START): Remove; all uses changeed to va_start.
66867         (exit, strerror): Remove decls.
66868         (error_print_progname): Prototype uncondionally.
66869         Don't include <errno.h>; no longer needed.
66870         (private_strerror): Remove.
66871         (error_tail): Always define.
66872         (error, error_at_line): Assume C89 or better; always use prototypes.
66873         * lib/fatal.c: Include "fatal.h" first, to test interface.
66874         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66875         (VA_START): Remove; all uses changed to va_start.
66876         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66877         this case.
66878         (exit): Remove decl.
66879         (fatal): Prototype unconditionally.  Assume va_start works.
66880         Abort at end, to pacify gcc.
66881
66882         * lib/euidaccess.c (main): Define with a prototype.
66883
66884         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66885
66886         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66887
66888         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66889         prototypes.
66890         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66891         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66892         (getenv): Remove decl.
66893         (fnmatch): Define using a prototype.
66894         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66895         (FCT): Define using a prototype.
66896
66897         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66898
66899         * lib/gethostname.c: Include <stddef.h>.
66900         (gethostname): Define with prototype.  Length is size_t, not int.
66901
66902 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66903
66904         Assume C89 or better; remove K&R cruft.
66905         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66906         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66907         string.h, getenv, malloc.
66908         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66909         headers.
66910         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66911         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66912         do not check for strerror.
66913         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66914         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66915         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66916         do not check for doprnt or vprintf.
66917         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66918         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66919
66920 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66921
66922         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66923         getversion.c should have been removed then, but was accidentally
66924         preserved.
66925
66926         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66927         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66928
66929 2003-09-08  Karl Berry  <karl@gnu.org>
66930
66931         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66932                 config, forget about prep.
66933
66934         * config/depcomp, missing: update from automake.
66935
66936 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66937
66938         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66939         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66940
66941 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66942
66943         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66944         copy_tm_result.  Bug reported by Simon Josefsson in
66945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66946
66947 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66948
66949         * m4/time_r.m4: New file.
66950         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66951         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66952         is. Check for timegm declaration.
66953         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66954         Do not check for gmtime_r.
66955         Replace mktime if __mktime_internal does not exist and if mktime
66956         hasn't been replaced already.
66957
66958 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66959
66960         * lib/time_r.c, lib/time_r.h: New files.
66961
66962         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66963         __localtime_r.
66964         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66965         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66966
66967         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66968         __gmtime_r.
66969         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66970         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66971         Include <time_r.h>.
66972
66973         * lib/timegm.c: Switch to glibc implementation, with the following
66974         changes:
66975         [defined HAVE_CONFIG_H]: Include <config.h>.
66976         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66977         (__mktime_internal) [!defined _LIBC]: New decl.
66978         (__gmtime_r) [!defined _LIBC]: New macro and function.
66979         (timegm): Use a prototype, since gnulib assumes C89.
66980         Do not bother declaring tmp to be const, as it's not really usefu.
66981         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66982         (timegm): Declare only if HAVE_DECL_TIMEGM.
66983
66984 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66985
66986         * MODULES.html.sh (func_all_modules): Add time_r.
66987         * modules/time_r: New file.
66988         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66989         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66990
66991 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66992
66993         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66994         Bug reported by Lute Kamstra in
66995         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66996
66997         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66998         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66999         course with correspondingly smaller numbers for tomorrow and
67000         yesterday.  From Tadayoshi Funaba.  Originally installed into
67001         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67002         coreutils merge?).
67003
67004 2003-08-31  Simon Josefsson  <jas@extundo.com>
67005
67006         * modules/timegm: New file.
67007         * MODULES.html.sh (func_all_modules): Add timegm.
67008
67009 2003-08-31  Simon Josefsson  <jas@extundo.com>
67010
67011         * m4/timegm.m4: New file.
67012
67013 2003-08-31  Simon Josefsson  <jas@extundo.com>
67014
67015         * lib/timegm.h: New file.
67016         * lib/timegm.c: New file.  Based on
67017         wget-1.8.2/src/http.c:mktime_from_utc.
67018
67019 2003-08-31  Karl Berry  <karl@gnu.org>
67020
67021         * lib/argp.h: update from libc.
67022
67023 2003-08-28  Bruno Haible  <bruno@clisp.org>
67024
67025         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67026         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67027         followed by '#define fnmatch fnmatch_posix' gives an error.
67028
67029 2003-08-28  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67032         warning on QNX, which defines O_BINARY to 000000.
67033
67034 2003-08-27  Jim Meyering  <jim@meyering.net>
67035
67036         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67037         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67038         would fail after 32.  Reported by Danny Levinson.  Details here:
67039         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67040
67041 2003-08-24  Bruno Haible  <bruno@clisp.org>
67042
67043         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67044         MSVC7 <stdio.h> is included later.
67045
67046 2003-08-22  Simon Josefsson  <jas@extundo.com>
67047
67048         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67049
67050 2003-08-20  Karl Berry  <karl@gnu.org>
67051
67052         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67053
67054 2003-08-20  Bruno Haible  <bruno@clisp.org>
67055
67056         * modules/progname: New file.
67057         * MODULES.html.sh (func_all_modules): Add progname.
67058
67059 2003-08-20  Bruno Haible  <bruno@clisp.org>
67060
67061         * lib/progname.h: New file, from GNU gettext.
67062         * lib/progname.c: New file, from GNU gettext.
67063         * lib/progreloc.c: New file, from GNU gettext.
67064
67065 2003-08-19  Jim Meyering  <jim@meyering.net>
67066
67067         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67068         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67069
67070 2003-08-19  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67073         more.
67074
67075 2003-08-19  Bruno Haible  <bruno@clisp.org>
67076
67077         * lib/xstrdup.c: Assume <string.h> exists.
67078
67079 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67080
67081         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67082         in makefile rules.
67083
67084 2003-08-18  Jim Meyering  <jim@meyering.net>
67085
67086         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67087         * m4/lib-ld.m4: Likewise.
67088
67089 2003-08-18  Jim Meyering  <jim@meyering.net>
67090
67091         * lib/setenv.h: Indent nested cpp directive.
67092         * lib/vasnprintf.c: Remove trailing blanks.
67093
67094 2003-08-17  Simon Josefsson  <jas@extundo.com>
67095
67096         * modules/xstrndup: New file.
67097         * MODULES.html.sh (func_all_modules): Add xstrndup.
67098
67099 2003-08-17  Simon Josefsson  <jas@extundo.com>
67100
67101         * modules/argp: Fix autoconf macro name. Add more dependencies.
67102
67103 2003-08-17  Simon Josefsson  <jas@extundo.com>
67104
67105         * m4/xstrndup.m4: New file.
67106
67107 2003-08-17  Simon Josefsson  <jas@extundo.com>
67108
67109         * m4/argp.m4: New file.
67110
67111 2003-08-17  Simon Josefsson  <jas@extundo.com>
67112             Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/xstrndup.h: New file.
67115         * lib/xstrndup.c: New file.
67116
67117 2003-08-17  Bruno Haible  <bruno@clisp.org>
67118
67119         * modules/strndup (Files, Include): Add lib/strndup.h.
67120
67121 2003-08-17  Bruno Haible  <bruno@clisp.org>
67122
67123         * modules/euidaccess (Files): Add lib/euidaccess.h.
67124
67125 2003-08-17  Bruno Haible  <bruno@clisp.org>
67126
67127         * lib/strndup.h: New file.
67128
67129 2003-08-17  Bruno Haible  <bruno@clisp.org>
67130
67131         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67132         like AC_GNU_SOURCE.
67133         * modules/extensions (configure.ac): Comment out the invocation of
67134         gl_USE_SYSTEM_EXTENSIONS.
67135
67136 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67137
67138         Merges from coreutils, etc.
67139         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67140         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67141         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67142         fixing a typo.
67143         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67144         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67145
67146 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67147
67148         Document merge from coreutils.
67149         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67150         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67151         * modules/utime: Add m4/utimes-null.m4.
67152
67153 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67154
67155         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67156         space, undoing this 2003-08-12 change:
67157         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67158
67159 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67160
67161         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67162         strtoul.c from libc, undoing this 2003-08-12 change:
67163         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67164
67165 2003-08-16  Jim Meyering  <jim@meyering.net>
67166
67167         Merges from coreutils.
67168         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67169         prefix.  Adjust cache variables similarly.  Create 500 rather than
67170         just 300 files, to exercise bug on Darwin6.5, too.
67171         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67172         $missing_dir.
67173         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67174         AM_SYS_POSIX_TERMIOS.
67175         Reported by mkc@mathdogs.com.
67176         Also change use of $am_cv_sys_posix_termios
67177         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67178         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67179         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67180         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67181         in /proc/mounts until it finds one with matching device number.  This
67182         is unnecessary when the FILE argument *is* a mount point.  No stat call
67183         is necessary in that case.  So, disable the statvfs-testing code on
67184         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67185         as RedHat bug# 84846.
67186         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67187         to 1MB, so as not to render systems with no stack size limit (e.g.,
67188         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67189         Include <unistd.h>.  On some systems,
67190         it is required for the definition of _SC_PAGESIZE.
67191
67192 2003-08-16  Jim Meyering  <jim@meyering.net>
67193
67194         Merge from coreutils.
67195         * lib/xstrtoimax.c: #else #if -> #elif.
67196         * lib/xstrtoumax.c: Likewise.
67197
67198 2003-08-16  Jim Meyering  <jim@meyering.net>
67199
67200         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67201         * m4/utimes.m4: Removed.
67202         * m4/utimes-null.m4: Renamed from utimes.m4.
67203
67204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67205         to 1MB, so as not to render systems with no stack size limit (e.g.,
67206         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67207         Include <unistd.h>.  On some systems,
67208         it is required for the definition of _SC_PAGESIZE.
67209
67210 2003-08-16  Jim Meyering  <jim@meyering.net>
67211         and Paul Eggert  <eggert@cs.ucla.edu>
67212
67213         Merges from coreutils, etc.
67214
67215         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67216         using the latest version from cvs.  This avoids problems with #line
67217         directives using a vendor (Sun) compiler.
67218         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67219         Don't set GETGROUPS_LIB here; now it's
67220         done via getgroups.m4's wrapper function.
67221         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67222         rather than just in sh-util/configure.in, so that the
67223         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67224         same.
67225         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67226         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67227         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67228         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67229         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67230         Remove code that is now done by the newly-required macros.
67231         Append $(EXEEXT) to DF_PROG.
67232         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67233         Do not invoke or require the following here,
67234         since prereq.m4 or some gnulib .m4 now does this for us:
67235         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67236         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67237         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67238         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67239         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67240         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67241         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67242         AC_FUNC_OBSTACK.
67243         Do not replace the following functions, as this is now the job
67244         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67245         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67246         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67247         atexit getpass, strdup, getpagesize.
67248         Replace 'raise'.
67249         Do not check for the following functions, as this is now the job
67250         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67251         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67252         setregid.
67253         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67254         Check for sys/sysctl.h.
67255         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67256         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67257         of checking for ssize_t ourselves.
67258
67259         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67260         Require every macro that gnulib/modules/* suggests for us.
67261         (jm_PREREQ_ADDEXT): New macro.
67262         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67263         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67264
67265         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67266         (gl_PHYSMEM): Use it.
67267         Also check for `table' function.
67268         Check for new headers and functions.
67269         Add check for sys/sysmp.h.
67270         With suggestions from Kaveh Ghazi.
67271         Ignore headers that are present but cannot be compiled.  This
67272         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67273         C 5.4.
67274
67275 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67276
67277         Document merge from coreutils.
67278         * modules/userspec: Depend on posixver.
67279         * modules/strftime: Depend on tzset.
67280
67281 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67282
67283         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67284         rather than tab, after '#' in shell-script copyright notices.
67285         Suggested by Bruno Haible.
67286
67287 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67288
67289         * config/srclist-update: Use three spaces, rather than tab, after '#'
67290         in shell-script copyright notices.  Suggested by Bruno Haible.
67291         Remove unnecessary parenthesization in regular expression.
67292
67293 2003-08-15  Jim Meyering  <jim@meyering.net>
67294
67295         Merge from coreutils.
67296         * lib/xgethostname.c: Include <stdlib.h>.
67297         (xghostname): Don't exit for anything other than memory-related
67298         failure; just return NULL.
67299         * lib/userspec.c: Include "posixver.h".
67300         (parse_user_spec): Accept `.' as a separator only
67301         in pre-POSIX-200112 mode.
67302         * lib/strtoimax.c: Use #elif rather than #else #if.
67303         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67304         Remove function, now that we can rely on a working tzset function.
67305         [!_LIBC]: Ensure that the required autoconf test has been run.
67306         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67307         Use underlying_strftime for %r.
67308         * lib/sha.c: Merge in some clean-up and optimization changes from
67309         glibc.
67310         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67311         Ensure that it is a multiple of 64.
67312         Rearrange loop exit tests so as to avoid performing an
67313         additional fread after encountering an error or EOF.
67314         * lib/realloc.c: Update copyright date.
67315
67316 2003-08-15  Jim Meyering  <jim@meyering.net>
67317         and Paul Eggert  <eggert@twinsun.com>
67318
67319         Merge from coreutils.
67320         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67321         member but strut utmpx does not.  Needed for AIX 4.3.3.
67322         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67323
67324 2003-08-15  Jim Meyering  <jim@meyering.net>
67325         and Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         Merges from coreutils, etc.
67328         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67329         Require gl_FUNC_TZSET_CLOBBER.
67330         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67331         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67332         members.
67333
67334 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67335
67336         Help the merge from coreutils.
67337         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67338         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67339         * m4/tzset.m4: Use it too.
67340
67341 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67342
67343         * modules/tzset: New file.
67344
67345 2003-08-14  Jim Meyering  <jim@meyering.net>
67346
67347         Merges from coreutils.
67348         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67349         variable names, rather than @FNMATCH_H@.
67350         * modules/alloca: Likewise for $(ALLOCA_H).
67351
67352         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67353         the three copies of the literal target, `fnmatch.h'.
67354         * modules/alloca (alloca.h): Likewise.
67355
67356 2003-08-14  Jim Meyering  <jim@meyering.net>
67357
67358         Merge from coreutils.
67359         * m4/tzset.m4: New file.
67360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67361         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67362         otherwise, AIX 5.1 systems would end up using the latter.
67363         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67364         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67365         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67366         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67367
67368 2003-08-14  Jim Meyering  <jim@meyering.net>
67369
67370         Merge from coreutils.
67371         * lib/obstack.h: Whitespace changes.
67372         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67373         and xcalloc return values.
67374         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67375         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67376         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67377         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67378         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67379         error from mntctl.
67380         Use mntctl's return value to drive the entry-processing loop, since
67381         we can't rely on the value of the vmt_length member in the last
67382         entry.  On some systems doing so could result in exhausting
67383         virtual memory.  Based in part on a patch from Mike Jetzer.
67384
67385 2003-08-14  Jim Meyering  <jim@meyering.net>
67386         and Paul Eggert  <eggert@twinsun.com>
67387
67388         Merges from coreutils, plus other fixes.
67389         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67390         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67391         for credits and details.  Thanks to Kaveh Ghazi for helping
67392         to keep these files in sync.
67393         (ARRAY_SIZE): Define it.
67394         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67395         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67396         (memcasecmp): Don't assume size_t fits in unsigned int.
67397         Remove casts and duplicate code.
67398         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67399         (memcpy): Remove definition.
67400         Merge in some clean-up and optimization changes from glibc.
67401         [BLOCKSIZE]: Move definition to top of file.
67402         Ensure that it is a multiple of 64.
67403         Rearrange loop exit tests so as to avoid performing an
67404         additional fread after encountering an error or EOF.
67405         * lib/md5.h (md5_uintptr): Define.
67406         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67407         return to the initial working directory.  Preserve errno
67408         for caller.
67409         * lib/idcache.c: Include "xalloc.h".
67410         (xmalloc, xrealloc): Remove decls.
67411         (getuser): Remove casts no longer required in C89.
67412         * lib/human.c: Include stdio.h, for sprintf.
67413         * lib/group-member.c: Include "xalloc.h".
67414         (xmalloc, xrealloc): Remove decls.
67415         (get_group_info): Remove casts no longer required in C89.
67416         * lib/getusershell.c (readname): Remove casts no longer required in
67417         C89.
67418         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67419         * lib/getline.c: Whitespace fix, from coreutils.
67420
67421 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67422
67423         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67424         Check for isascii.
67425
67426         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67427         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67428         Undo previous (whitespace-only) change.
67429
67430 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67431
67432         * lib/exclude.c: Include <ctype.h>
67433         (IN_CTYPE_DOMAIN): New macro.
67434         (is_space): New fn.
67435         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67436         and empty lines.
67437
67438         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67439         Undo previous (whitespace-only) change.
67440
67441 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67442
67443         * config/srclist-update: Change update back to the old behavior,
67444         leaving whitespace alone.  Use one 'sed' command rather than a
67445         pipeline.
67446         (fixlicense): Now a variable, not a function.
67447         (remove_trailing_blanks): Remove.
67448         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67449         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67450         Undo previous (whitespace-only) change.
67451
67452 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67453
67454         Merge from coreutils.
67455         * modules/euidaccess: Add lib_SOURCES, include for new
67456         file euidaccess.h
67457
67458 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67459
67460         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67461         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67462         Normalize leading white space and remove trailing white space.
67463
67464         Merge from coreutils
67465         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67466
67467         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67468         0.12.1.  These files are now being upgraded automatically by
67469         ../config/srclist-update.
67470
67471 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67472
67473         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67474         Normalize leading white space and remove trailing white space.
67475         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67476         notice, as per ../config/srclist-update.
67477
67478         Merge from coreutils.
67479         * lib/euidaccess.h: New file.
67480         * lib/euidaccess.c: Include it.
67481         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67482         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67483         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67484
67485 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67486
67487         * config/srclist-update: Add copyright notice.
67488         (remove_id_lines, remove_trailing_blanks): New constants.
67489         (fixfile): Use them to normalize spacing a bit in copied files.
67490         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67491         Normalize leading white space and remove trailing white space.
67492
67493         * config/texinfo.tex: Sync with texinfo.
67494
67495         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67496         strtoul.c from libc, to merge coreutils whitespace changes.
67497
67498         * config/srclist.txt: Get the following m4 files from gettext:
67499         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67500         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67501         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67502         wint_t.m4.
67503
67504 2003-08-12  Karl Berry  <karl@gnu.org>
67505
67506         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67507         been made.
67508
67509 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67510
67511         * modules/gnu-source, m4/gnu-source.m4:
67512         Remove; we're assuming Autoconf 2.54 or later now.
67513         Suggested by Bruno Haible.
67514         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67515
67516 2003-08-11  Bruno Haible  <bruno@clisp.org>
67517
67518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67519
67520 2003-08-11  Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67523         (vasnprintf): Use it instead of wcslen.
67524
67525 2003-08-11  Bruno Haible  <bruno@clisp.org>
67526
67527         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67528         value to ensure that _Bool promotes to int. Use #define for _Bool when
67529         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67530
67531 2003-08-10  Karl Berry  <karl@gnu.org>
67532
67533         * lib/regex.h: update from libc (whitespace fix).
67534
67535 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67536
67537         Merge some files from coreutils.  These changes were
67538         originally made by Jim Meyering.
67539         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67540         many older Unixes require this.
67541         * lib/alloca.c (alloca): Remove cast to argument of free;
67542         no longer needed in C89.
67543         * lib/alloca_.h, regex.h: Fix white space to match
67544         what GNU indent does.
67545
67546 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67547
67548         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67549         apparently Emacs's Unicode mode got confused before my 2003-08-05
67550         checkin.
67551
67552 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67553
67554         * m4/extensions.m4: New file.
67555         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67556         Require gl_USE_SYSTEM_EXTENSIONS.
67557         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67558         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67559
67560 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67561
67562         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67563         * modules/extensions, modules/gnu-source: New files.
67564         * modules/timespec, modules/unlocked-io: Depend on extensions.
67565
67566 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67567
67568         * modules/restrict: New file.
67569         * MODULES.html.sh (func_all_modules): Add restrict.
67570         * modules/regex: Depend on restrict.
67571
67572 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67573
67574         * m4/restrict.m4: New file.
67575         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67576
67577 2003-08-07  Bruno Haible  <bruno@clisp.org>
67578
67579         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67580         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67581
67582 2003-08-07  Bruno Haible  <bruno@clisp.org>
67583
67584         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67585         makes the module 'getndelim2' compatible with the module 'getline'.
67586
67587 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67588
67589         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67590         byte with "\201" to avoid glitches when editing that source file
67591         with multi-gnome-terminal.
67592
67593 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67594
67595         * lib/bumpalloc.h: Remove.
67596
67597 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67598
67599         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67600         * modules/bumpalloc: Remove.
67601
67602 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67603
67604         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67605         GNU coding style.
67606
67607         Merge from coreutils.
67608         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67609         1. From glibc.
67610         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67611         from Karl Berry, implemented by Jim Meyering.
67612         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67613         from Dmitry V. Levin.
67614         Remove anachronistic cast of xrealloc.
67615         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67616         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67617         type. Otherwise, it wouldn't compile with at least /bin/cc on
67618         ymp-cray-unicos9.0.2.X.
67619         Combine two mostly-identical uses of alloca into one.
67620         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67621
67622 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67623
67624         [From Emacs.]
67625
67626         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67627         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67628         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67629         obsolete NLIST_NAME_UNION.
67630         [__GNU__]: Undef BSD and FSCALE.
67631         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67632
67633 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67634
67635         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67636         an enum type, so that it's guaranteed to promote to int.  See:
67637         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67638
67639 2003-08-03  Karl Berry  <karl@gnu.org>
67640
67641         * config/depcomp: update from automake.
67642
67643 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67644
67645         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67646         (strerror): Don't assume that a printable int fits in 14 bytes.
67647
67648 2003-07-31  Bruno Haible  <bruno@clisp.org>
67649
67650         * modules/getpass-gnu: New file.
67651         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67652
67653 2003-07-31  Bruno Haible  <bruno@clisp.org>
67654
67655         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67656
67657 2003-07-24  Karl Berry  <karl@gnu.org>
67658
67659         * config/missing: update from automake.
67660
67661 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67662             Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67665         * lib/getline.c (getline, getdelim): Likewise.
67666         Remove _GNU_SOURCE define; now it's defined in config.h through
67667         m4/getline.m4.
67668
67669 2003-07-23  Karl Berry  <karl@gnu.org>
67670
67671         * config/config.sub: update from prep.
67672
67673 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67674
67675         * modules/xalloc (Depends-on): Add exitfail.
67676         * modules/xmemcoll: Likewise.
67677
67678 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67679
67680         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67681         over-parenthesization in macros.
67682
67683         Sync with coreutils.
67684
67685         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67686         required by C99.
67687
67688         Use `exit_failure' for xalloc and xmemcoll instead of their own
67689         private exit-failure variables.
67690         * lib/xalloc.h (xalloc_exit_failure): Remove.
67691         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67692         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67693         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67694         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67695         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67696
67697 2003-07-20  Jim Meyering  <jim@meyering.net>
67698
67699         * modules/closeout (Depends-on): Add exitfail.
67700         Suggestion from Bruno Haible.
67701
67702 2003-07-19  Karl Berry  <karl@gnu.org>
67703
67704         * config/config.sub: update from prep.
67705
67706 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67707
67708         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67709         Remove.
67710         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67711         to test that it can stand by itself.  Include "exitfail.h".
67712         Clients should set exit_failure instead.
67713         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67714
67715 2003-07-18  Bruno Haible  <bruno@clisp.org>
67716
67717         * modules/getndelim2: New file.
67718         * modules/getline: Share files with module getndelim2.
67719         * modules/getnline: Depend on getndelim2 instead of sharing files with
67720         it. Add getnline.c to lib_SOURCES.
67721         * MODULES.html.sh (func_all_modules): Add getndelim2.
67722
67723 2003-07-18  Bruno Haible  <bruno@clisp.org>
67724
67725         * m4/getndelim2.m4: New file.
67726         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67727         invoke gl_PREREQ_GETNDELIM2.
67728         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67729         gl_PREREQ_GETNDELIM2.
67730         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67731         gl_GETNDELIM2.
67732
67733 2003-07-18  Bruno Haible  <bruno@clisp.org>
67734
67735         * lib/getndelim2.h: New file.
67736         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67737         getndelim2.h.
67738         (getndelim2): Make non-static. Change return type to ssize_t.
67739         * lib/getline.h: Change argument names.
67740         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67741         * lib/getnline.c: Include getndelim2.h.
67742
67743 2003-07-18  Andreas Schwab  <schwab@suse.de>
67744
67745         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67746
67747 2003-07-17  Karl Berry  <karl@gnu.org>
67748
67749         * config/config.sub: update from prep.
67750
67751 2003-07-17  Bruno Haible  <bruno@clisp.org>
67752
67753         * modules/getnline: New file.
67754         * modules/getline: Add lib/getndelim2.c to source file list.
67755         * MODULES.html.sh (func_all_modules): Add getnline.
67756
67757 2003-07-17  Bruno Haible  <bruno@clisp.org>
67758
67759         * m4/getnline.m4: New file.
67760
67761 2003-07-17  Bruno Haible  <bruno@clisp.org>
67762
67763         * m4/Makefile.am.in: Remove file.
67764         * m4/Makefile.am: Remove file.
67765         * m4/Makefile.in: Remove file.
67766
67767 2003-07-17  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/getnline.h: New file.
67770         * lib/getnline.c: New file.
67771         * lib/getndelim2.c: New file, extracted from getline.c.
67772         (getndelim2): Renamed from getdelim2, with added nmax argument.
67773         * lib/getline.c: Include getndelim2.c.
67774         (getdelim2): Moved out to getndelim2.c.
67775         (getline, getdelim): Update.
67776
67777 2003-07-17  Bruno Haible  <bruno@clisp.org>
67778
67779         * lib/Makefile.am: Remove file.
67780         * lib/Makefile.in: Remove file.
67781
67782 2003-07-17  Bruno Haible  <bruno@clisp.org>
67783
67784         * configure.in: Remove file.
67785         * Makefile.in: Remove file.
67786
67787 2003-07-17  Bruno Haible  <bruno@clisp.org>
67788
67789         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67790
67791 2003-07-16  Karl Berry  <karl@gnu.org>
67792
67793         * config/srclist-update: was running fixlicense twice, which caused
67794                 texinfo.tex to be nullified for some reason.  Simplify,
67795                 $gplsrc is no longer needed as far as I can see?
67796
67797 2003-07-16  Jim Meyering  <jim@meyering.net>
67798
67799         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67800
67801 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67802
67803         * config/srclist.txt: Get the following files from gettext-runtime/intl
67804         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67805         ref-del.sin.  From Bruno Haible.
67806         * config/srclist-update (fixfile): Change grep pattern again, since the
67807         previous fix didn't work (there was another trailing $).  Use
67808         '[$]' to escape the $s.
67809
67810 2003-07-15  Karl Berry  <karl@gnu.org>
67811
67812         * lib/vasnprintf.c: update from gettext.
67813
67814 2003-07-15  Karl Berry  <karl@gnu.org>
67815
67816         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67817         gets expanded when surrounded by '$'.
67818
67819 2003-07-15  Jim Meyering  <jim@meyering.net>
67820
67821         * modules/save-cwd: Don't depend on error.  From Derek Price.
67822
67823 2003-07-15  Jim Meyering  <jim@meyering.net>
67824
67825         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67826
67827 2003-07-14  Simon Josefsson  <jas@extundo.com>
67828
67829         * modules/mempcpy: New file.
67830         * MODULES.html.sh (func_all_modules): Add mempcpy.
67831
67832 2003-07-14  Simon Josefsson  <jas@extundo.com>
67833
67834         * m4/mempcpy.m4: New file.
67835
67836 2003-07-14  Simon Josefsson  <jas@extundo.com>
67837
67838         * lib/mempcpy.h: New file.
67839         * lib/mempcpy.c: New file.
67840
67841 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67842
67843         * modules/getdate, modules/posixtm: Depend on mktime.
67844
67845 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67846
67847         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67848         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67849         unicodeio.c, unicodeio.h, unlocked-io.h:
67850         Switch from LGPL to GPL.
67851
67852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67853
67854         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67855         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67856         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67857         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67858         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67859         updated automatically by ../config/srclist-update.  This changes
67860         their license from LPGL to GPL.
67861
67862 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67863
67864         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67865         assumed to refer to the root of the most recent stable gettext version.
67866         * config/srclistvars.sh: Add defaults for eggert.
67867         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67868         Match "This program" as well as "The program".  This is needed
67869         for gettext.
67870
67871 2003-07-14  Jim Meyering  <jim@meyering.net>
67872
67873         Don't emit diagnostics.  Let callers do that.
67874         * lib/save-cwd.c: Don't include "error.h".
67875         (save_cwd): Don't call error.  Ensure that errno is valid
67876         when returning nonzero.
67877
67878         * lib/save-cwd.h (restore_cwd): Update prototype.
67879         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67880         Simplify.  Don't call error upon failure.  Let callers do that.
67881         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67882         when auditing is enabled.  But don't bother updating the #if.
67883
67884 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67885
67886         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67887         it breaks C++ compilation.
67888         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67889
67890 2003-07-10  Simon Josefsson  <jas@extundo.com>
67891
67892         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67893
67894 2003-07-10  Jim Meyering  <jim@meyering.net>
67895
67896         * m4/clock_time.m4: Remove trailing blank.
67897         * m4/intmax_t.m4: Likewise.
67898
67899 2003-07-10  Jim Meyering  <jim@meyering.net>
67900
67901         * lib/vasnprintf.c: Remove trailing blanks.
67902         Make cpp indentation consistent.
67903
67904 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67905
67906         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67907         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67908         Switch from LGPL to GPL.
67909
67910 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67911
67912         * config/srclist.txt: Sort sublists.  Add
67913         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67914         that differ from gnulib for one reason or another; we'd like this list
67915         to be smaller but for now let's document what we have.
67916
67917 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67918
67919         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67920         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67921         and sweeter "eval x=$x".
67922         * config/srclist.txt: Get lib/argp* from glibc.
67923
67924 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67925
67926         * lib/mktime.c: Fix some boundary cases and remove need for floating
67927         point.
67928
67929         Issue a compile-time diagnostic if time_t is floating point, or if
67930         two's complement arithmetic is not in effect, or if arithmetic
67931         right shift does not propagate the sign.  These assumptions were
67932         all in the original code but they weren't checked.
67933
67934         (TIME_T_MIDPOINT, verify): New macros.
67935         (__isleap): Remove; it has integer overflow problems.
67936         (leapyear): New function, without those problems.
67937         (ydhms_tm_diff): Remove; splitting into two parts.
67938         (ydhms_diff): New function, containing the arithmetic part of
67939         the old ydhms_tm_diff function.  Issue a compile-time
67940         diagnostic if we are not using C99 integer division.
67941         Avoid casts when possible.
67942         (guess_time_tm): New function, containing the checking part of
67943         the old ydhms_tm_diff function.  Return the new value, rather than
67944         the difference between it and the old.  Accept a new argument T
67945         so that *T specifies the old value.  Check for overflow in the result.
67946
67947         (__mktime_internal): Use a time_t offset, not a long int offset.
67948         This undoes the 2003-06-04 change, which is no longer needed now
67949         that we have better overflow checking.
67950         (localtime_offset): Likewise.
67951
67952         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67953         and long are 64-bit but int is only 32-bit.
67954         (ydhms_diff): Use long int to store year1 and yday1.
67955         Issue a compile-time diagnostic if long int is not wide enough.
67956
67957         (__mktime_internal): Use long int to store adjusted year and yday.
67958         Use plain C rather than preprocessor commands, if that doesn't
67959         affect efficiency.
67960         Check for overflow (and try to repair) after each probe
67961         rather than checking only at the very end.  This avoids some bugs
67962         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67963         does not equal GMT offset at maximum time).
67964         Use integer to check for overflow rather than floating point; this
67965         is more portable to non-IEEE hosts, and is a tad faster.
67966         When we detect that we are oscillating between two values,
67967         don't check whether tm_isdst has the requested value, since
67968         we already know the answer.  When tm_isdst has the wrong value,
67969         use a different heuristic to find the right one, based on the
67970         extreme values actually observed in practice in tz2003a,
67971         rather than the (overly optimistic) "previous 3 calendar quarters".
67972
67973         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67974         "T const" to accommodate glibc style.
67975         (check_result): Use less-confusing report format.  "long" -> "long int.
67976         (main): Likewise.
67977         Don't loop if the iteration overflows time_t.
67978         Allow a negative step in the iteration.
67979
67980 2003-07-06  Karl Berry  <karl@gnu.org>
67981
67982         * config/depcomp: update from automake.
67983         * config/config.sub: update from prep.
67984
67985 2003-07-03  Karl Berry  <karl@gnu.org>
67986
67987         * config/config.guess: update from prep.
67988
67989 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67990
67991         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67992         xreadlink.c now includes it unconditionally.
67993
67994 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67995
67996         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67997         having it depend on HAVE_SYS_TYPES_H.
67998
67999 2003-07-01  Bruno Haible  <bruno@clisp.org>
68000
68001         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68002         <sys/types.h> should be sufficient.
68003         Reported by Paul Eggert.
68004
68005 2003-06-26  Karl Berry  <karl@gnu.org>
68006
68007         * config/depcomp: update from automake.
68008
68009 2003-06-26  Bruno Haible  <bruno@clisp.org>
68010
68011         * modules/human: Depend on module stdbool.
68012
68013 2003-06-25  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/readlink: New file.
68016         * modules/xreadlink: Depend on it.
68017         * MODULES.html.sh (func_all_modules): Add readlink.
68018
68019 2003-06-25  Bruno Haible  <bruno@clisp.org>
68020
68021         * m4/readlink.m4: New file.
68022
68023 2003-06-25  Bruno Haible  <bruno@clisp.org>
68024
68025         * lib/readlink.c: New file.
68026
68027 2003-06-22  Karl Berry  <karl@gnu.org>
68028
68029         * config/srclist.txt: update mkinstalldirs from automake.
68030         * config/mkinstalldirs: update.
68031
68032 2003-06-22  Bruno Haible  <bruno@clisp.org>
68033
68034         Portability to mingw32.
68035         * m4/ssize_t.m4: New file, from GNU gettext.
68036         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68037         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68038
68039 2003-06-22  Bruno Haible  <bruno@clisp.org>
68040
68041         * modules/safe-read: Add m4/ssize_t.m4.
68042         * modules/xreadlink: Add m4/ssize_t.m4.
68043
68044 2003-06-20  Bruno Haible  <bruno@clisp.org>
68045
68046         Assume C89, so PARAMS isn't needed.
68047         * lib/unicodeio.h (PARAMS): Remove.
68048         * lib/unicodeio.c: Don't use PARAMS.
68049
68050 2003-06-18  Karl Berry  <karl@gnu.org>
68051
68052         * config/config.{guess,sub}: update from prep.
68053
68054 2003-06-18  Jim Meyering  <jim@meyering.net>
68055
68056         Merge changes from coreutils.
68057         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68058         Remove explicit declarations of xmalloc and realloc.
68059         Include xalloc.h.
68060         (read_utmp): Remove anachronistic cast of xmalloc.
68061
68062 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68063
68064         Assume C89, so PARAMS isn't needed.
68065         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68066         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68067         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68068         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68069         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68070         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68071         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68072         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68073         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68074         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68075         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68076         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68077         no longer needed. Anyway, config.h should always be included before any
68078         other file.
68079
68080 2003-06-11  Simon Josefsson  <jas@extundo.com>
68081
68082         * modules/sysexits: New file.
68083         * MODULES.html.sh (func_all_modules): Add sysexits.
68084
68085 2003-06-11  Simon Josefsson  <jas@extundo.com>
68086
68087         * lib/sysexit_.h: New file.
68088
68089 2003-06-11  Derek Price  <derek@ximbiot.com>
68090
68091         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68092         necessary.
68093
68094 2003-06-11  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/sysexits.m4: New file.
68097
68098 2003-06-10  Simon Josefsson  <jas@extundo.com>
68099
68100         * lib/argp.h: New file, from glibc.
68101         * lib/argp-ba.c: New file, from glibc.
68102         * lib/argp-eexst.c: New file, from glibc.
68103         * lib/argp-fmtstream.c: New file, from glibc.
68104         * lib/argp-fmtstream.h: New file, from glibc.
68105         * lib/argp-fs-xinl.c: New file, from glibc.
68106         * lib/argp-help.c: New file, from glibc.
68107         * lib/argp-namefrob.h: New file, from glibc.
68108         * lib/argp-parse.c: New file, from glibc.
68109         * lib/argp-pv.c: New file, from glibc.
68110         * lib/argp-pvh.c: New file, from glibc.
68111         * lib/argp-xinl.c: New file, from glibc.
68112
68113 2003-06-10  Simon Josefsson  <jas@extundo.com>
68114
68115         * modules/strchrnul: New file.
68116
68117 2003-06-10  Simon Josefsson  <jas@extundo.com>
68118
68119         * modules/argp: New file.
68120
68121 2003-06-10  Simon Josefsson  <jas@extundo.com>
68122
68123         * m4/strchrnul.m4: New file.
68124
68125 2003-06-10  Simon Josefsson  <jas@extundo.com>
68126
68127         * lib/strchrnul.h: New file.
68128         * lib/strchrnul.c: New file.
68129
68130 2003-06-10  Bruno Haible  <bruno@clisp.org>
68131
68132         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68133
68134 2003-06-07  Karl Berry  <karl@gnu.org>
68135
68136         * config/config.{guess,sub}: update from prep.
68137
68138 2003-06-07  Jim Meyering  <jim@meyering.net>
68139
68140         * modules/strtod: Use $(...) notation, not @...@ for
68141         AC_REPLACE'd variables.
68142         * modules/localcharset: Likewise.
68143
68144 2003-06-07  Jim Meyering  <jim@meyering.net>
68145
68146         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68147         in place of my name in the copyright comment.
68148         Remove definition and uses of __P.
68149
68150         From coreutils.
68151         * lib/stat.c: Don't declare xmalloc explicitly.
68152         Instead, include "xalloc.h".
68153         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68154         xrealloc, and xcalloc return values.
68155         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68156         Improve comment.
68157         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68158
68159 2003-06-07  Bruno Haible  <bruno@clisp.org>
68160
68161         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68162         avoid AC_CONFIG_LINKS.
68163         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68164         fnmatch.h, to avoid AC_CONFIG_LINKS.
68165         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68166
68167 2003-06-07  Bruno Haible  <bruno@clisp.org>
68168
68169         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68170         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68171         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68172         directory.
68173         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68174         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68175         directory.
68176
68177 2003-06-06  Jim Meyering  <jim@meyering.net>
68178
68179         Merge from coreutils.
68180         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68181         Consolidate declarations and initializations of *_base* locals.
68182
68183         Merge from coreutils.
68184         This avoids a core dump on systems without GNU putenv,
68185         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68186         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68187         (unsetenv): New static function, from GNU libc.
68188         (rpl_putenv): Use it.
68189
68190         * lib/modechange.c: Remove trailing blanks.
68191
68192         Merge from coreutils.
68193         * lib/fsusage.c: Remove declaration of statfs.
68194         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68195
68196         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68197
68198 2003-06-06  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/stdbool_.h: Renamed from stdbool.h.in.
68201
68202 2003-06-06  Jim Meyering  <jim@meyering.net>
68203             Bruno Haible  <bruno@clisp.org>
68204
68205         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68206         Adjust Makefile.am snippet not to redirect directly to target.
68207         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68208
68209 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68210
68211         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68212         mismatch, look in future quarters as well as past.  This fixes a
68213         bug when processing fall-backwards gaps immediately after a long
68214         period of daylight-saving time.
68215
68216         * lib/mktime.c: Assume freestanding C89 or better.
68217         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68218         (__P): Remove; not used.
68219         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68220         (mktime, not_equal_tm, print_tm, check_result,
68221         main): Use prototypes.  Use const * where appropriate.
68222         (main): Fix typo in testing code that uncovered by above changes.
68223         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68224
68225 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68226
68227         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68228         locale.h, localeconv.  This merges changes from coreutils.
68229
68230         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68231         It can be removed after the next Autoconf is released.
68232         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68233         needed.
68234
68235 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68236
68237         * lib/mktime.c: Fix Debian bug 177940
68238         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68239         (localtime_offset): Now long int, not time_t, because we want it
68240         to be guaranteed to be signed.  All uses changed.
68241         (__mktime_internal): If overflow would occur when adding offset,
68242         don't add it.
68243
68244         Merge 'human' changes from coreutils.  Rewrite to support
68245         locale-specific notations like thousands separators.
68246         * lib/human.c: Simplify authorship notice.
68247         Include human.h immediately after config.h.
68248         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68249         <limits.h>: Do not include, since human.h does.
68250         (SIZE_MAX, UINTMAX_MAX): New macros.
68251         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68252         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68253         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68254         (power_letter): Renamed from suffixes.
68255         (generate_suffix_backwards): Remove.
68256         (adjust_value): Now takes int style (because of human.h changes)
68257         and long double value (for greater precision on some platforms).
68258         (group_number): New function.
68259         (human_readable): Use it.  Use integer options, not enum.
68260         Put the options before the sizes in the arg list.
68261         Support all the new options.
68262         The old human_readable function has been removed;
68263         use inttostr.h instead.
68264         (human_readable, default_block_size, humblock):
68265         Use uintmax_t, not int, for block sizes.
68266         (human_readable_inexact, block_size_types): Remove.
68267         (block_size_opts): New constant.
68268         (human_options): Renamed from human_block_size, with new signature
68269         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68270         * lib/human.h: Add copyright and authorship notice.
68271         Include <limits.h> and <stdbool.h> unconditionally.
68272         (PARAMS): Remove.  All uses removed.
68273         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68274         (enum human_inexact_style): Remove tag; now a nameless enum.
68275         (human_floor, human_ceiling, human_round_to_even): Now have
68276         values 2, 0, 1 rather than -1, 1, 0.
68277         (human_group_digits, human_suppress_point_zero, human_autoscale,
68278         human_base_1024, human_SI, human_B): New constants.
68279         (human_readable_inexact, human_block_size): Remove.
68280         (human_readable): Size args are now uintmax_t, not int.
68281         (human_options): New decl.
68282
68283         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68284         unnecessary now that we assume C89 or better.  This change
68285         imported from coreutils.
68286
68287         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68288         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68289         in the 2003-05-30 sync from glibc.
68290
68291         .h files should stand alone, but we shouldn't include <sys/types.h>
68292         if we can get away with just <stddef.h>.
68293
68294         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68295         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68296         rather than <sys/types.h>, as we merely need size_t.
68297         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68298         to get size_t.
68299         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68300         Include <stdio.h>, to get FILE.
68301         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68302         memcasecmp.h has included <stddef.h> and all we need is size_t.
68303         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68304         our interface, instead of including <sys/types.h>
68305
68306 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68307
68308         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68309         now, as glibc mktime is buggy on non-glibc systems.
68310
68311 2003-06-03  Karl Berry  <karl@gnu.org>
68312
68313         * config/config.sub: update from prep.
68314
68315 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68316
68317         [from coreutils]
68318         Fix some minor time-related bugs with POSIX time arguments.
68319         Some valid time stamps were being rejected (notably -1, and
68320         time stamps before 1900 on 64-bit hosts).  And some invalid
68321         time stamps were being accepted, e.g. September 31.
68322
68323         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68324         that we can return (time_t) -1 successfully.
68325         * lib/posixtm.c: Likewise.
68326         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68327         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68328         (t): Remove static var.
68329         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68330         of static var.  All uses changed.
68331         (year): Do not reject years before 1900; they can occur with
68332         64-bit time_t.
68333         (posix_time_parse): Do not check for out-of-range components;
68334         that is now the caller's responsibility, since our checks were
68335         only approximations.
68336         (posixtime): Use mktime to check for out-of-range components,
68337         since it knows them exactly.
68338         If mktime returns (time_t) -1, check whether an error actually occurred
68339         by invoking localtime on -1.
68340         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68341         posixtime failures better.
68342         Improve the test data (in comments only).
68343
68344 2003-06-02  Karl Berry  <karl@gnu.org>
68345
68346         * config/mkinstalldirs (version): new variable.
68347         (--version): new option.
68348         (usage): improve message.
68349
68350 2003-05-30  Karl Berry  <karl@gnu.org>
68351
68352         * lib/mktime.c: update from libc.
68353
68354 2003-05-30  Bruno Haible  <bruno@clisp.org>
68355
68356         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68357         * config/config.rpath: Upgrade to gettext-0.12.1.
68358
68359 2003-05-30  Bruno Haible  <bruno@clisp.org>
68360
68361         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68362         * m4/nls.m4: New file, from gettext-0.12.1.
68363         * m4/po.m4: New file, from gettext-0.12.1.
68364         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68365
68366 2003-05-30  Bruno Haible  <bruno@clisp.org>
68367
68368         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68369         * lib/localcharset.h: Likewise.
68370         * lib/localcharset.c: Likewise.
68371
68372 2003-05-29  Karl Berry  <karl@gnu.org>
68373
68374         * config/config.rpath: update from gettext.
68375
68376 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68377
68378         Assume the headers required for C89 freestanding compilers.
68379         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68380         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68381         * m4/human.m4 (gl_HUMAN): Likewise.
68382         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68383         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68384         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68385         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68386         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68387         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68388
68389 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68390
68391         Assume the headers required for C89 freestanding compilers.
68392         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68393         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68394         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68395         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68396         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68397         define, since <limits.h> is guaranteed to do that.
68398         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68399         * lib/exclude.c: Include <stdbool.h> unconditionally.
68400         * lib/tempname.c: Include <stddef.h> unconditionally.
68401         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68402         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68403         <stddef.h> does that.
68404         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68405         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68406         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68407         needed.
68408         * lib/xstrtol.c: Likewise.
68409         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68410         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68411
68412         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68413         warnings on some platforms.
68414
68415         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68416         arbitrarily.
68417
68418 2003-05-26  Jim Meyering  <jim@meyering.net>
68419
68420         Merge in a change from coreutils:
68421         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68422         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68423         that condition, rather than `-1' which is slightly misleading.
68424         Change the name of the cache variable to have the gl_ prefix.
68425         Prompted by a patch from Richard Dawe for DJGPP.
68426
68427 2003-05-24  Karl Berry  <karl@gnu.org>
68428
68429         * config/config.guess: update from prep.
68430
68431 2003-05-22  Karl Berry  <karl@gnu.org>
68432
68433         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68434
68435 2003-05-20  Karl Berry  <karl@gnu.org>
68436
68437         * config/config.guess: update from prep.
68438
68439 2003-05-18  Karl Berry  <karl@gnu.org>
68440
68441         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68442         might actually be set by the user.
68443
68444         * config/depcomp, install-sh, mdate-sh: update from automake.
68445
68446 2003-05-17  Bruno Haible  <bruno@clisp.org>
68447
68448         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68449         invalid expansion for AC_EGREP_CPP.
68450         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68451         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68452         Suggested by Akim Demaille <akim@epita.fr> in
68453         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68454
68455 2003-05-12  Jim Meyering  <jim@meyering.net>
68456
68457         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68458         the space-padded-by-default conversion specifiers, %e, %k, %l.
68459
68460 2003-05-12  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68463         the string is longer than 4 KB.
68464
68465 2003-05-11  Karl Berry  <karl@gnu.org>
68466
68467         * config/config.{guess,sub}: update from prep.
68468
68469 2003-05-09  Bruno Haible  <bruno@clisp.org>
68470
68471         * modules/error: Add m4/strerror_r.m4 to file list.
68472
68473 2003-05-03  Bruno Haible  <bruno@clisp.org>
68474
68475         Upgrade to Unicode-4.0.
68476         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68477         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68478         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68479         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68480         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68481         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68482         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68483         Change width of U+E0100..U+E01EF from 1 to 0.
68484
68485 2003-04-25  Jim Meyering  <jim@meyering.net>
68486
68487         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68488         of type size_t, not int.
68489
68490 2003-04-25  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/copy-file.c: Include <stddef.h>, for size_t.
68493
68494 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68495
68496         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68497         code which expansion is under static control.  Patch imported from
68498         Akim Demaille's patch to Bison; see
68499         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68500
68501 2003-04-14  Bruno Haible  <bruno@clisp.org>
68502
68503         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68504
68505 2003-04-11  Jim Meyering  <jim@meyering.net>
68506
68507         Merge changes from Coreutils.
68508
68509         2003-03-22  Jim Meyering  <jim@meyering.net>
68510
68511         * lib/strftime.c (widen): Cast alloca return value to proper type.
68512
68513         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68514
68515         From GNU libc.
68516         * lib/strftime.c (my_strftime): Handle very large width
68517         specifications for numeric values correctly.  Improve checks for
68518         overflow.
68519
68520         2003-01-19  Jim Meyering  <jim@meyering.net>
68521
68522         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68523         definitions.
68524         (nl_get_alt_digit) [! defined my_strftime]: Define.
68525         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68526         _nl_get_alt_digit and _nl_get_walt_digit.
68527
68528         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68529         libc. These changes have no effect outside of _LIBC.
68530
68531 2003-04-10  Bruno Haible  <bruno@clisp.org>
68532
68533         * modules/findprog: New file.
68534         * MODULES.html.sh (func_all_modules): Add it.
68535
68536 2003-04-10  Bruno Haible  <bruno@clisp.org>
68537
68538         * m4/findprog.m4: New file.
68539         * m4/eaccess.m4: New file.
68540
68541 2003-04-10  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/findprog.h: New file, from GNU gettext.
68544         * lib/findprog.c: New file, from GNU gettext.
68545
68546 2003-04-05  Jim Meyering  <jim@meyering.net>
68547
68548         Merge changes from Coreutils.
68549
68550         * lib/exclude.h (PARAMS): Remove definition and uses.
68551         * lib/exclude.c: Remove uses of `PARAMS'.
68552
68553         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68554         Add test-cases for DOS filenames. Declare program_name.
68555         (main): Set up program_name.  Patch by Rich Dawe.
68556
68557         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68558         error from mntctl.
68559         Use mntctl's return value to drive the entry-processing loop, since
68560         we can't rely on the value of the vmt_length member in the last
68561         entry.  On some systems doing so could result in exhausting
68562         virtual memory.  Based in part on a patch from Mike Jetzer.
68563
68564 2003-04-04  Bruno Haible  <bruno@clisp.org>
68565
68566         * modules/linebreak: New file.
68567         * MODULES.html.sh (func_all_modules): Add it.
68568
68569 2003-04-04  Bruno Haible  <bruno@clisp.org>
68570
68571         * m4/linebreak.m4: New file.
68572
68573 2003-04-04  Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/linebreak.h: New file, from GNU gettext.
68576         * lib/linebreak.c: New file, from GNU gettext with slight
68577         modifications.
68578         * lib/lbrkprop.h: New file, from GNU gettext.
68579
68580 2003-04-03  Bruno Haible  <bruno@clisp.org>
68581
68582         * modules/utf8-ucs4: New file.
68583         * modules/utf16-ucs4: New file.
68584         * modules/ucs4-utf8: New file.
68585         * modules/ucs4-utf16: New file.
68586         * MODULES.html.sh (func_all_modules): Add them.
68587
68588 2003-04-03  Bruno Haible  <bruno@clisp.org>
68589
68590         * m4/utf-ucs4.m4: New file.
68591         * m4/ucs4-utf.m4: New file.
68592
68593 2003-04-03  Bruno Haible  <bruno@clisp.org>
68594
68595         * lib/utf8-ucs4.h: New file, from GNU gettext.
68596         * lib/utf16-ucs4.h: New file, from GNU gettext.
68597         * lib/ucs4-utf8.h: New file, from GNU gettext.
68598         * lib/ucs4-utf16.h: New file, from GNU gettext.
68599
68600 2003-04-02  Bruno Haible  <bruno@clisp.org>
68601
68602         * modules/binary-io: New file.
68603         * MODULES.html.sh (func_all_modules): Add it.
68604
68605 2003-04-02  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/binary-io.h: New file, from GNU gettext.
68608
68609 2003-04-01  Bruno Haible  <bruno@clisp.org>
68610
68611         * modules/pathname: New file.
68612         * MODULES.html.sh (func_all_modules): Add it.
68613
68614 2003-04-01  Bruno Haible  <bruno@clisp.org>
68615
68616         * lib/pathname.h: New file, from GNU gettext.
68617         * lib/concatpath.c: New file, from GNU gettext.
68618
68619 2003-03-30  Bruno Haible  <bruno@clisp.org>
68620
68621         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68622
68623 2003-03-30  Bruno Haible  <bruno@clisp.org>
68624
68625         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68626         function chown() doesn't exist.
68627
68628 2003-03-28  Bruno Haible  <bruno@clisp.org>
68629
68630         * modules/copy-file: New file.
68631         * MODULES.html.sh (func_all_modules): Add it.
68632
68633 2003-03-28  Bruno Haible  <bruno@clisp.org>
68634
68635         * m4/copy-file.m4: New file.
68636
68637 2003-03-28  Bruno Haible  <bruno@clisp.org>
68638
68639         * lib/copy-file.h: New file, from GNU gettext.
68640         * lib/copy-file.c: New file, from GNU gettext.
68641
68642 2003-03-18  Jim Meyering  <jim@meyering.net>
68643
68644         * lib/quote.c (quote_n): Fix typo in comment.
68645
68646 2003-03-18  Bruno Haible  <bruno@clisp.org>
68647
68648         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68649         checking.
68650         * m4/onceonly_2_57.m4: Likewise.
68651
68652 2003-03-17  Bruno Haible  <bruno@clisp.org>
68653
68654         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68655         (m4_quote): Remove macro.
68656         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68657
68658 2003-03-14  Jim Meyering  <jim@meyering.net>
68659
68660         Merge changes from Coreutils.
68661         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68662         to be const, in order to avoid warnings.
68663         (obstack_room): Likewise.
68664         (obstack_empty_p): Likewise.
68665
68666 2003-03-14  Bruno Haible  <bruno@clisp.org>
68667
68668         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68669         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68670
68671 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68672
68673         Merge changes from Bison.
68674         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68675         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68676         when compiling Bison 1.875's `bitset bset = obstack_alloc
68677         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68678         * lib/hash.c: Include <stdbool.h> unconditionally.
68679
68680 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68681
68682         * m4/onceonly.m4 (m4_quote): New macro.
68683         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68684         Quote AC_FOREACH variable-expansions properly.
68685
68686 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68687
68688         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68689
68690 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68691
68692         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68693         Reported by Bruce Becker; see:
68694         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68695
68696 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68697             Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68700         Reported by John Hughes, see
68701         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68702
68703 2003-02-20  Bruno Haible  <bruno@clisp.org>
68704
68705         * MODULES.html.sh (func_all_modules): Add poll.
68706
68707 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68708
68709         * modules/poll: New file.
68710
68711 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68712
68713         * lib/poll_.h: New file.
68714         * lib/poll.c: New file.
68715
68716 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68717
68718         * m4/poll.m4: New file.
68719
68720 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68721
68722         * modules/mathl: New file.
68723
68724 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68725
68726         * lib/mathl.h: New file.
68727         * lib/acosl.c: New file.
68728         * lib/asinl.c: New file.
68729         * lib/atanl.c: New file.
68730         * lib/ceill.c: New file.
68731         * lib/cosl.c: New file.
68732         * lib/expl.c: New file.
68733         * lib/floorl.c: New file.
68734         * lib/frexpl.c: New file.
68735         * lib/ldexpl.c: New file.
68736         * lib/logl.c: New file.
68737         * lib/sincosl.c: New file.
68738         * lib/sinl.c: New file.
68739         * lib/sqrtl.c: New file.
68740         * lib/tanl.c: New file.
68741         * lib/trigl.c: New file.
68742         * lib/trigl.h: New file.
68743
68744 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68745
68746         * m4/mathl.m4: New file.
68747
68748 2003-02-18  Bruno Haible  <bruno@clisp.org>
68749
68750         * MODULES.html.sh (func_all_modules): Add mathl.
68751
68752 2003-02-17  Bruno Haible  <bruno@clisp.org>
68753
68754         * modules/mkdtemp: New module.
68755         * MODULES.html.sh (func_all_modules): Add it.
68756
68757 2003-02-17  Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68760
68761 2003-02-17  Bruno Haible  <bruno@clisp.org>
68762
68763         * lib/mkdtemp.h: New file, from GNU gettext.
68764         * lib/mkdtemp.c: New file, from GNU gettext.
68765
68766 2003-02-02  Jim Meyering  <jim@meyering.net>
68767
68768         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68769         e.g. glibc-2.2.93.
68770
68771 2003-01-31  Bruno Haible  <bruno@clisp.org>
68772
68773         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68774         'rpl_rename'.
68775         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68776         'rpl_strnlen'.
68777         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68778         'rpl_strtod'.
68779         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68780         'rpl_utime'.
68781
68782 2003-01-31  Bruno Haible  <bruno@clisp.org>
68783
68784         * lib/rename.c: #undef rename before defining rpl_rename.
68785         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68786
68787 2003-01-30  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/vasnprintf, modules/vasprintf: New modules.
68790         * MODULES.html.sh (func_all_modules): Add them.
68791
68792 2003-01-30  Bruno Haible  <bruno@clisp.org>
68793
68794         * m4/signed.m4: New file, from GNU gettext.
68795         * m4/longdouble.m4: New file, from GNU gettext.
68796         * m4/wchar_t.m4: New file, from GNU gettext.
68797         * m4/wint_t.m4: New file, from GNU gettext.
68798         * m4/vasnprintf.m4: New file.
68799         * m4/vasprintf.m4: New file.
68800
68801 2003-01-30  Bruno Haible  <bruno@clisp.org>
68802
68803         * lib/printf-args.h: New file, from GNU gettext.
68804         * lib/printf-args.c: New file, from GNU gettext.
68805         * lib/printf-parse.h: New file, from GNU gettext.
68806         * lib/printf-parse.c: New file, from GNU gettext.
68807         * lib/vasnprintf.h: New file, from GNU gettext.
68808         * lib/vasnprintf.c: New file, from GNU gettext.
68809         * lib/asnprintf.c: New file, from GNU gettext.
68810         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68811         * lib/vasprintf.c: New file, from GNU gettext.
68812         * lib/asprintf.c: New file, from GNU gettext.
68813
68814 2003-01-29  Bruno Haible  <bruno@clisp.org>
68815
68816         * modules/stpncpy: New module.
68817         * MODULES.html.sh (func_all_modules): Add it.
68818
68819 2003-01-29  Bruno Haible  <bruno@clisp.org>
68820
68821         * m4/stpncpy.m4: New file.
68822
68823 2003-01-29  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68826         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68827
68828 2003-01-28  Bruno Haible  <bruno@clisp.org>
68829
68830         * modules/c-ctype: New module.
68831         * MODULES.html.sh (func_all_modules): Add it.
68832
68833 2003-01-28  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68836         Paul Eggert.
68837         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68838         Paul Eggert.
68839
68840 2003-01-27  Bruno Haible  <bruno@clisp.org>
68841
68842         * modules/xsetenv: New module.
68843         * MODULES.html.sh (func_all_modules): Add it.
68844
68845 2003-01-27  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/xsetenv.h: New file, from GNU gettext.
68848         * lib/xsetenv.c: New file, from GNU gettext.
68849
68850 2003-01-23  Jim Meyering  <jim@meyering.net>
68851
68852         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68853         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68854
68855 2003-01-23  Bruno Haible  <bruno@clisp.org>
68856
68857         * modules/minmax: New module.
68858         * MODULES.html.sh (func_all_modules): Add it.
68859
68860 2003-01-23  Bruno Haible  <bruno@clisp.org>
68861
68862         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68863         Eggert.
68864
68865 2003-01-22  Bruno Haible  <bruno@clisp.org>
68866
68867         * modules/exit: New module.
68868         * MODULES.html.sh (func_all_modules): Add it.
68869
68870 2003-01-22  Bruno Haible  <bruno@clisp.org>
68871
68872         * lib/exit.h: New file, from GNU gettext.
68873
68874 2003-01-19  Bruno Haible  <bruno@clisp.org>
68875
68876         * gnulib-tool: Recognize option --extract-maintainer.
68877         (func_get_maintainer): New function.
68878         * modules/*: Add Maintainer entry.
68879
68880 2003-01-16  Jim Meyering  <jim@meyering.net>
68881
68882         * m4/regex.m4: The `regex' struct is both input and output.
68883         Initialize it before each use.  Patch by Tim Waugh.
68884
68885 2003-01-16  Bruno Haible  <bruno@clisp.org>
68886
68887         * MODULES.html.sh: Add a table of contents. Add the module name as
68888         leftmost column. Add hyperlinks.
68889
68890 2003-01-15  Bruno Haible  <bruno@clisp.org>
68891
68892         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68893
68894 2003-01-15  Bruno Haible  <bruno@clisp.org>
68895
68896         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68897         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68898         suffix.
68899
68900 2003-01-15  Bruno Haible  <bruno@clisp.org>
68901
68902         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68903
68904 2003-01-15  Bruno Haible  <bruno@clisp.org>
68905
68906         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68907         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68908
68909 2003-01-14  Jim Meyering  <jim@meyering.net>
68910
68911         * lib/same.c (same_name): Tweak a comment.
68912
68913 2003-01-14  Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68916         when a string comparison is sufficient.
68917
68918 2003-01-14  Bruno Haible  <bruno@clisp.org>
68919
68920         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68921         'unsigned int'.
68922
68923 2003-01-14  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/hash-pjw.c: Add comment about low quality of this function.
68926
68927 2003-01-13  Bruno Haible  <bruno@clisp.org>
68928
68929         * modules/stpcpy: Distribute lib/stpcpy.h.
68930         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68931
68932 2003-01-13  Bruno Haible  <bruno@clisp.org>
68933
68934         * modules/*: Add a description.
68935         * modules/strpbrk: Fix Makefile.am snippet.
68936         * modules/strtoimax: Fix dependencies.
68937         * modules/strtoumax: Likewise.
68938
68939 2003-01-13  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68942         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68943         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68944
68945 2003-01-13  Bruno Haible  <bruno@clisp.org>
68946
68947         * gnulib-tool (func_create_testdir): Store config/* files in the main
68948         directory.
68949         * config.rpath: Move to ...
68950         * config/config.rpath: ... here.
68951         * modules/gettext: Contains config/config.rpath, not config.rpath.
68952         * modules/iconv: Likewise.
68953
68954 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68955
68956         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68957         to avoid collisions with libcurses and libreadline.
68958
68959         * m4/getstr.m4: Remove.
68960         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68961
68962 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68963
68964         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68965         to avoid collisions with libcurses and libreadline.
68966
68967         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68968         * lib/getstr.h, getstr.c: Remove.
68969         * lib/getline.c: Include "getline.h", to check interface.
68970         Move body of old getstr.c here: this defines MIN_CHUNK and
68971         declares getdelim2, which is renamed from getstr.
68972         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68973
68974         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68975         All uses changed.
68976         * lib/linebuffer.h: Likewise.
68977         (readline): Remove backward-compatibility macro.
68978
68979 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68980
68981         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68982         to avoid collisions with libcurses and libreadline.
68983         * getstr: Remove.
68984         * MODULES.html.sh: Remove getstr.
68985         * modules/getline: Depend on unlocked-io, not getstr.
68986
68987 2003-01-12  Jim Meyering  <jim@meyering.net>
68988
68989         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68990
68991 2003-01-10  Bruno Haible  <bruno@clisp.org>
68992
68993         * modules/alloca: Change Makefile.am requirements. Simplify Include
68994         requirements. Add lib/alloca_.h to file list.
68995
68996 2003-01-10  Bruno Haible  <bruno@clisp.org>
68997
68998         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68999
69000 2003-01-10  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/alloca_.h: New file.
69003         * lib/getdate.y: Unconditionally include alloca.h.
69004         * lib/makepath.c: Likewise.
69005         * lib/setenv.c: Likewise.
69006         * lib/userspec.c: Likewise.
69007
69008 2003-01-09  Karl Berry  <karl@gnu.org>
69009
69010         * MODULES.html.sh: include `dirname $0` in PATH, to find
69011         gnulib-tool.
69012
69013 2003-01-09  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69016         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69017
69018 2003-01-09  Bruno Haible  <bruno@clisp.org>
69019
69020         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69021
69022 2003-01-09  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/stdbool.h.in: New file.
69025
69026 2003-01-09  Bruno Haible  <bruno@clisp.org>
69027
69028         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69029         * MODULES.html.sh: Likewise.
69030
69031 2003-01-08  Jim Meyering  <jim@meyering.net>
69032
69033         * lib/full-write.c: Undefine and define-away `const' after inclusion
69034         of errno.h, not before.  Suggestion from Bruno Haible.
69035
69036 2003-01-08  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/full-read: Depend on full-write.
69039
69040 2003-01-08  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/safe-read.c: Include specification header first, to ensure its
69043         selfcontainedness.
69044         * lib/full-write.c: Likewise.
69045
69046 2003-01-07  Jim Meyering  <jim@meyering.net>
69047
69048         * lib/full-write.c: Rework so that it may serve to define full_read,
69049         too.
69050         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69051
69052 2003-01-07  Bruno Haible  <bruno@clisp.org>
69053
69054         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69055         <inttypes.h>.
69056         * lib/xstrtol.h: Likewise.
69057         * lib/xstrtoimax.c: Likewise.
69058         * lib/xstrtoumax.c: Likewise.
69059         * lib/human.h: Likewise.
69060
69061         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69062         on systems that have <inttypes.h> but not <stdint.h>.
69063
69064 2003-01-07  Bruno Haible  <bruno@clisp.org>
69065
69066         * MODULES.html.sh: Add copyright notice.
69067         (missed_files): Omit CVS directory entries.
69068         (func_module): Make it work with sed-3.02.
69069         * MODULES.txt: Remove file.
69070
69071 2003-01-06  Jim Meyering  <jim@meyering.net>
69072
69073         * lib/version-etc.c: Update year in translatable copyright string.
69074
69075 2003-01-03  Karl Berry  <karl@gnu.org>
69076
69077         * config/config.{guess,sub}: update from prep.
69078
69079 2003-01-02  Karl Berry  <karl@gnu.org>
69080
69081         * doc/COPYING.DOC: belatedly updated to 1.2.
69082
69083 2003-01-01  Karl Berry  <karl@gnu.org>
69084
69085         * gnulib-tool (func_verify_module): report module name $module in
69086         error message, not $1.
69087         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69088         be created, only if it doesn't exist.
69089         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69090
69091 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69092
69093         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69094
69095 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69096
69097         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69098         memcmp if strcoll doesn't work.
69099
69100 2002-12-31  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69103         nonempty.
69104
69105 2002-12-31  Bruno Haible  <bruno@clisp.org>
69106
69107         * lib/memcoll.c (STRCOLL): New macro.
69108         (memcoll): Use it.
69109
69110 2002-12-31  Bruno Haible  <bruno@clisp.org>
69111
69112         * lib/localcharset.h: New file.
69113         * lib/localcharset.c: Include it.
69114         * lib/unicodeio.c: Likewise.
69115
69116 2002-12-31  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69119         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69120
69121 2002-12-31  Bruno Haible  <bruno@clisp.org>
69122
69123         * lib/getline.h: Include <stddef.h>, for size_t.
69124
69125         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69126         * lib/unicodeio.c: Don't include <stddef.h>.
69127
69128 2002-12-31  Bruno Haible  <bruno@clisp.org>
69129
69130         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69131         HAVE_TM_ZONE.
69132
69133 2002-12-24  Karl Berry  <karl@gnu.org>
69134
69135         * config/config.guess: update from prep.
69136
69137 2002-12-24  Bruno Haible  <bruno@clisp.org>
69138
69139         General infrasructure.
69140         * m4/README: Rewritten.
69141         * m4/onceonly.m4: New file.
69142         * m4/onceonly_2_57.m4: New file.
69143
69144         Module atexit.
69145         * m4/atexit.m4: New file.
69146
69147         Module strtod.
69148         * m4/strtod.m4: New file.
69149
69150         Module strtol.
69151         * m4/strtol.m4: New file.
69152
69153         Module strtoul.
69154         * m4/strtoul.m4: New file.
69155
69156         Module memchr.
69157         * m4/memchr.m4: New file.
69158
69159         Module memcmp.
69160         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69161         (jm_FUNC_MEMCMP): Invoke it.
69162
69163         Module memcpy.
69164         * m4/memcpy.m4: New file.
69165
69166         Module memmove.
69167         * m4/memmove.m4: New file.
69168
69169         Module memset.
69170         * m4/memset.m4: New file.
69171
69172         Module strcspn.
69173         * m4/strcspn.m4: New file.
69174
69175         Module strpbrk.
69176         * m4/strpbrk.m4: New file.
69177
69178         Module strstr.
69179         * m4/strstr.m4: New file.
69180
69181         Module strerror.
69182         * m4/strerror.m4: New file.
69183
69184         Module mktime.
69185         * m4/mktime.m4: Renamed from jm-mktime.m4.
69186         (gl_PREREQ_MKTIME): New macro.
69187         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69188
69189         Module malloc.
69190         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69191         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69192         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69193
69194         Module realloc.
69195         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69196         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69197         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69198
69199         Module strftime.
69200         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69201         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69202         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69203         gl_TM_GMTOFF.
69204         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69205
69206         Module xalloc.
69207         * m4/xalloc.m4: New file.
69208
69209         Module alloca.
69210         * m4/alloca.m4: New file.
69211
69212         Module putenv.
69213         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69214         (jm_FUNC_PUTENV): Invoke it.
69215
69216         Module setenv.
69217         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69218         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69219         when invoked twice.
69220         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69221         gt_FUNC_SETENV.
69222
69223         Module memrchr.
69224         * m4/memrchr.m4: New file.
69225
69226         Module stpcpy.
69227         * m4/stpcpy.m4: New file.
69228
69229         Module strcase.
69230         * m4/strcase.m4: New file.
69231
69232         Module strdup.
69233         * m4/strdup.m4: New file.
69234
69235         Module strnlen.
69236         * m4/strnlen.m4: New file.
69237
69238         Module strndup.
69239         * m4/strndup.m4: New file.
69240
69241         Module xstrtod.
69242         * m4/xstrtod.m4: New file.
69243
69244         Module xstrtol.
69245         * m4/xstrtol.m4: New file.
69246
69247         Module getdate.
69248         * m4/getdate.m4: New file.
69249
69250         Module unlocked-io.
69251         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69252         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69253         * m4/jm-glibc-io.m4n: Remove file.
69254
69255         Module long-options.
69256         * m4/long-options.m4: New file.
69257
69258         Module md5.
69259         * m4/md5.m4: New file.
69260
69261         Module sha.
69262         * m4/sha.m4: New file.
69263
69264         Module getstr.
69265         * m4/getstr.m4: New file.
69266
69267         Module getline.
69268         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69269         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69270         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69271         simply getline. Infoke gl_PREREQ_GETLINE.
69272
69273         Module obstack.
69274         * m4/obstack.m4: New file.
69275
69276         Module hash.
69277         * m4/hash.m4: New file.
69278
69279         Module readtokens.
69280         * m4/readtokens.m4: New file.
69281
69282         Module strverscmp.
69283         * m4/strverscmp.m4: New file.
69284
69285         Module stdbool.
69286         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69287         OSF/1.
69288
69289         Module strtoll.
69290         * m4/strtoll.m4: New file.
69291
69292         Module strtoull.
69293         * m4/strtoull.m4: New file.
69294
69295         Module strtoimax.
69296         * m4/strtoimax.m4: New file.
69297
69298         Module strtoumax.
69299         * m4/strtoumax.m4: New file.
69300
69301         Module xstrtoimax.
69302         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69303         jm_AC_PREREQ_XSTRTOIMAX.
69304         Moved the strtol prerequisites to strtol.m4.
69305         Moved the strtoll prerequisites to strtoll.m4.
69306         Moved the strtoimax prerequisites to strtoimax.m4.
69307
69308         Module xstrtoumax.
69309         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69310         jm_AC_PREREQ_XSTRTOUMAX.
69311         Moved the strtoul prerequisites to strtoul.m4.
69312         Moved the strtoull prerequisites to strtoull.m4.
69313         Moved the strtoumax prerequisites to strtoumax.m4.
69314
69315         Module chown.
69316         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69317         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69318
69319         Module dup2.
69320         * m4/dup2.m4: New file.
69321
69322         Module ftruncate.
69323         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69324         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69325
69326         Module getgroups.
69327         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69328         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69329
69330         Module gettimeofday.
69331         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69332         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69333         gl_PREREQ_GETTIMEOFDAY.
69334
69335         Module mkdir.
69336         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69337         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69338
69339         Module mkstemp.
69340         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69341         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69342         jm_AC_TYPE_UINTMAX_T.
69343         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69344
69345         Module stat.
69346         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69347         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69348
69349         Module lstat.
69350         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69351         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69352
69353         Module timespec.
69354         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69355         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69356         * m4/st_mtim.m4: Indentation.
69357
69358         Module nanosleep.
69359         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69360         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69361         gl_PREREQ_NANOSLEEP.
69362
69363         Module regex.
69364         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69365         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69366         (gl_REGEX): New macro.
69367
69368         Module rename.
69369         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69370         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69371
69372         Module rmdir.
69373         * m4/rmdir.m4: New file.
69374
69375         Module utime.
69376         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69377         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69378         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69379
69380         Module dirname.
69381         * m4/dirname.m4: New file.
69382
69383         Module getopt.
69384         * m4/getopt.m4: New file.
69385
69386         Module unistd-safer.
69387         * m4/unistd-safer.m4: New file.
69388
69389         Module fnmatch.
69390         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69391         declaration.
69392         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69393         (gl_FUNC_FNMATCH_POSIX): New macro.
69394         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69395         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69396         simply fnmatch.
69397
69398         Module exclude.
69399         * m4/exclude.m4: New file.
69400
69401         Module human.
69402         * m4/human.m4: New file.
69403
69404         Module acl.
69405         * m4/acl.m4: Nop.
69406
69407         Module backupfile.
69408         * m4/backupfile.m4: New file.
69409         * m4/d-ino.m4: Indentation.
69410
69411         Module fsusage.
69412         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69413         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69414         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69415
69416         Module dirfd.
69417         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69418         requirements.
69419
69420         Module euidaccess.
69421         * m4/euidaccess.m4: New file.
69422
69423         Module file-type.
69424         * m4/file-type.m4: New file.
69425
69426         Module fileblocks.
69427         * m4/fileblocks.m4: New file.
69428
69429         Module filemode.
69430         * m4/filemode.m4: New file.
69431
69432         Module isdir.
69433         * m4/isdir.m4: New file.
69434
69435         Module lchown.
69436         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69437         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69438
69439         Module makepath.
69440         * m4/makepath.m4: New file.
69441
69442         Module modechange.
69443         * m4/modechange.m4: New file.
69444
69445         Module mountlist.
69446         * m4/mountlist.m4: New file.
69447         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69448         Indentation.
69449
69450         Module path-concat.
69451         * m4/path-concat.m4: New file.
69452
69453         Module pathmax.
69454         * m4/pathmax.m4: New file.
69455
69456         Module same.
69457         * m4/same.m4: New file.
69458
69459         Module save-cwd.
69460         * m4/save-cwd.m4: New file.
69461
69462         Module savedir.
69463         * m4/savedir.m4: New file.
69464
69465         Module xgetcwd.
69466         * m4/xgetcwd.m4: New file.
69467         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69468
69469         Module xreadlink.
69470         * m4/xreadlink.m4: New file.
69471
69472         Module safe-read.
69473         * m4/safe-read.m4: New file.
69474
69475         Module safe-write.
69476         * m4/safe-write.m4: New file.
69477
69478         Module closeout.
69479         * m4/closeout.m4: New file.
69480
69481         Module stdio-safer.
69482         * m4/stdio-safer.m4: New file.
69483
69484         Module getpass.
69485         * m4/getpass.m4: New file.
69486
69487         Module getugroups.
69488         * m4/getugroups.m4: New file.
69489
69490         Module group-member.
69491         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69492         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69493
69494         Module idcache.
69495         * m4/idcache.m4: New file.
69496
69497         Module userspec.
69498         * m4/userspec.m4: New file.
69499
69500         Module gettime.
69501         * m4/clock_time.m4: New file.
69502         * m4/gettime.m4: New file.
69503
69504         Module settime.
69505         * m4/settime.m4: New file.
69506
69507         Module posixtm.
69508         * m4/posixtm.m4: New file.
69509
69510         Module gethostname.
69511         * m4/gethostname.m4: New file.
69512
69513         Module canon-host.
69514         * m4/canon-host.m4: New file.
69515
69516         Module gettext.
69517         * m4/codeset.m4: New file, from gettext-0.11.5.
69518         * m4/gettext.m4: New file, from gettext-0.11.5.
69519         * m4/glibc21.m4: New file, from gettext-0.11.5.
69520         * m4/iconv.m4: New file, from gettext-0.11.5.
69521         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69522         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69523         * m4/inttypes.m4: New file, from gettext-0.11.5.
69524         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69525         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69526         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69527         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69528         * m4/lib-link.m4: New file, from gettext-0.11.5.
69529         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69530         * m4/progtest.m4: New file, from gettext-0.11.5.
69531         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69532         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69533         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69534
69535         Module localcharset.
69536         * m4/localcharset.m4: New file.
69537
69538         Module hard-locale.
69539         * m4/hard-locale.m4: New file.
69540
69541         Module mbswidth.
69542         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69543         onceonly macros.
69544         * m4/mbrtowc.m4: Add comment.
69545
69546         Module memcasecmp.
69547         * m4/memcasecmp.m4: New file.
69548
69549         Module memcoll.
69550         * m4/memcoll.m4: New file.
69551
69552         Module unicodeio.
69553         * m4/unicodeio.m4: New file.
69554
69555         Module rpmatch.
69556         * m4/rpmatch.m4: New file.
69557
69558         Module yesno.
69559         * m4/yesno.m4: New file.
69560
69561         Module exitfail.
69562         * m4/exitfail.m4: New file.
69563
69564         Module c-stack.
69565         * m4/c-stack.m4 (gl_C_STACK): New macro.
69566         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69567
69568         Module error.
69569         * m4/error.m4 (gl_ERROR): New macro.
69570         (jm_PREREQ_ERROR): Use onceonly macros.
69571
69572         Module fatal.
69573         * m4/fatal.m4: New file.
69574
69575         Module getloadavg.
69576         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69577         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69578
69579         Module getpagesize.
69580         * m4/getpagesize.m4: New file.
69581
69582         Module getusershell.
69583         * m4/getusershell.m4: New file.
69584
69585         Module physmem.
69586         * m4/physmem.m4: New file.
69587
69588         Module posixver.
69589         * m4/posixver.m4: New file.
69590
69591         Module quotearg.
69592         * m4/quotearg.m4: New file.
69593
69594         Module quote.
69595         * m4/quote.m4: New file.
69596
69597         Module readutmp.
69598         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69599
69600         Module sig2str.
69601         * m4/sig2str.m4: New file.
69602
69603         Other.
69604         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69605         ulonglong.m4.
69606         * m4/intmax_t.m4: New file.
69607         * m4/d-type.m4: Indentation.
69608         * m4/jm-macros.m4: Update.
69609         * m4/prereq.m4 (jm_PREREQ): Update.
69610         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69611         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69612         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69613         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69614         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69615         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69616         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69617         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69618         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69619         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69620         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69621         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69622         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69623         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69624         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69625         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69626         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69627         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69628         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69629
69630 2002-12-24  Bruno Haible  <bruno@clisp.org>
69631
69632         * MODULES.txt: Update according to m4/ changes.
69633
69634         Module gettext.
69635         * config.rpath: New file, from gettext-0.11.5.
69636
69637         * modules/*: New module descriptions.
69638         * gnulib-tool: New file.
69639         * MODULES.html.sh: New file.
69640
69641 2002-12-21  Karl Berry  <karl@gnu.org>
69642
69643         * doc/fdl.texi: update to version 1.2.
69644
69645 2002-12-19  Karl Berry  <karl@gnu.org>
69646
69647         * config/config.guess: update from prep.
69648
69649 2002-12-18  Bruno Haible  <bruno@clisp.org>
69650
69651         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69652         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69653
69654 2002-12-17  Bruno Haible  <bruno@clisp.org>
69655
69656         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69657         stdlib.h, string.h.
69658
69659 2002-12-17  Bruno Haible  <bruno@clisp.org>
69660
69661         * lib/canon-host.c (strdup): Remove unused declaration.
69662
69663         * lib/fsusage.c: Include full_read.h.
69664         (get_fs_usage): Use full_read instead of safe_read.
69665
69666         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69667
69668 2002-12-12  Karl Berry  <karl@gnu.org>
69669
69670         * config/config.guess: update from prep.
69671
69672 2002-12-11  Bruno Haible  <bruno@clisp.org>
69673
69674         * m4/setenv.m4: New file, from gettext-0.11.5.
69675
69676 2002-12-11  Bruno Haible  <bruno@clisp.org>
69677
69678         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69679         not unsetenv().
69680         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69681         modifications:
69682
69683         2002-12-11  Bruno Haible  <bruno@clisp.org>
69684
69685                 * setenv.c (alloca): Fall back to malloc.
69686                 (freea): New macro.
69687                 (setenv): Use freea() to free memory allocated with alloca().
69688
69689         2002-11-13  Bruno Haible  <bruno@clisp.org>
69690
69691                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69692                 function declarations.
69693                 * unsetenv.c (unsetenv): Likewise.
69694
69695         2002-03-04  Bruno Haible  <bruno@clisp.org>
69696
69697                 Portability to AIX 4.3.3.
69698                 * unsetenv.c: New file, extracted from setenv.c.
69699                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69700
69701         2001-12-20  Bruno Haible  <bruno@clisp.org>
69702
69703                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69704                 use malloc instead. For SunOS 4.
69705
69706         2001-12-11  Bruno Haible  <bruno@clisp.org>
69707
69708                 * setenv.c: Declare alloca.
69709                 (compar_fn_t): New typedef.
69710                 (KNOWN_VALUE, STORE_VALUE): Use it.
69711
69712         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69713         setenv.h.
69714
69715 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69716
69717         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69718         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69719         Choose values that are less likely to collide with system fnmatch
69720         options.
69721         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69722         defined (e.g., a pure POSIX system).
69723         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69724         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69725
69726 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69727
69728         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69729         a pain in practice to deal with generated m4 files.  This change
69730         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69731
69732         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69733         and jm-glibc-io.m4, as they are no longer a special case.
69734         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69735         kludge and the auto-generation stuff.  Check only whether the
69736         functions are declared, not whether they exist, since older hosts
69737         that don't declare the functions can't use the optimization anyway.
69738
69739 2002-12-06  Jim Meyering  <jim@meyering.net>
69740
69741         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69742
69743         Merge in changes from libc's misc/error.c, in preparation
69744         for the merge of gnulib's changes back into libc.
69745
69746         * lib/error.c (_): Define only if not already defined.
69747         Move definition to follow all #include directives.
69748         Include unlocked-io.h only if !_LIBC.
69749         [_LIBC]: Include <libio/libioP.h>.
69750         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69751         (fflush): Tweak definition to use INTUSE.
69752         (putc): Define.
69753
69754 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69755
69756         * lib/alloca.c [defined emacs]: Include "lisp.h".
69757         (xalloc_die) [defined emacs]: New macro.
69758         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69759         [! defined emacs]: Include <xalloc.h>.
69760         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69761         (pointer): Typedef to POINTER_TYPE *.
69762         (malloc): Remove decl; we now always use xmalloc.
69763         (alloca): Use old-style definition, since Emacs needs this.
69764         Check for arithmetic overflow when computing combined size.
69765
69766 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69767
69768         Do not generate unlocked-io.h automatically, since it's easier to
69769         maintain it by hand.
69770
69771         * lib/unlocked-io.h: New file, from GNU diffutils,
69772         but with proper copyright notice and attribution.
69773         * lib/gen-uio: Remove.
69774         * lib/Makefile.am: Add copyright notice.
69775         (libfetish_a_SOURCES): Add unlocked-io.h.
69776         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69777         (DISTCLEANFILES, io_functions): Remove macros.
69778         (EXTRA_DIST): Remove gen_uio.
69779         (unlocked-io.h): Remove rule.
69780
69781 2002-12-04  Jim Meyering  <jim@meyering.net>
69782
69783         Reflect the fact that stat.c and lstat.c are no longer generated.
69784         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69785         (DISTCLEANFILES): Likewise.
69786         (EXTRA_DIST): Likewise.
69787         (all_local): Don't depend on stat.c or lstat.c.
69788         (stat.c, lstat.c): Remove rules.
69789         (EXTRA_DIST): Remove xstat.in.
69790
69791         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69792         * lib/stat.c: New file.  Contents mostly from xstat.in.
69793         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69794         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69795
69796         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69797         too.
69798         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69799
69800 2002-12-03  Jim Meyering  <jim@meyering.net>
69801
69802         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69803         but not semantics, to minimize the differences between these two files.
69804         (safe_read): Change comment to mention SAFE_READ_ERROR.
69805
69806         * lib/safe-read.c (IS_EINTR): Define.
69807         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69808
69809 2002-12-02  Jim Meyering  <jim@meyering.net>
69810
69811         * lib/safe-read.c (EINTR): Define.
69812         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69813         (INT_MAX): Provide fallback.
69814         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69815
69816         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69817
69818 2002-12-02  Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69821         Define, taken from safe-read.c.
69822         (INT_MAX): Provide fallback.
69823         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69824         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69825
69826         * lib/safe-read.c (EINTR): Remove definition.
69827         (safe_read): Don't use EINTR if it is absent.
69828
69829 2002-12-01  Jim Meyering  <jim@meyering.net>
69830
69831         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69832         zero.
69833         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69834
69835 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69836
69837         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69838         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69839         with `if (! (value < limit)) abort ();', for readability.
69840
69841 2002-11-26  Karl Berry  <karl@gnu.org>
69842
69843         * lib/strdup.c: copy from libc again, with jim's ok.
69844         * lib/.cppi-disable: re-add strdup.c
69845
69846 2002-11-25  Karl Berry  <karl@gnu.org>
69847
69848         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69849         instead of "strtol.c".
69850
69851 2002-11-25  Karl Berry  <karl@gnu.org>
69852
69853         * config/install-sh: update from automake for variable quoting, $0 in
69854         error msgs, etc.
69855
69856         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69857         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69858         entry.
69859
69860 2002-11-25  Jim Meyering  <jim@meyering.net>
69861
69862         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69863
69864 2002-11-24  Karl Berry  <karl@gnu.org>
69865
69866         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69867         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69868
69869 2002-11-24  Jim Meyering  <jim@meyering.net>
69870
69871         Update from coreutils:
69872
69873         * lib/mktime.c: Merge in changes from libc.
69874
69875         Avoid a link-time failure on some Linux systems.
69876         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69877         (otherwise).
69878         (__mon_yday): Declare with the STATIC attribute.
69879         (__mktime_internal): Likewise.
69880         Based on a report from Greg Schafer.
69881
69882 2002-11-23  Jim Meyering  <jim@meyering.net>
69883
69884         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69885         Use `unsigned', not `int', as type of index.
69886
69887         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69888
69889         * lib/fsusage.c: Remove unneeded parentheses around operands of
69890         `defined'.
69891
69892 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69893
69894         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69895         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69896         so that we can be included first.
69897         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69898         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69899         No need to include stddef.h or sys/types.h any more.
69900         Surround local include files with "", not "<>".
69901         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69902         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69903         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69904         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69905         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69906         (ISPRINT): Remove; no longer needed now that we assume C89.
69907
69908         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69909         Preserve errno.
69910
69911         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69912         quotearg_char): Use SIZE_MAX rather than
69913         (size_t) -1 when we are talking about "infinity".
69914
69915         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69916
69917 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69918
69919         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69920         hint that one should use `if (! x) abort ();' rather than `assert
69921         (x);', and anyway it's one less thing to worry about configuring.
69922         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69923         hash_rehash, hash_insert): Use abort rather than assert.
69924
69925 2002-11-22  Bruno Haible  <bruno@clisp.org>
69926
69927         * lib/safe-read.h: Assume C89. Add comments.
69928         (safe_read): Change return type to size_t.
69929         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69930         byte counts > SSIZE_MAX correctly.
69931         * lib/safe-write.h: New file.
69932         * lib/safe-write.c: New file.
69933         * lib/full-read.h: New file.
69934         * lib/full-read.c: New file.
69935         * lib/full-write.h: Assume C89. Add comments.
69936         * lib/full-write.c: Include safe-write.h.
69937         (full_write): Rewritten to use safe_write.
69938         Suggested by Jim Meyering and Paul Eggert.
69939
69940 2002-11-21  Jim Meyering  <jim@meyering.net>
69941
69942         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69943
69944         Merge in changes from the coreutils.
69945
69946         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69947         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69948         <stdint.h>.
69949         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69950         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69951         int.  Work more efficiently if X is the same width as uintmax_t.
69952         Do not compare X to -1, to avoid bogus compiler warning.
69953         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69954         Don't assume that f_frsize and f_bsize are the same type.
69955
69956         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69957         warning on FreeBSD.
69958
69959         * lib/makepath.c (make_path): Restore umask *before* creating the final
69960         component.
69961         (make_path): Minor reformatting.
69962
69963         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69964         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69965         HAVE_MALLOC/HAVE_REALLOC.
69966
69967         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69968         dummy ones.  At least on GNU/Linux systems, `auto' means something
69969         else.
69970         From Michael Stone.
69971
69972 2002-11-21  Bruno Haible  <bruno@clisp.org>
69973
69974         Remove case insensitive option matching.
69975         * lib/argmatch.h (argcasematch): Remove declaration.
69976         (ARGCASEMATCH): Remove macro.
69977         (__xargmatch_internal): Remove case_sensitive argument.
69978         (XARGMATCH): Update.
69979         (XARGCASEMATCH): Remove macro.
69980         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69981         case_sensitive argument.
69982         (argcasematch): Remove function.
69983         (__xargmatch_internal): Remove case_sensitive argument.
69984         (main): Use XARGMATCH instead of XARGCASEMATCH.
69985
69986         * lib/xmalloc.c: Change compile-time error message. Add comment about
69987         required autoconf version.
69988
69989 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69990
69991         Merge argmatch cleanups from Bison.  Assume C89.
69992
69993         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69994         Include stdlib.h, for EXIT_FAILURE.
69995         Always include <string.h>, since we assume C89.
69996         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69997         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69998         Include <stddef.h> instead, since it's all we need for size_t.
69999         (PARAMS): Remove.  All uses removed.
70000         (ARRAY_CARDINALITY): Do not bother to #undef.
70001         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70002         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70003         Remove unnecessary parentheses.
70004         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70005         Insert necessary parentheses.
70006         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70007         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70008
70009 2002-11-19  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70012         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70013
70014         * lib/mbswidth.h (PARAMS): Remove macro.
70015         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70016         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70017
70018         * lib/gcd.h (PARAMS): Remove macro.
70019         (gcd): Use ANSI C function declarations.
70020         * lib/gcd.c (gcd): Likewise.
70021
70022 2002-11-15  Bruno Haible  <bruno@clisp.org>
70023
70024         * lib/strcspn.c: Include <stddef.h>.
70025         (strcspn): Use ANSI C function declaration. Change return type to
70026         size_t. Use NULL.
70027         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70028         (strpbrk): Use NULL.
70029         * lib/strpbrk.h (PARAMS): Remove macro.
70030         (strpbrk): Use ANSI C function declaration.
70031         * lib/strstr.c: Don't include <sys/types.h>.
70032         * lib/strstr.h (PARAMS): Remove macro.
70033         (strstr): Use ANSI C function declarations.
70034
70035 2002-11-14  Karl Berry  <karl@gnu.org>
70036
70037         * config/mkinstalldirs: `do' on separate line, instead of
70038         `for var; do'.
70039
70040 2002-11-06  Bruno Haible  <bruno@clisp.org>
70041
70042         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70043         * lib/gcd.c (gcd): Likewise.
70044
70045 2002-11-05  Bruno Haible  <bruno@clisp.org>
70046
70047         * lib/gcd.h: New file, from gettext-0.11.5.
70048         * lib/gcd.c: New file, from gettext-0.11.5.
70049
70050 2002-11-05  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70053         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70054         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70055         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70056
70057         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70058         <libintl.h>.
70059         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70060         <libintl.h>.
70061
70062         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70063         * lib/human.c: Include gettext.h instead of <libintl.h>.
70064         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70065         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70066         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70067         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70068         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70069         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70070         (textdomain): Remove definition.
70071         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70072
70073         * lib/long-options.c: Remove include of <libintl.h> and definition of
70074         _.
70075         * lib/same.c: Remove include of <libintl.h> and definition of _.
70076
70077 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70078
70079         * lib/config.charset: A few additions for Solaris.
70080
70081 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70082
70083         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70084         * lib/localcharset.c (locale_charset): Declare as extern "C".
70085
70086 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70087
70088         * lib/config.charset: msdos in uk_UA uses CP1125.
70089
70090 2002-11-04  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70093         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70094         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70095         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70096         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70097
70098 2002-11-04  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/localcharset.c (locale_charset): Don't return an empty string.
70101
70102 2002-11-04  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70105         aliases.
70106
70107 2002-11-04  Bruno Haible  <bruno@clisp.org>
70108
70109         * lib/config.charset: Update for newest glibc. Add canonical names
70110         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70111
70112 2002-11-04  Bruno Haible  <bruno@clisp.org>
70113
70114         * lib/config.charset: Add support for NetBSD.
70115
70116 2002-11-04  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70119
70120 2002-11-01  Bruno Haible  <bruno@clisp.org>
70121
70122         * configure.in: Add AC_CONFIG_AUX_DIR call.
70123         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70124         test/Makefile.
70125         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70126
70127 2002-09-28  Karl Berry  <karl@gnu.org>
70128
70129         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70130         installed automake until the next release, since changes have been
70131         made.
70132
70133 2002-09-25  Karl Berry  <karl@gnu.org>
70134
70135         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70136         * lib/getopt*: copy from libc/posix.
70137         * lib/gettext.h: copy from gettext.
70138         * lib/.cppi-disable: add strdup.c, gettext.h.
70139
70140 2002-09-25  Karl Berry  <karl@gnu.org>
70141
70142         * config/srclist.txt: enable gettext.h check.
70143         * config/config.{guess,sub}: update from prep.
70144         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70145                 from automake 1.6.3.
70146         See srclist*.
70147
70148 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70149
70150         * regex.c (PATFETCH): Remove the translating fetch.
70151         (PATFETCH_RAW): Rename to PATFETCH.
70152         (set_image_of_range): New fun.
70153         (SET_RANGE_TABLE_WORK_AREA): Use it.
70154         (regex_compile): Don't translate the pattern chars so eagerly.
70155         Only do it when inserting an `exactn' bytecode or when handling
70156         a char-range.
70157         (mutually_exclusive_p): Avoid empty statement.
70158
70159 2002-07-06  Jim Meyering  <meyering@lucent.com>
70160
70161         * m4/README: Don't mention Makefile.am.in.
70162         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70163
70164 2002-07-01  Jim Meyering  <meyering@lucent.com>
70165
70166         * lib/c-stack.c: Include sys/time.h.
70167         From Volker Borchert.
70168
70169 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70170
70171         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70172
70173 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70174
70175         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70176         New macro.  Use it uniformly instead of
70177         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70178         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70179         reported by Vin Shelton.
70180
70181 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70182
70183         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70184         Do not assume SA_SIGINFO behavior.
70185         Bug reported by Jim Meyering on NetBSD 1.5.2.
70186
70187 2002-06-22  Jim Meyering  <meyering@lucent.com>
70188
70189         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70190         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70191
70192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70193         now that configure.ac uses AC_GNU_SOURCE.
70194         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70195         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70196
70197         Update to latest tools.  Suggestions from Paul Eggert.
70198         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70199         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70200         * m4/fnmatch.m4: Likewise.
70201         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70202         to AC_HEADER_STDBOOL
70203
70204 2002-06-22  Jim Meyering  <meyering@lucent.com>
70205
70206         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70207         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70208
70209 2002-06-22  Jim Meyering  <meyering@lucent.com>
70210
70211         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70212
70213         * lib/exitfail.c, exitfail.h: Likewise.
70214         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70215
70216         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70217         of fnmatch.h.
70218         (EXTRA_DIST): Add fnmatch_loop.c.
70219         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70220
70221         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70222         * lib/fnmatch.c: Update from diffutils-2.8.2.
70223         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70224         * lib/fnmatch.h: Remove file.
70225
70226 2002-06-21  Jim Meyering  <meyering@lucent.com>
70227
70228         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70229         * m4/mbrtowc.m4: Likewise.
70230
70231         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70232         * m4/mbswidth.m4: Reflect name change:
70233         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70235
70236         * m4/lib-link.m4: Update from gettext-0.11.2.
70237         * m4/gettext.m4: Likewise.
70238
70239         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70240         From Alfred M. Szmidt.
70241
70242 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70243
70244         * lib/file-type.h: Report an error if neither S_ISREG nor
70245         S_IFREG is defined, instead of using a test specific to glibc
70246         2.2.  This should be safe, since POSIX requires S_ISREG and
70247         Unix Version 7 had S_IFREG.  We don't need to check for
70248         <sys/types.h> since we don't use any symbols that it defines.
70249
70250 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70251
70252         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70253         $@-t, so that each temporary file name is unique and valid in the first
70254         8 characters, for operation under DOS.
70255
70256 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70257
70258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70259
70260 2002-06-15  Jim Meyering  <meyering@lucent.com>
70261
70262         Work even with DJGPP 2.03, which lacks support for symlinks.
70263         From Richard Dawe.
70264         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70265         is defined.
70266         * lib/lchown.c (S_ISLNK): Likewise.
70267
70268 2002-06-15  Jim Meyering  <meyering@lucent.com>
70269
70270         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70271         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70272         have been included before this file.
70273
70274 2002-06-14  Jim Meyering  <meyering@lucent.com>
70275
70276         * lib/file-type.h: Use the version from diffutils-2.8.2.
70277         * lib/file-type.c: Likewise.
70278
70279 2002-06-07  Jim Meyering  <meyering@lucent.com>
70280
70281         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70282         They're needed at least for NetBSD 1.5.2.
70283         ($statxfs_includes): Include those same headers.
70284         ($statxfs_includes): Include sys/vfs.h if available.
70285         ($statxfs_includes): Likewise for sys/statvfs.h.
70286         Check for the following members in both structs statfs and statvfs:
70287         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70288
70289 2002-06-01  Jim Meyering  <meyering@lucent.com>
70290
70291         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70292         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70293
70294 2002-05-28  Jim Meyering  <meyering@lucent.com>
70295
70296         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70297         Reported by Volker Borchert.
70298
70299 2002-05-27  Jim Meyering  <meyering@lucent.com>
70300
70301         Fix a problem seen only on nonconforming systems whereby ls.c's
70302         use of localtime, and then of gettimeofday would cause trouble:
70303         the localtime call used to initialize rpl_gettimeofday's save
70304         mechanism would clobber ls's current local time information so
70305         that in any long listing the first file would always be listed
70306         with date 1970-01-01.  Analysis by Volker Borchert.
70307
70308         * lib/gettimeofday.c (localtime): Undefine.
70309         (rpl_localtime): New function.
70310
70311 2002-05-27  Jim Meyering  <meyering@lucent.com>
70312
70313         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70314         localtime.
70315
70316         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70317         use the replacement function; it wouldn't resolve at link time.
70318         Reported by Volker Borchert.
70319
70320 2002-05-22  Jim Meyering  <meyering@lucent.com>
70321
70322         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70323         file-type.h.
70324         * lib/file-type.h: New file.
70325         * lib/file-type.c (file_type): New file/function.  Extracted from
70326         diffutils.
70327
70328 2002-04-30  Jim Meyering  <meyering@lucent.com>
70329
70330         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70331
70332 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70333
70334         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70335
70336 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70337
70338         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70339         Do not check for alloca.h (no longer used) or stdbool.h (was never
70340         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70341
70342 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70343
70344         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70345
70346 2002-04-29  Jim Meyering  <meyering@lucent.com>
70347
70348         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70349         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70350         Use AC_FUNC_STRNLEN here instead.
70351
70352         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70353         With autoconf-2.53a, it's part of AC_PROG_CC.
70354
70355 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70356
70357         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70358         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70359
70360 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70361
70362         * lib/sig2str.h, lib/sig2str.c: New files.
70363         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70364
70365 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70366
70367         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70368         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70369         of 127, since 64 is the largest conceivable number for ancient
70370         nonstandard hosts.
70371         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70372
70373 2002-04-28  Jim Meyering  <meyering@lucent.com>
70374
70375         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70376
70377 2002-04-24  Jim Meyering  <meyering@lucent.com>
70378
70379         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70380         (jm_PREREQ): Use it.
70381
70382         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70383         mach/mach.h fcntl.h.
70384         Check for this function: setlocale.
70385
70386 2002-04-24  Jim Meyering  <meyering@lucent.com>
70387
70388         * lib/gettext.h: New file, from Gettext.
70389         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70390         (libfetish_a_SOURCES): Add gettext.h.
70391
70392 2002-04-16  Jim Meyering  <meyering@lucent.com>
70393
70394         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70395         ut_pid, ut_id, ut_exit.
70396
70397 2002-04-16  Jim Meyering  <meyering@lucent.com>
70398
70399         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70400         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70401         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70402
70403 2002-04-12  Jim Meyering  <meyering@lucent.com>
70404
70405         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70406         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70407         existence of the getmntinfo function.  Needed for Darwin 5.3.
70408
70409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70410         This is necessary at least on Darwin 5.3.
70411
70412         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70413         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70414         strnlen.o in the library, and that makes some versions of ranlib
70415         object.
70416
70417 2002-04-12  Jim Meyering  <meyering@lucent.com>
70418
70419         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70420
70421 2002-04-09  Jim Meyering  <meyering@lucent.com>
70422
70423         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70424         to be more precise.  Rather than saying we're checking whether the
70425         function `works', say what we're testing.
70426         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70427         Reported by Bruno Haible.
70428
70429 2002-03-10  Jim Meyering  <meyering@lucent.com>
70430
70431         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70432         Suggestion from Santiago Vila.
70433
70434 2002-03-08  Jim Meyering  <meyering@lucent.com>
70435
70436         * lib/rename.c: Mention that this wrapper is needed also on
70437         mips-dec-ultrix4.4 systems.
70438
70439 2002-03-02  Jim Meyering  <meyering@lucent.com>
70440
70441         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70442         not HAVE_CLOCK_SETTIME.
70443
70444 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70445
70446         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70447         Check for clock_settime.
70448
70449 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70450
70451         * lib/nanosleep.h: Rename to....
70452         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70453
70454         * lib/gettime.c: New file.
70455         * lib/settime.c: New file.
70456         * lib/stime.c: Remove.
70457
70458         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70459         timespec.h.  Remove nanosleep.h.
70460
70461 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70462
70463         * m4/acl.m4: New file.
70464         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70465         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70466
70467 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70468
70469         * lib/acl.c, lib/acl.h: New files.
70470         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70471
70472 2002-02-24  Jim Meyering  <meyering@lucent.com>
70473
70474         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70475         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70476         cause trouble.  Reported by Nelson Beebe.
70477
70478 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70479
70480         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70481         compilers that don't know that xalloc_die never returns.
70482
70483 2002-02-20  Jim Meyering  <meyering@lucent.com>
70484
70485         * lib/getdate.c: Regenerate using bison-1.33.
70486
70487 2002-02-17  Jim Meyering  <meyering@lucent.com>
70488
70489         * config/config.guess (main): Don't use `head -1'; it's no longer
70490         portable. Use `sed 1q' instead.
70491
70492 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70493
70494         * m4/codeset.m4: Upgrade to gettext-0.11.
70495         * m4/gettext.m4: Upgrade to gettext-0.11.
70496         * m4/glibc21.m4: Upgrade to gettext-0.11.
70497         * m4/iconv.m4: Upgrade to gettext-0.11.
70498         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70499         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70500         * m4/lib-ld.m4: New file, from gettext-0.11.
70501         * m4/lib-link.m4: New file, from gettext-0.11.
70502         * m4/lib-prefix.m4: New file, from gettext-0.11.
70503         * m4/progtest.m4: Upgrade to gettext-0.11.
70504
70505 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70506
70507         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70508         (jm_PREREQ): Use it.
70509
70510 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70511
70512         * lib/posixver.c, lib/posixver.h: New files.
70513         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70514
70515 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70516             Bruno Haible  <bruno@clisp.org>
70517
70518         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70519         (fwrite_success_callback): New declaration.
70520         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70521         print_unicode_char. Call failure callback instead of error.
70522         (fwrite_success_callback): New function.
70523         (exit_failure_callback): New function.
70524         (fallback_failure_callback): New function.
70525         (print_unicode_char): Call unicode_to_mb.
70526
70527 2002-01-26  Jim Meyering  <meyering@lucent.com>
70528
70529         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70530         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70531
70532 2002-01-26  Jim Meyering  <meyering@lucent.com>
70533
70534         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70535
70536 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70537
70538         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70539
70540 2002-01-22  Jim Meyering  <meyering@lucent.com>
70541
70542         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70543         Otherwise, some versions of automake would omit the rule that makes
70544         Makefile from Makefile.in.
70545
70546 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70547
70548         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70549         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70550         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70551         (memcoll): Set errno to zero if there is no error.
70552
70553         * lib/quotearg.c (quotearg_buffer_restyled):
70554         Fix bug with quoting buffers containing NUL when backslashing escapes.
70555         This bug was exposed by the other changes in this patch.
70556         (quotearg_n_options): New arg ARGSIZE.
70557         All callers changed.
70558         (quoting_options_from_style): New function.
70559         (quotearg_n_style): Use it.
70560         (quotearg_n_style_mem): New function.
70561
70562         * lib/quotearg.h (quotearg_n_style_mem): New function.
70563
70564 2002-01-19  Jim Meyering  <meyering@lucent.com>
70565
70566         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70567         Remove useless quotes: DF_PROG="df".
70568         * m4/strnlen.m4: New file.
70569
70570 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70571
70572         * lib/backupfile.c (ISDIGIT): Comment fix.
70573         * lib/getdate.y (ISDIGIT): Likewise.
70574         * lib/posixtm.c (ISDIGIT, year): Likewise.
70575         * lib/strverscmp.c (ISDIGIT): Likewise.
70576         * lib/userspec.c (ISDIGIT): Likewise.
70577
70578 2002-01-16  Jim Meyering  <meyering@lucent.com>
70579
70580         * lib/getdate.y: Add three semicolons, each just before a closing
70581         brace. Bison (as of version 1.31) no longer papers over that mistake.
70582
70583 2002-01-05  Jim Meyering  <meyering@lucent.com>
70584
70585         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70586
70587 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70588
70589         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70590         not silently exit merely because the output buffer happens to
70591         have nothing pending.
70592
70593 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70594
70595         See the big note in ../ChangeLog.
70596         * lib/human.c (suffixes): Prefer K to k for 1024.
70597         (generate_suffix_backwards): New function.
70598         (human_readable_inexact): Use it.
70599         * lib/xstrtol.c (__xstrtol): If there is no number but there
70600         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70601         Accept 'K' as well as 'k'.
70602
70603 2001-12-15  Jim Meyering  <meyering@lucent.com>
70604
70605         * lib/regex.h (__restrict_arr): Update from libc.
70606
70607         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70608         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70609         (STREQ): Define.
70610
70611 2001-12-14  Jim Meyering  <meyering@lucent.com>
70612
70613         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70614         Suggestion from Bruno Haible.
70615
70616 2001-12-10  Jim Meyering  <meyering@lucent.com>
70617
70618         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70619         xrealloc, Instead, include "xalloc.h".
70620         (initbuffer): Don't cast xmalloc return value to char*.
70621         (readline): Reword comment.
70622         Don't cast xrealloc return value to char*
70623         Return NULL, not 0.
70624
70625 2001-12-09  Jim Meyering  <meyering@lucent.com>
70626
70627         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70628         about `signed and unsigned type in conditional expression'.
70629         * lib/posixtm.c (posix_time_parse): Likewise.
70630
70631         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70632
70633         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70634         to avoid a pedantic warning.
70635
70636         * lib/getstr.c: Don't include assert.h.
70637         (getstr): Remove warning-evoking assertions.
70638         Return -1 if offset parameter is out of bounds.
70639         Change the type of a local from int to size_t.
70640
70641         * lib/strftime.c (my_strftime_localtime_r): Include this function
70642         definition in the `#if ! HAVE_TM_GMTOFF' block.
70643
70644         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70645         Include xalloc.h instead.
70646
70647 2001-12-02  Jim Meyering  <meyering@lucent.com>
70648
70649         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70650         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70651         included.
70652
70653         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70654         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70655
70656 2001-11-30  Akim Demaille  <akim@epita.fr>
70657
70658         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70659         before being defined.
70660
70661 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70662
70663         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70664         First arg is int, not unsigned.
70665         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70666         (SIZE_MAX, UINT_MAX): New macros.
70667         (quotearg_n_options): Abort if N is negative.
70668         Avoid overflow check on hosts where size_t is 64 bits and int
70669         is 32 bits, as overflow is impossible there.
70670         Fix off-by-one typo that caused unnecessary reallocation.
70671
70672 2001-11-27  Jim Meyering  <meyering@lucent.com>
70673
70674         * lib/tempname.c: Merge with version from libc.
70675         * lib/regex.c: Likewise.
70676
70677         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70678         systems for which STDC_HEADERS is 0, it was not included, resulting in
70679         a warning about an integer-to-pointer conversion problem with getenv.
70680         Reported by Volker Borchert.
70681
70682 2001-11-26  Jim Meyering  <meyering@lucent.com>
70683
70684         * lib/gtod.h: Remove file.
70685         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70686         * lib/gettimeofday.c: Don't include gtod.h.
70687         (GTOD_init): Remove function.
70688         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70689         Suggestion from Volker Borchert.
70690
70691 2001-11-23  Jim Meyering  <meyering@lucent.com>
70692
70693         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70694         it.
70695         * lib/hash.c (struct hash_table): Define it here instead.
70696
70697 2001-11-22  Jim Meyering  <meyering@lucent.com>
70698
70699         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70700
70701 2001-11-20  Jim Meyering  <meyering@lucent.com>
70702
70703         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70704         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70705
70706 2001-11-19  Jim Meyering  <meyering@lucent.com>
70707
70708         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70709         directory.  Use "conftestXXXXXX" as the template.
70710         Suggestion from Paul Eggert.
70711
70712         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70713         immediately, so the test doesn't mistakenly hit the max-open-files
70714         limit.
70715
70716 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70717
70718         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70719         (TEMPORARIES): New macro.
70720         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70721         removes an artificial limitation (e.g. HP-UX 10.20, where
70722         TMP_MAX is 17576).
70723
70724 2001-11-18  Jim Meyering  <meyering@lucent.com>
70725
70726         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70727
70728 2001-11-18  Jim Meyering  <meyering@lucent.com>
70729
70730         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70731         on SunOS 4.
70732
70733         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70734         files will be created before anything else.
70735
70736 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70737
70738         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70739         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70740
70741 2001-11-17  Jim Meyering  <meyering@lucent.com>
70742
70743         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70744         Prompted by a report from Bob Proulx.
70745
70746         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70747         Instead, require UTILS_FUNC_MKSTEMP.
70748
70749 2001-11-17  Jim Meyering  <meyering@lucent.com>
70750
70751         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70752         Now, that's done as part of AC_FUNC_STRTOD.
70753
70754 2001-11-17  Jim Meyering  <meyering@lucent.com>
70755
70756         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70757         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70758         rather than group writable.  Patch by Juan F. Codagnone.
70759
70760         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70761         xrealloc, Instead, include "xalloc.h".
70762
70763         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70764         Remove explicit declarations of xmalloc, xrealloc,
70765         and xstrdup.  Instead, include "xalloc.h".
70766
70767         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70768         unlocked-io.h.
70769         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70770         Likewise.
70771         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70772
70773         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70774         Reported by Padraig Brady.
70775
70776         * lib/mkstemp.c: #undef mkstemp.
70777         Include config.h.
70778         (rpl_mkstemp): Rename from mkstemp.
70779         Protoize.
70780
70781 2001-11-16  Jim Meyering  <meyering@lucent.com>
70782
70783         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70784         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70785         determine the amount of total physical memory, use pstat_getstatic.
70786         HPUX-11 doesn't define _SC_PHYS_PAGES.
70787         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70788         If sysconf couldn't be used to determine the amount of available
70789         physical memory, use both pstat_getstatic and pstat_getdynamic.
70790         Based on a patch from Bob Proulx.
70791
70792 2001-11-10  Jim Meyering  <meyering@lucent.com>
70793
70794         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70795         (jm_PREREQ): Use it.
70796
70797 2001-11-09  Jim Meyering  <meyering@lucent.com>
70798
70799         * m4/jm-macros.m4: Require autoconf-2.52f.
70800         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70801         Use these AC_-prefixed names, not the AM_-prefixed ones.
70802
70803         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70804
70805 2001-11-05  Jim Meyering  <meyering@lucent.com>
70806
70807         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70808
70809 2001-11-04  Jim Meyering  <meyering@lucent.com>
70810
70811         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70812         $DEFS.
70813
70814 2001-11-03  Jim Meyering  <meyering@lucent.com>
70815
70816         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70817         of AC_DEFUN.
70818
70819         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70820         know the name of the variable in the macro definition.
70821
70822 2001-11-03  Jim Meyering  <meyering@lucent.com>
70823
70824         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70825         in argmatch_to_argument call.
70826
70827         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70828         argument.
70829
70830         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70831         e.g., a fault due to an attempt to free a NULL pointer.
70832
70833 2001-11-01  Jim Meyering  <meyering@lucent.com>
70834
70835         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70836         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70837
70838 2001-11-01  Jim Meyering  <meyering@lucent.com>
70839
70840         * lib/dirfd.c, lib/dirfd.h: New files.
70841         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70842
70843         * lib/hash.c (hash_print) [TESTING]: Clean up.
70844
70845 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70846
70847         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70848         to avoid a warning if -Wall.
70849
70850 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70851
70852         * README: New file
70853         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70854         (per RMS's instructions, this is now the canonical source)
70855         * lgpl/, gpl/: New directories.
70856
70857 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70858
70859         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70860
70861 2001-10-21  Jim Meyering  <meyering@lucent.com>
70862
70863         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70864         this code would end up calling gettext even in packages built
70865         with --disable-nls.
70866         * lib/getopt.c (_): Likewise.
70867         * lib/regex.c (_): Likewise.
70868
70869 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70870
70871         * m4/error.m4 (jm_PREREQ_ERROR):
70872         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70873         AC_FUNC_STRERROR_R does that.
70874         Check for strerror declaration.
70875
70876         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70877         are supposed to have them these days.
70878         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70879         Merge changes from latest Autoconf CVS.
70880         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70881         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70882         POSIX decided to standardize on the int flavor of strerror_r.
70883
70884 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70885
70886         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70887         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70888         Use strerror_r that is only a macro, even if it is not a function.
70889         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70890         (private_strerror): Use prototypes, not old-style function definition.
70891         (print_errno_message): New function.
70892         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70893         char*-flavored one.
70894         (error_tail, error, error_at_line): Use it.
70895
70896 2001-10-11  Jim Meyering  <meyering@lucent.com>
70897
70898         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70899         and quote_n (1, ... to avoid clobbering a buffer.
70900
70901 2001-10-05  Jim Meyering  <meyering@lucent.com>
70902
70903         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70904         hash-pjw.h.
70905         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70906         * lib/hash-pjw.h: New file.
70907
70908 2001-09-30  Jim Meyering  <meyering@lucent.com>
70909
70910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70911         `struct fsstat' has the `f_fstypename' member.
70912         Use that to define FS_TYPE, which is now used to make
70913         the getfsstat link test tighter.
70914
70915 2001-09-30  Jim Meyering  <meyering@lucent.com>
70916
70917         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70918         Include <sys/ucred.h>, for Apple Darwin.
70919         Include sys/mount.h and sys/fs_types.h only if available.
70920         (FS_TYPE): Define.
70921         (read_filesystem_list): Use FS_TYPE.
70922
70923 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70924
70925         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70926         a boolean context.
70927
70928 2001-09-29  Jim Meyering  <meyering@lucent.com>
70929
70930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70931         [one-argument getmntent function]): Include stdio.h before mntent.h.
70932         SunOS 4.1.x needs it for the declaration of `FILE'.
70933         Patch by Volker Borchert.
70934
70935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70936         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70937         sys/fs_types.h, and make the link-test for getfsstat guard #include
70938         directives with appropriate #if HAVE_*_H tests so that we can
70939         detect getfsstat on Apple Darwin1.3.7 systems.
70940         Reported by Nelson Beebe.
70941         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70942
70943 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70944
70945         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70946         #defines strtoimax.  Also treat the other strto* functions
70947         like strtoimax.
70948
70949         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70950         Check for strtoul and strtoumax,
70951         as those declarations are made even in the signed case.
70952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70953         Likewise, for strtol and strtoimax.
70954
70955 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70956
70957         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70958         #defines strtoimax.  Also treat the other strto* functions
70959         like strtoimax.
70960
70961         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70962         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70963         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70964
70965 2001-09-26  Jim Meyering  <meyering@lucent.com>
70966
70967         Most macros in unlocked-io.h had the wrong number of arguments.
70968         * lib/gen-uio: New script.
70969         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70970         * lib/unlocked-io.hin: Remove file.
70971         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70972         rather than trying to embed it here.
70973         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70974         Reported by Padraig Brady.
70975
70976 2001-09-25  Volker Borchert  <bt@teknon.de>
70977
70978         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70979         `result'.
70980
70981 2001-09-24  Jim Meyering  <meyering@lucent.com>
70982
70983         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70984
70985 2001-09-23  Jim Meyering  <meyering@lucent.com>
70986
70987         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70988         instead of the mere test for existence of mntent.h.  The latter
70989         would get a false-positive on AIX 3.4 systems.
70990         In the outer getmntent if-block, don't die if neither of the getmntent
70991         tests succeeds.  Instead, just fall through and continue with the
70992         remaining tests.
70993
70994 2001-09-23  Jim Meyering  <meyering@lucent.com>
70995
70996         * lib/mountlist.c: Remove useless parentheses in #if directives.
70997         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70998         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70999
71000 2001-09-22  Jim Meyering  <meyering@lucent.com>
71001
71002         * m4/gettext.m4: New file.  From gettext.
71003         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71004         * m4/progtest.m4: Likewise
71005         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71006         * m4/glibc21.m4: Likewise.
71007
71008         * m4/libintl.m4: Remove.  No longer used.
71009
71010 2001-09-22  Jim Meyering  <meyering@lucent.com>
71011
71012         * lib/localcharset.c: Update from latest gettext.
71013         * lib/config.charset: Likewise.
71014
71015 2001-09-20  Jim Meyering  <meyering@lucent.com>
71016
71017         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71018         strtoimax.
71019         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71020         strtoumax.
71021
71022 2001-09-20  Jim Meyering  <meyering@lucent.com>
71023
71024         * lib/xstrtol.c (strtoimax): Guard declaration with
71025         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71026         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71027         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71028         (strtoumax): Likewise, for completeness (it wasn't necessary).
71029
71030 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71031
71032         * lib/strtoimax.c (HAVE_LONG_LONG):
71033         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71034         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71035         to work around bug in IBM C compiler.
71036
71037 2001-09-17  Jim Meyering  <meyering@lucent.com>
71038
71039         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71040         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71041         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71042         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71043         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71044         whenever the right hand side need not be expanded by the shell.
71045
71046 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71047
71048         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71049         library.  It's not correct, as some older glibcs are buggy.
71050         fnmatch wasn't fixed until glibc 2.2.
71051
71052         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71053         special shell magic here.
71054
71055 2001-09-16  Jim Meyering  <meyering@lucent.com>
71056
71057         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71058         * m4/jm-macros.m4: Require it.
71059
71060 2001-09-16  Jim Meyering  <meyering@lucent.com>
71061
71062         * lib/mkdir.c: New file.
71063
71064 2001-09-15  Jim Meyering  <meyering@lucent.com>
71065
71066         * m4/jm-macros.m4: Check for help2man.
71067
71068 2001-09-11  Jim Meyering  <meyering@lucent.com>
71069
71070         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71071         The body, by Paul Eggert, was moved here from configure.in.
71072         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71073
71074 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71075
71076         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71077         (jm_PREREQ): Use it.
71078
71079 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71080
71081         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71082         Use ssize_t, not int, to store result of readlink.
71083         Check for ssize_t overflow as well as size_t overflow,
71084         as POSIX says the result of readlink is implementation-defined
71085         when ssize_t overflows.
71086         Remove unnecessary cast to char*.
71087         Use free+malloc instead of realloc, as the storage doesn't need
71088         to be preserved and it's clearer and can be more efficient that way.
71089         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71090         * lib/xreadlink.h (xreadlink): Update prototype.
71091
71092 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71093
71094         * lib/xgetcwd.c: Revert some of the previous change; intead,
71095         fix the HAVE_GETCWD_NULL code to behave more like the
71096         !HAVE_GETCWD_NULL code used to.
71097
71098         Include "xalloc.h".
71099         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71100         invoke xalloc_die.
71101
71102 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71103
71104         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71105         sys/param.h, as pathmax.h includes them.
71106
71107 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71108
71109         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71110         (jm_PREREQ_XGETCWD): New macro.
71111
71112         * m4/getcwd.m4: New file.
71113
71114 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71115
71116         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71117         like the HAVE_GETCWD_NULL code.
71118         Include pathmax.h if not HAVE_GETCWD.
71119         Do not include xalloc.h.
71120         (INITIAL_BUFFER_SIZE): New symbol.
71121         Do not use xmalloc / xrealloc, since the caller is responsible for
71122         handling errors.  Preserve errno around `free' during failure.
71123         Do not overrun buffer when using getwd.
71124
71125 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71126
71127         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71128         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71129         getcwd (NULL, 0).
71130
71131 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71132
71133         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71134         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71135         spotted by Jim Meyering.
71136
71137 2001-09-03  Jim Meyering  <meyering@lucent.com>
71138
71139         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71140         failure.
71141
71142 2001-09-02  Jim Meyering  <meyering@lucent.com>
71143
71144         * lib/error.c: Update from GNU libc.
71145
71146 2001-09-01  Jim Meyering  <meyering@lucent.com>
71147
71148         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71149         Used by df.
71150
71151 2001-09-01  Jim Meyering  <meyering@lucent.com>
71152
71153         * lib/xreadlink.c: New file.
71154         * lib/xreadlink.h: New file.
71155         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71156         xreadlink.h.
71157
71158         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71159         doesn't conflict with sparc Solaris 7's definition in
71160         /usr/include/sys/int_types.h.
71161
71162         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71163         files.
71164         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71165         and strncasecmp as r-values.  Unixware didn't have declarations.
71166
71167 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71168
71169         * lib/xstrtol.h: Add copyright notice.
71170         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71171         LONGINT_INVALID_SUFFIX_CHAR.
71172
71173 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71174
71175         * lib/xstrtol.c (strtoimax): New decl.
71176
71177 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71178
71179         * lib/xgetcwd.c: Don't include pathmax.h.
71180         Include stdlib.h and unistd.h if available.
71181         Include xalloc.h.
71182         (xmalloc, xstrdup, free): Remove decls.
71183         (xgetcwd): Don't assume sizes fit in unsigned.
71184         Check for overflow when computing sizes.
71185         Simplify reallocation code.
71186
71187 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71188
71189         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71190         a directory's st_size can have an arbitrary value, so the old
71191         usage could waste an arbitrary amount of memory.  All uses
71192         changed.
71193         * lib/savedir.h: Update prototype.
71194
71195 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71196
71197         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71198
71199         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71200         old strtoimax.c.
71201
71202         Also, make the following further changes to make this file's
71203         configuration more similar to that of strtol.c:
71204         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71205         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71206         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71207         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71208         changed to signed values.
71209
71210         And make the following changes as well:
71211         Fix copyright notice, as 1999 was missing.
71212         (verify): New macro.
71213         (strtoimax): Check sizes at compile-time, not run-time.
71214         Prefer strtol to strtoll if both work.
71215         (main): Remove; it was not that useful and was a pain to maintain.
71216
71217         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71218
71219 2001-08-31  Jim Meyering  <meyering@lucent.com>
71220
71221         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71222         Use an initial, malloc'd, buffer of length 128 rather than
71223         a statically allocated one of length 1024.
71224
71225 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71226
71227         Simplify code, partly by assuming autoconf 2.52 semantics.
71228
71229         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71230
71231         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71232         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71233         All uses removed.
71234         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71235         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71236         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71237         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71238         jm_AC_HEADER_INTTYPES_H.
71239         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71240
71241         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71242
71243         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71244         Quote first arg of AC_DEFUN.
71245         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71246         since they are needed to parse the include file even if we need
71247         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71248         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71249         but with opposite signedness.
71250
71251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71252
71253         Merge 'exclude' changes from tar 1.13.22.
71254         This fixes one or two unlikely storage allocation overflow bugs,
71255         but doesn't change user-visible behavior otherwise.
71256
71257 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71258
71259         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71260         (jm_PREREQ_EXCLUDE): New macro.
71261
71262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71263
71264         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71265         tm to be declared.
71266
71267 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71268
71269         * lib/hash.c: Remove '2001' from copyright notice.
71270
71271 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71272
71273         * lib/full-write.h: New file.
71274         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71275         * lib/full-write.c: Correct credits, as cccp.c no longer
71276         exists and anyway it was so heavily changed from the old cccp
71277         code as to be unrecognizable.  Include full-write.h.
71278         (full_write) Return size_t, with short writes meaning failure.
71279         All callers changed.  This fixes a bug with large buffers
71280         on 64-bit hosts.
71281         * lib/utime.c: Include full-write.h.
71282
71283 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71284
71285         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71286         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71287         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71288         Include if available.
71289         (<xalloc.h>): Include
71290         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71291         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71292         collide with FNM macros.
71293         (struct patopts): New struct.
71294         (struct exclude): Use it, as exclude patterns now come with options.
71295         (new_exclude): Support above changes.
71296         (new_exclude, add_exclude_file):
71297         Initial size must now be a power of two to simplify overflow checking.
71298         (free_exclude, fnmatch_no_wildcards): New function.
71299         (excluded_filename): No longer requires options arg, as the options
71300         are determined by add_exclude.  Now returns bool, not int.
71301         (excluded_filename, add_exclude):
71302         Add support for the fancy new exclusion options.
71303         (add_exclude, add_exclude_file): Now takes int options arg.
71304         Check for arithmetic overflow when computing sizes.
71305         (add_exclude_file): xrealloc might modify errno, so don't
71306         realloc until after errno might be used.
71307
71308         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71309         New macros.
71310         (free_exclude): New decl.
71311         (add_exclude, add_exclude_file): Now takes int options arg.
71312         (excluded_filename): No longer requires options arg, as the options
71313         are determined by add_exclude.  Now returns bool, not int.
71314
71315 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71316
71317         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71318
71319 2001-08-27  Jim Meyering  <meyering@lucent.com>
71320
71321         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71322
71323         * lib/version-etc.c (N_): Remove definition.
71324         Revert most of last change.
71325         Instead, simply don't mark the `Copyright...' string for translation.
71326         Based on advice from Paul Eggert.
71327
71328         * lib/strtoxmax.c: Tweak comment.
71329
71330 2001-08-26  Jim Meyering  <meyering@lucent.com>
71331
71332         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71333
71334         * m4/xstrtoimax.m4: New file.
71335         * m4/xstrtoumax.m4: Add comments explaining why we
71336         AC_REPLACE_FUNCS(strtol).
71337
71338 2001-08-26  Jim Meyering  <meyering@lucent.com>
71339
71340         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71341         of copyright with `%s' so translators don't get an untranslated
71342         message in 2002.
71343         (COPYRIGHT_YEAR): Define.
71344         (version_etc): Use fprintf rather than fputs.
71345         Suggestion from Ulrich Drepper.
71346
71347         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71348
71349         * lib/strtoll.c: New file, from GNU libc.
71350         * lib/xstrtoimax.c: New file.
71351
71352         * lib/xstrtol.h: Add xstrtoimax.
71353         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71354         * lib/strtoimax.c: New file.  Likewise, but first define
71355         STRTOUXMAX_SIGNED.
71356
71357         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71358         ...
71359         * lib/strtoxmax.c: ... then renamed to this.
71360
71361 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71362
71363         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71364         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71365         (jm_AC_TYPE_INTMAX_T): New macro.
71366         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71367
71368         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71369
71370         * m4/longlong.m4: Renamed from ulonglong.m4.
71371         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71372         * m4/uintmax_t.m4: Removed.
71373
71374 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71375
71376         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71377         Port to Solaris 8, where 'sed' requires a space after the 'r'
71378         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71379         Redirect output to $tmp just once.
71380
71381 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71382
71383         * lib/addext.c (<errno.h>): Include.
71384         (errno): Declare if not defined.
71385         (addext): Work correctly when pathconf returns -1 and leaves
71386         errno alone because there is no limit.  Also, work even if
71387         pathconf returns a value greater than SIZE_MAX.
71388
71389 2001-08-12  Jim Meyering  <meyering@lucent.com>
71390
71391         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71392         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71393         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71394         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71395         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71396         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71397         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71398         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71399         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71400         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71401         utime.m4, utimes.m4, xstrtoumax.m4:
71402         Quote the first argument in each use of AC_DEFUN.
71403
71404 2001-08-12  Jim Meyering  <meyering@lucent.com>
71405
71406         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71407         Simply `return getcwd (NULL, 0);'.
71408         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71409         Use 1300 as initial value for length, not PATH_MAX.
71410
71411         * lib/pathmax.h: Clean up cpp syntax.
71412
71413 2001-08-12  Jim Meyering  <meyering@lucent.com>
71414
71415         * lib/gettimeofday.c: New file.
71416         * lib/gtod.h: New file.
71417         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71418
71419 2001-08-05  Jim Meyering  <meyering@lucent.com>
71420
71421         * m4/jm-macros.m4: Require autoconf-2.52.
71422
71423 2001-08-04  Jim Meyering  <meyering@lucent.com>
71424
71425         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71426         stmt, to get in sync with glibc.
71427
71428 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71429
71430         The following changes are from gettext 0.10.39 as maintained by
71431         Bruno Haible.
71432
71433         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71434         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71435         with inverted sense.  All uses changed.
71436
71437         * lib/mbswidth.c: Don't include <limits.h>.
71438         Include <stdlib.h> and <string.h> unconditionally.
71439         (iswcntrl, mbsinit, ISCNTRL): New macros.
71440         (mbsnwidth): Use K&R style function declarations.
71441         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71442         can optimize it when MB_CUR_MAX == 1.
71443         The width of control characters is zero, not 1.
71444
71445 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71446
71447         The following changes are from gettext 0.10.39 as maintained by
71448         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71449
71450         * m4/codeset.m4: Upgrade to serial AM1.
71451         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71452         all uses changed.  Quote first arg of AC_DEFUN.
71453         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71454
71455         * m4/iconv.m4: Upgrade to serial AM2.
71456         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71457         Add --with-libconv-prefix.
71458         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71459         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71460         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71461         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71462         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71463
71464         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71465         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71466         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71467         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71468         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71469         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71470         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71471         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71472         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71473
71474         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71475         string.h any more.
71476
71477         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71478         not the default value.
71479
71480         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71481         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71482         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71483         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71484         Also check for iswcntrl, used for wcwidth fallback.
71485         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71486         to Autoconf 2.13.
71487
71488 2001-08-03  Jim Meyering  <meyering@lucent.com>
71489
71490         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71491         as it was in the original.  Reported by Paul Eggert.
71492
71493 2001-07-16  Jim Meyering  <meyering@lucent.com>
71494
71495         * m4/gettimeofday.m4: New file.
71496         Prompted by a report from Bernhard Baehr.
71497
71498 2001-07-15  Jim Meyering  <meyering@lucent.com>
71499
71500         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71501         stuff. Now it's in ../Makefile.cfg.
71502
71503 2001-07-15  Jim Meyering  <meyering@lucent.com>
71504
71505         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71506         (BUILT_SOURCES): Add unlocked-io.h.
71507         (io_functions): Define.
71508         (unlocked-io.h): New rule.
71509         (DISTCLEANFILES): Add unlocked-io.h.
71510         (all-local): Depend on unlocked-io.h, to ensure it is created.
71511
71512         * lib/unlocked-io.hin: New file
71513
71514         * lib/regex.c: Update from glibc.
71515
71516 2001-07-05  Jim Meyering  <meyering@lucent.com>
71517
71518         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71519         recommendation.
71520         (libfetish_a_SOURCES): Put all .h files here instead.
71521         Remove a thus-exposed (better checks in automake) duplicate and
71522         two unnecessary .h files.
71523
71524 2001-07-04  Jim Meyering  <meyering@lucent.com>
71525
71526         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71527         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71528         distcheck failure.
71529
71530 2001-07-02  Jim Meyering  <meyering@lucent.com>
71531
71532         The following changes were prompted by suggestions from Bruno Haible.
71533
71534         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71535         is now generated.
71536         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71537         definition of EXTRA_DIST.
71538         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71539         ensure that the generated file is created/updated whenever the list
71540         of $(unlocked_functions) is changed.
71541         (jm-glibc-io.m4): New rule.
71542         (unlocked-io.h): New rule -- currently unused.
71543
71544 2001-06-24  Jim Meyering  <meyering@lucent.com>
71545
71546         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71547         unmatched right bracket, rather than kludging it with an extra,
71548         falsely-matching quote in a comment.  Patch by Akim Demaille.
71549
71550 2001-06-11  Jim Meyering  <meyering@lucent.com>
71551
71552         * lib/regex.c: Update from GNU libc.
71553
71554 2001-05-27  Jim Meyering  <meyering@lucent.com>
71555
71556         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71557         Check for ut_type in struct utmp.
71558
71559 2001-05-27  Jim Meyering  <meyering@lucent.com>
71560
71561         * lib/readutmp.h (UT_TYPE): Define.
71562
71563 2001-05-24  Jim Meyering  <meyering@lucent.com>
71564
71565         * lib/argmatch.c: Include "quote.h".
71566         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71567         quote function.  Reported by Göran Uddeborg.
71568
71569 2001-05-22  Jim Meyering  <meyering@lucent.com>
71570
71571         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71572         now that we use the package-supplied version unconditionally.
71573         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71574
71575 2001-05-21  Jim Meyering  <meyering@lucent.com>
71576
71577         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71578         shell syntax errors.
71579
71580 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71581
71582         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71583
71584 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71585
71586         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71587         Don't bother to check library strftime, since
71588         we'll be using our own my_strftime function anyway.
71589         Define my_strftime instead of strftime.
71590
71591 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71592
71593         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71594         which is not yet declared.
71595
71596 2001-05-15  Jim Meyering  <meyering@lucent.com>
71597
71598         * m4/regex.m4: Use proper quoting so brackets appear in the test
71599         program.
71600         Reported by, and with help from, Bruno Haible.
71601
71602 2001-05-13  Jim Meyering  <meyering@lucent.com>
71603
71604         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71605         undefined.
71606
71607 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71608
71609         dirname code cleanup.  base_name now behaves more compatibly
71610         with POSIX basename when given file names that have trailing
71611         slashes, and similarly for dir_name.  Add new primitives
71612         base_len and dir_len.  Put the directory-name-related decls
71613         into dirname.h.
71614
71615         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71616         * lib/backupfile.c (base_name): Likewise.
71617         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71618         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71619         * lib/makepath.c (strip_trailing_slashes): Likewise.
71620         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71621         ISSLASH): Likewise.
71622         * lib/rename.c (strip_trailing_slashes): Likewise.
71623         * lib/same.c (base_name): Likewise.
71624         * lib/stripslash.c (ISSLASH): Likewise.
71625
71626         * lib/addext.c: Include <dirname.h> after size_t is defined.
71627         * lib/backupfile.c: Likewise.
71628
71629         * lib/addext.c (addext): Use base_len to trim redundant
71630         trailing slashes instead of doing it ourselves.
71631         But do not trim the last slash if it is not redundant.
71632
71633         * lib/backupfile.c (find_backup_file_name,
71634         max_backup_version): Use base_len instead of rolling it ourselves.
71635         Handle the case of "" and (on DOS) "C:" correctly.
71636
71637         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71638         needed. Include <string.h>, <dirname.h>.
71639         (base_name): Allow file names ending in slashes, other than names
71640         that are all slashes.  In this case, return the basename followed
71641         by the slashes.  This is more general, and can be used in places
71642         where the original base_name purposely had an assertion failure.
71643         (base_len): New function.
71644
71645         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71646         Do not include <assert.h>; no longer needed.
71647         Include xalloc.h.
71648         (memrchr): Remove decl.
71649         (dir_name_r): Remove.
71650         (dir_len): Renamed from dirlen.  All callers changed.
71651         Rewrite in terms of base_name, for simplicity and consistency.
71652         (dir_name): Never return NULL.  All callers changed.
71653         Do not include <stdlib.h> in test program; no longer needed.
71654         return 0; is fine for test program.
71655
71656         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71657         New macros.
71658         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71659
71660         * lib/path-concat.c (path_concat): Use base_len to compute
71661         base length, not strlen; this means we cannot rely on memcpy
71662         to null-terminate.
71663
71664         * lib/same.c (STREQ): Remove.
71665         (same_name): Handle the case where the basename ends in trailing '/'.
71666
71667         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71668         a slash was stripped.  Do not strip the last slash after a
71669         file system prefix.
71670
71671 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71672
71673         * lib/Makefile.am (libfetish_a_SOURCES):
71674         Add strftime.c, since we now compile it on all hosts.
71675
71676         * lib/strftime.c (my_strftime):
71677         Define to nstrftime if emacs, but only if my_strftime is not defined.
71678         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71679         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71680         Add one more extra argument: a nanoseconds value.
71681         All uses changed.
71682         (ns): New macro.
71683         (my_strftime function): Add %N format.
71684         (emacs_strftimeu): Renamed from emacs_strftime,
71685         with extra ut argument.
71686
71687 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71688
71689         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71690
71691 2001-04-21  Jim Meyering  <meyering@lucent.com>
71692
71693         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71694         doesn't interfere.
71695
71696 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71697
71698         * m4/ftruncate.m4: Check for chsize.
71699         Link with ftruncate.o unconditionally if ftruncate is missing.
71700         This was required when cross-compiling to i586-mingw32msvc.
71701
71702 2001-04-08  Jim Meyering  <meyering@lucent.com>
71703
71704         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71705         recomputed; that's necessary when the offset spans a DST transition.
71706         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71707
71708 2001-04-02  Jim Meyering  <meyering@lucent.com>
71709
71710         * lib/regex.h, regex.c: Update from GNU libc.
71711
71712 2001-03-24  Jim Meyering  <meyering@lucent.com>
71713
71714         * m4/jm-macros.m4: Require autoconf-2.49d.
71715
71716 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71717
71718         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71719
71720 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71721
71722         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71723
71724 2001-03-17  Jim Meyering  <meyering@lucent.com>
71725
71726         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71727         now that the version in autoconf is equivalent.
71728         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71729
71730         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71731         Suggestion from Akim Demaille.
71732
71733         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71734         (jm_PREREQ_TEMPNAME): New function.
71735
71736 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71737
71738         * lib/tempname.c (uint64_t): Define to uintmax_t if
71739         not defined, and if UINT64_MAX is not defined.
71740         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71741         Reported by John David Anglin.
71742
71743 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71744
71745         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71746         resolve alias if codeset is empty.
71747         * lib/config.charset (BeOS): Use wildcard syntax.
71748
71749 2001-03-13  Jim Meyering  <meyering@lucent.com>
71750
71751         * lib/path-concat.c (path_concat)
71752         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71753         concatenating e.g., `C:' and `foo'.
71754         From Bruno Haible.
71755
71756 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71757
71758         * lib/localcharset.c (locale_charset): Don't use
71759         setlocale(LC_CTYPE,NULL). Don't return NULL.
71760         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71761
71762 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71763
71764         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71765         support for DOS/DJGPP.
71766
71767 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71768
71769         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71770         lacks mkstemp.  Compile our own tempname.c if we compile our own
71771         mkstemp.c, as mkstemp relies on tempname.
71772
71773 2001-03-01  Jim Meyering  <meyering@lucent.com>
71774
71775         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71776         AH_VERBATIM really does output its argument verbatim.
71777
71778 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71779
71780         * lib/Makefile.am (libfetish_a_SOURCES):
71781         Add dup-safer.c, fopen-safer.c.
71782         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71783
71784         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71785         * lib/unistd-safer.h: New files.
71786
71787 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71788
71789         The mkstemp replacement is taken from glibc 2.2.2, with some
71790         portability fixes for use outside glibc, as follows:
71791
71792         * lib/tempname.c (struct_stat64): New macro.
71793         (direxists, __gen_tempname): Use it.
71794         This avoids a portability problem with Solaris 8.
71795
71796         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71797         (<stddef.h>, <stdint.h>, <string.h>):
71798         Include only if STDC_HEADERS || _LIBC.
71799         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71800         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71801         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71802         (__set_errno): Define this macro if <errno.h> doesn't.
71803         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71804         Define these macros if <stdio.h> doesn't.
71805         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71806         Define these macros if <sys/stat.h>
71807         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71808         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71809         __xstat64): Define if not _LIBC.
71810         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71811         (__gen_tempname): Invoke gettimeofday only if
71812         HAVE_GETTIMEOFDAY || _LIBC;
71813         otherwise, fall back on plain "time".
71814         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71815
71816         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71817
71818         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71819
71820 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71821
71822         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71823
71824 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71825
71826         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71827         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71828         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71830
71831 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71832
71833         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71834         Remove workaround macros for hosts that have mbrtowc but not
71835         mbstate_t, as we now insist on proper declarations for both
71836         before using mbrtowc.
71837
71838 2001-02-17  Jim Meyering  <meyering@lucent.com>
71839
71840         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71841         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71842         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71843         UnixWare 7.1.1.
71844
71845         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71846         rather than AC_CACHE_VAL.
71847
71848 2001-02-17  Jim Meyering  <meyering@lucent.com>
71849
71850         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71851         around included file name.
71852
71853         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71854
71855         * lib/strftime.c: Update from GNU libc (the only changes were to
71856         comments).
71857
71858 2001-02-17  Jim Meyering  <meyering@lucent.com>
71859
71860         * lib/regex.c: Update from libc.
71861
71862 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71863
71864         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71865         clash.
71866
71867 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71868
71869         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71870         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71871         Reported by Mark Hounschell via Paul Eggert.
71872
71873 2001-02-07  Jim Meyering  <meyering@lucent.com>
71874
71875         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71876
71877 2001-02-05  Jim Meyering  <meyering@lucent.com>
71878
71879         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71880         it includes the patch required for `large file' support with at least
71881         HP-UX's 10.20 /bin/cc.
71882
71883 2001-02-03  Jim Meyering  <meyering@lucent.com>
71884
71885         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71886         AS_IF, now that it works once again (mysteriously).
71887         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71888
71889 2001-01-30  Jim Meyering  <meyering@lucent.com>
71890
71891         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71892         * m4/chown.m4: Rename conftestchown to conftest.chown.
71893         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71894         s/conftestdir2/conftest.d2/.
71895         * m4/utimes.m4: s/conftestdata/conftest.data/
71896         Inspired by Pavel Roskin's change in autoconf.
71897
71898 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71899
71900         * lib/config.charset: Update for FreeBSD 4.2.
71901
71902 2001-01-27  Jim Meyering  <meyering@lucent.com>
71903
71904         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71905         a use of AS_IF.
71906         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71907
71908 2001-01-26  Jim Meyering  <meyering@lucent.com>
71909
71910         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71911         quotearg.c includes it.
71912
71913 2001-01-26  Jim Meyering  <meyering@lucent.com>
71914
71915         * lib/quotearg.c: Include stddef.h.
71916         * lib/quote.c: Include stddef.h.
71917         Reported by Axel Kittenberger.
71918
71919         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71920         line in double quotes so that it evokes a better diagnostic.
71921         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71922         Reported by Axel Kittenberger.
71923
71924 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71925
71926         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71927         as if it was a `charset'.
71928
71929 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71930
71931         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71932         has const.
71933
71934 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71935
71936         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71937         to avoid a warning.  Add back 'const' to inptr.
71938
71939 2001-01-20  Jim Meyering  <meyering@lucent.com>
71940
71941         Be sure that headers are checked before used in code compiled
71942         for the type checks.
71943         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71944         In place of that, invoke jm_CHECK_ALL_TYPES.
71945         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71946         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71947         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71948         The check for ssize_t was mistakenly run before the test for unistd.h.
71949
71950         The configure-time check for stdbool.h was missing.
71951         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71952         (jm_PREREQ_HASH): New function.
71953
71954 2001-01-17  Jim Meyering  <meyering@lucent.com>
71955
71956         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71957         for autoconf-2.49c.
71958         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71959
71960 2001-01-16  Jim Meyering  <meyering@lucent.com>
71961
71962         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71963         From Bruno Haible.
71964
71965 2001-01-14  Jim Meyering  <meyering@lucent.com>
71966
71967         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71968         foo and bar.  Create conftestdir/ in the script, not in the C code.
71969         Remove directories in the script, not in the C code.
71970         Remove conftestdir{,2} before trying to create the directory.
71971         Make the entire configure script fail if the mkdir fails.
71972
71973 2001-01-14  Jim Meyering  <meyering@lucent.com>
71974
71975         * lib/rename.c: New file.  From Volker Borchert.
71976         Include stdlib.h, string.h or strings.h, and xalloc.h.
71977         Use strip_trailing_slashes rather than open-coding it.
71978
71979 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71980
71981         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71982
71983 2001-01-03  Jim Meyering  <meyering@lucent.com>
71984
71985         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71986         of local `inptr' to avoid warning with some system declarations of
71987         iconv.
71988
71989 2001-01-02  Volker Borchert  <bt@teknon.de>
71990
71991         * m4/rename.m4: New file.
71992         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71993
71994 2001-01-01  Jim Meyering  <meyering@lucent.com>
71995
71996         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71997         even on systems with utmpx.h.  It's necessary for the declaration of
71998         utmp's ut_user member.  Reported by Andreas Jaeger.
71999
72000         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72001         available. They are required for the declarations of getgrgid and
72002         getpwuid resp.
72003         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72004         Reported by Andreas Jaeger.
72005
72006 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72007
72008         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72009         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72010         so `make install' also works in VPATH builds.
72011
72012 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72013
72014         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72015         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72016         can be used in subdirectories.
72017
72018 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72019
72020         * lib/modechange.c: Do not assume that mode_t uses the
72021         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72022         the other-execute bit of FOO even if S_IXOTH != 1.
72023
72024         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72025         WOTH, XOTH, ALLM): New macros.
72026         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72027          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72028         Use them.
72029         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72030         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72031         (mode_compile):
72032         No need to use uintmax_t; unsigned long is long enough.
72033         Don't bother to get suffix since we don't use it.
72034
72035 2000-12-26  Jim Meyering  <meyering@lucent.com>
72036
72037         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72038         better with autoheader.
72039
72040 2000-12-24  Jim Meyering  <meyering@lucent.com>
72041
72042         * lib/hash.c (is_prime): Return explicit boolean values.
72043         (hash_get_first): Return NULL to appease Irix5.6's 89.
72044         Reported by Nelson Beebe.
72045
72046 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72047
72048         * lib/localcharset.c (locale_charset): Add support for Win32.
72049
72050 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72051
72052         * lib/physmem.h, lib/physmem.c: New files.
72053
72054         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72055         (noinst_HEADERS): Add physmem.h.
72056
72057         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72058         't' for compatibility with Solaris 8 sort.
72059
72060 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72061
72062         * lib/config.charset: Add support for BeOS.
72063
72064 2000-12-17  Jim Meyering  <meyering@lucent.com>
72065
72066         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72067         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72068
72069 2000-12-16  Jim Meyering  <meyering@lucent.com>
72070
72071         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72072         N and M) would have treated it like `chown N:N FILE'.
72073
72074         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72075
72076 2000-12-16  Jim Meyering  <meyering@lucent.com>
72077
72078         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72079         SHELLS_FILE to a file name that's useful on djgpp systems.
72080         Include stdlib.h.
72081         (ADDITIONAL_DEFAULT_SHELLS): Define.
72082         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72083         Based mostly on a patch from Prashant TR.
72084
72085 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72086
72087         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72088         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72089         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72090
72091 2000-12-08  Andreas Schwab  <schwab@suse.de>
72092
72093         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72094         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72095
72096 2000-12-07  Jim Meyering  <meyering@lucent.com>
72097
72098         * lib/stripslash.c (ISSLASH): Define.
72099         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72100         `/'.
72101         From Prashant TR.
72102
72103         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72104         (dir_name_r): Declare this function as static.
72105         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72106         manifest itself on a name containing a mix of slashes and
72107         backslashes.
72108         Make this function work with names starting with a DOS-style
72109         drive letter and colon prefix.
72110         (dir_name): Append `.' if necessary.
72111         Based mostly on patches from Prashant TR and Eli Zaretskii.
72112
72113         * lib/dirname.h (dir_name_r): Remove prototype.
72114
72115 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72116
72117         * m4/off_t-format.m4: Remove this file.
72118         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72119
72120 2000-12-06  Jim Meyering  <meyering@lucent.com>
72121
72122         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72123         replacement strtoull, we may well need the replacement strtoul, too.
72124         Check for declarations of strtoul and strtoull.
72125         Check for strtol.  Mainly as a cue to cause automake to include
72126         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72127         Check for limits.h -- strtol.c needs it.
72128
72129 2000-12-05  Jim Meyering  <meyering@lucent.com>
72130
72131         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72132
72133 2000-12-04  Jim Meyering  <meyering@lucent.com>
72134
72135         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72136         Also include memory.h, stdlib.h, unistd.h if appropriate.
72137         Reported by Andreas Jaeger (conflicting declaration of malloc).
72138
72139 2000-12-02  Jim Meyering  <meyering@lucent.com>
72140
72141         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72142         * m4/jm-macros.m4 (jm_MACROS): require it.
72143
72144 2000-12-02  Jim Meyering  <meyering@lucent.com>
72145
72146         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72147
72148 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72149
72150         * lib/memrchr.c: Include <config.h> before any system include file.
72151
72152 2000-11-30  Jim Meyering  <meyering@lucent.com>
72153
72154         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72155
72156 2000-11-30  Jim Meyering  <meyering@lucent.com>
72157
72158         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72159
72160 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72161
72162         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72163
72164 2000-11-26  Jim Meyering  <meyering@lucent.com>
72165
72166         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72167
72168 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72169
72170         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72171         size of (size_t) -1; it's not portable.
72172
72173 2000-11-17  Jim Meyering  <meyering@lucent.com>
72174
72175         * lib/strstr.c: Update from GNU libc.
72176
72177 2000-11-17  Akim Demaille  <akim@epita.fr>
72178
72179         * lib/obstack.h: Formatting changes.
72180         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72181         prevent type checking.
72182         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72183         cast the value to (void *): assigning a `foo *' to a `void *'
72184         variable is valid.
72185         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72186
72187 2000-11-16  Jim Meyering  <meyering@lucent.com>
72188
72189         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72190
72191 2000-11-11  Jim Meyering  <meyering@lucent.com>
72192
72193         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72194
72195 2000-11-10  Jim Meyering  <meyering@lucent.com>
72196
72197         * lib/obstack.h: Update from GNU libc.
72198         * lib/obstack.c: Likewise.
72199
72200 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72201
72202         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72203
72204 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72205
72206         * lib/getusershell.c (setusershell): Use rewind rather than
72207         fseek/fseeko, to avoid configuration hassles with fseeko.
72208         Don't bother opening SHELLS_FILE if shellstream is NULL;
72209         it's not necessary.
72210
72211 2000-11-05  Jim Meyering  <meyering@lucent.com>
72212
72213         * lib/makepath.h (make_dir): Declare.
72214         * lib/makepath.c (make_dir): Remove `static' attribute.
72215         Tweak a comment.
72216
72217 2000-11-04  Jim Meyering  <meyering@lucent.com>
72218
72219         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72220
72221 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72222
72223         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72224         last one in a bucket, advance to the next bucket.
72225
72226 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72227
72228         * lib/fnmatch.c: Do not comment out all the code if we are using
72229         the GNU C library, because in some cases we are replacing buggy
72230         code in the GNU C library itself.
72231
72232 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72233
72234         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72235         (regex_compile): Catch bogus \(\1\).
72236
72237 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72238
72239         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72240         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72241         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72242
72243 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72244
72245         * lib/error.h, getline.h, modechange.h:
72246         Remove "2000" from Copyright line, as the file hasn't been
72247         changed this year other than in the copyright notice.
72248
72249         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72250         was changed this year.
72251
72252 2000-10-29  Jim Meyering  <meyering@lucent.com>
72253
72254         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72255         renaming.
72256         * m4/ls-mntd-fs.m4: Likewise
72257
72258 2000-10-29  Jim Meyering  <meyering@lucent.com>
72259
72260         * lib/xstat.in: Fix grammar in comment.
72261
72262 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72263
72264         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72265         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72266         doesn't define __restrict_arr.
72267
72268 2000-10-28  Jim Meyering  <meyering@lucent.com>
72269
72270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72271         (jm_PREREQ_MEMCHR): New function.
72272
72273 2000-10-28  Jim Meyering  <meyering@lucent.com>
72274
72275         * lib/memchr.c: Update from libc.
72276         Adjust for portability:
72277         [HAVE_STDLIB_H]: Include stdlib.h.
72278         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72279         Undef __memchr, too.
72280         [!weak_alias]: Define __memchr to memchr.
72281
72282         * lib/regex.c: Update from libc.
72283         * lib/regex.h: Likewise.
72284         * lib/getopt1.c: Likewise.
72285         * lib/memcmp.c: Likewise.
72286
72287         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72288         Avoid using fseek, when possible -- it's broken by design.
72289         Patch by Ulrich Drepper.
72290
72291 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72292
72293         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72294         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72295         Giving in to popular pressure to shut up the compiler with casts.
72296
72297 2000-10-26  Jim Meyering  <meyering@lucent.com>
72298
72299         * lib/strftime.c: Update from libc.
72300
72301 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72302
72303         * regex.c: More `unsigned char' -> `re_char' changes.
72304         Also change several `int' into `re_wchar_t'.
72305         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72306         (PUSH_FAILURE_POINTER): Don't cast any more.
72307         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72308         We want GCC to complain, since this piece of code makes
72309         re_match non-reentrant, which *should* be fixed.
72310         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72311         (EXTEND_BUFFER): Use RETALLOC.
72312         (SET_LIST_BIT): Don't cast.
72313         (re_wchar_t): New type.
72314         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72315         that those two functions will always properly return.
72316         (IMMEDIATE_QUIT_CHECK): Cast to void.
72317         (analyse_first): Use recursion rather than an explicit stack.
72318         (re_compile_fastmap): Can't fail anymore.
72319         (re_search_2): Don't check re_compile_fastmap for failure.
72320         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72321         Now also sets the new value (passed in a new argument).
72322         (re_match_2_internal): Use it.
72323         Also, use a new var `reg' of type size_t when looping through regs
72324         rather than reuse the inappropriate `mcnt'.
72325
72326 2000-10-25  Jim Meyering  <meyering@lucent.com>
72327
72328         * lib/obstack.c: Update from libc.
72329
72330 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72331
72332         * regex.c (regex_compile): Change the way of handling a range from
72333         a char less than 256 to a char not less than 256.
72334
72335 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72336
72337         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72338         NT-Emacs only.
72339         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72340         so that re_search functions only quit when callers expect them to.
72341
72342 2000-10-23  Jim Meyering  <meyering@lucent.com>
72343
72344         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72345         wrong.  That set_locale call must not have any side effects.
72346         From Paul Eggert.
72347
72348 2000-10-22  Jim Meyering  <meyering@lucent.com>
72349
72350         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72351         [CYCLIC]: Remove now-unused definition.
72352
72353         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72354         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72355         Suggestion from Ulrich Drepper.
72356
72357 2000-10-21  Jim Meyering  <meyering@lucent.com>
72358
72359         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72360         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72361         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72362
72363 2000-10-21  Jim Meyering  <meyering@lucent.com>
72364
72365         * lib/dirname.c (memrchr): Declare if necessary.
72366         (dir_name): Remove the restriction that there be no
72367         trailing slashes.  Now, this code skips past them, effectively
72368         ignoring them.
72369         [TEST_DIRNAME] (main): New unit tests.
72370
72371         * lib/memrchr.c: New file from GNU libc.
72372         Undef __memrchr, too.
72373         [!weak_alias]: Define __memrchr to memrchr.
72374         Guard weak_alias use with `#ifdef weak_alias'.
72375
72376 2000-10-21  Jim Meyering  <meyering@lucent.com>
72377
72378         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72379         (dir_name): Use dir_name_r.
72380         * lib/dirname.h (dir_name_r): Declare it.
72381
72382 2000-10-17  Jim Meyering  <meyering@lucent.com>
72383
72384         * lib/quote.h (PARAMS): Define and use.
72385         Reported by Akim Demaille.
72386
72387         * lib/getopt.c: Update from libc.
72388
72389 2000-10-16  Jim Meyering  <meyering@lucent.com>
72390
72391         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72392         setlocale.
72393         From Jan Fedak.
72394
72395 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72396
72397         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72398
72399 2000-09-25  Jim Meyering  <meyering@lucent.com>
72400
72401         * lib/md5.h (rol): Define (from GnuPG).
72402
72403         * lib/sha.c: Give credit (GnuPG) where due.
72404         (M): Use rol rather than open-coding it.
72405         Add a FIXME comment.
72406
72407 2000-09-21  Jim Meyering  <meyering@lucent.com>
72408
72409         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72410         Reported by Michael Stone.
72411
72412 2000-09-20  Jim Meyering  <meyering@lucent.com>
72413
72414         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72415         (noinst_HEADERS): Add sha.h.
72416         Based on code from Scott G. Miller and from GnuPG.
72417
72418 2000-09-18  Jim Meyering  <meyering@lucent.com>
72419
72420         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72421         LIBS. Otherwise, everyone ends up linking with -lelf for some
72422         configurations.
72423         Reported by Mike Stone.
72424
72425 2000-09-15  Jim Meyering  <meyering@lucent.com>
72426
72427         * lib/regex.c: Update from libc.
72428
72429 2000-09-10  Jim Meyering  <meyering@lucent.com>
72430
72431         * lib/getopt.c (_getopt_internal): Update from glibc.
72432
72433 2000-09-09  Jim Meyering  <meyering@lucent.com>
72434
72435         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72436         think it should be used as a general replacement for isascii.
72437         * lib/fnmatch.c: Likewise.
72438         * lib/mbswidth.c: Likewise
72439         * lib/regex.c: Likewise.
72440
72441         Don't use atoi.
72442         * lib/userspec.c: Include sys/param.h and limits.h.
72443         Include xstrtol.h.
72444         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72445         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72446         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72447         UID, GID.  Check range.
72448
72449 2000-09-06  Jim Meyering  <meyering@lucent.com>
72450
72451         * lib/getopt.c (_getopt_internal): Update from glibc.
72452
72453 2000-08-30  Jim Meyering  <meyering@lucent.com>
72454
72455         * lib/strftime.c: Merge in changes from GNU libc.
72456
72457 2000-08-26  Jim Meyering  <meyering@lucent.com>
72458
72459         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72460         * m4/fpending.m4: New file.
72461
72462 2000-08-26  Jim Meyering  <meyering@lucent.com>
72463
72464         * lib/closeout.c: Include "__fpending.h".
72465         (close_stdout_status): Return right away if there's nothing to flush.
72466
72467         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72468         * lib/__fpending.c: New file.
72469         * lib/__fpending.h: New file.
72470
72471 2000-08-20  Jim Meyering  <meyering@lucent.com>
72472
72473         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72474         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72475         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72476
72477 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72478
72479         Improve fileutils installation on systems where running
72480         programs (like install) can't be unlinked.
72481         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72482         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72483
72484 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72485
72486         Standardize on "memory exhausted" instead of "Memory exhausted"
72487         or "virtual memory exhausted".
72488         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72489         "virtual memory exhausted".
72490         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72491         our own message.
72492         * lib/userspec.c (parse_user_spec): Likewise.
72493         * lib/bumpalloc.h: comment fix
72494         * lib/same.c, userspec.c: Include xalloc.h.
72495
72496         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72497         not char *const and pointing to a constant array.
72498         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72499         (xrealloc): Comment fix.
72500
72501         * lib/userspec.c (parse_user_spec):
72502         Don't translate a message until just before returning,
72503         to avoid unnecessary translation.
72504
72505 2000-08-07  Jim Meyering  <meyering@lucent.com>
72506
72507         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72508         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72509         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72510         getgroups.c, gethostname.c, getopt.h, group-member.c,
72511         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72512         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72513         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72514         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72515         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72516         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72517         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72518         yesno.c: Back out Copyright date changes for each file with no change
72519         this year.  This eases coordination with other programs using the same
72520         source code modules.  From Paul Eggert.
72521
72522 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72523
72524         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72525         not char, for compatibility with glibc 2.1.3 strftime.c.
72526
72527 2000-08-03  Greg McGary  <greg@mcgary.org>
72528
72529         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72530         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72531         (EXTEND_BUFFER): Use them.
72532
72533 2000-08-01  Jim Meyering  <meyering@lucent.com>
72534
72535         * lib/dirname.c (ISSLASH): Define.
72536         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72537         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72538         both `\' and `/' may be use as path separators.
72539         Based on a patch from Prashant TR.
72540
72541 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72542
72543         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72544         slot vector a constant, since it might get modified.
72545
72546 2000-07-31  Jim Meyering  <meyering@lucent.com>
72547
72548         * lib/xmalloc.c: Use `virtual memory exhausted', not
72549         `Memory exhausted'.
72550         * lib/obstack.c (print_and_abort): Likewise.
72551
72552 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72553
72554         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72555         buffer, so that the caller can always quote one small
72556         component of a "memory exhausted" message in slot 0.
72557         From a suggestion by Jim Meyering.
72558
72559 2000-07-30  Jim Meyering  <meyering@lucent.com>
72560
72561         * lib/makepath.c (make_path): Quote the other instance, too.
72562
72563         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72564         (STATIC_BUF_SIZE): Define.
72565         (quotearg_n_options): Use only statically allocated storage when
72566         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72567         than STATIC_BUF_SIZE.
72568
72569 2000-07-29  Jim Meyering  <meyering@lucent.com>
72570
72571         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72572         * lib/dirname.c (dir_name): Likewise.
72573
72574         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72575         `/'.
72576
72577         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72578         (dir_name): Assert that there are no trailing slashes.
72579
72580 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72581
72582         * lib/mbswidth.h (mbswidth): Add a flags argument.
72583         (mbswidth): New declaration.
72584         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72585         * lib/mbswidth.c (mbswidth): Add a flags argument.
72586         (mbsnwidth): New function.
72587
72588 2000-07-24  Jim Meyering  <meyering@lucent.com>
72589
72590         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72591
72592 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72593
72594         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72595
72596 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72597
72598         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72599         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72600         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72601         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72602         invoke multibyte primitives.
72603
72604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72605
72606         * lib/quotearg.c:
72607         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72608         so that mbstate_t is always defined.
72609
72610         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72611         be 1 in at least one GCC installation, and this configuration
72612         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72613         performance on hosts that have mbrtowc but have only unibyte
72614         locales, but I assume these hosts are rare.
72615
72616 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72617
72618         * lib/mbswidth.c (_XOPEN_SOURCE):
72619         Don't define; this causes problems on Solaris 7.
72620         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72621
72622 2000-07-23  Jim Meyering  <meyering@lucent.com>
72623
72624         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72625         too: getgrgid, getpwuid, getuid.
72626
72627 2000-07-23  Jim Meyering  <meyering@lucent.com>
72628
72629         * lib/basename.c (base_name): Add an assertion.
72630
72631 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72632
72633         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72634         shadow its mbsinit function.
72635
72636 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72637
72638         * lib/mbswidth.h: New file.
72639         * lib/mbswidth.c: New file.
72640         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72641         (noinst_HEADERS): Add mbswidth.h.
72642
72643 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72644
72645         * lib/config.charset: Add support for FreeBSD. Improve support for
72646         HP-UX and IRIX 6.
72647
72648 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72649
72650         * m4/mbswidth.m4: New file.
72651         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72652
72653 2000-07-15  Jim Meyering  <meyering@lucent.com>
72654
72655         * lib/makepath.c: Include quote.h.
72656         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72657         corresponding argument in a `quote (...)' call.
72658         Give better diagnostics.
72659
72660         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72661         (noinst_HEADERS): Add quote.h.
72662
72663         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72664         from tar's src/misc.c.
72665         * lib/quote.h: New file.  Prototypes for same.
72666
72667 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72668
72669         From a suggestion by Bruno Haible.
72670         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72671         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72672         to decide whether to define the BeOS workaround macro;
72673         this adjusts to the change to AC_MBSTATE_T.
72674
72675 2000-07-14  Jim Meyering  <meyering@lucent.com>
72676
72677         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72678         jm_AC_TYPE_UINTMAX_T.
72679
72680 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72681
72682         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72683
72684         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72685         quotearg_buffer_restyled): Add support for
72686         clocale_quoting_style.  Undo previous change to
72687         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72688         and "{RIGHT QUOTATION MARK}" msgids.
72689
72690 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72691
72692         From a suggestion by Bruno Haible.
72693         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72694         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72695         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72696         and mbstate_t, to a single-part test that simply defines mbstate_t.
72697         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72698         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72699
72700 2000-07-10  Jim Meyering  <meyering@lucent.com>
72701
72702         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72703
72704         * m4/gnu-source.m4: Output to confdefs.h directly.
72705         Suggestion from Akim Demaille.
72706
72707 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72708
72709         The old behavior of quoting `like this' doesn't look good with
72710         newer, ISO-style fonts.  See:
72711         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72712
72713         Instead, quote "like this" by default.  Let the translator
72714         tailor the locale-specific quoting behavior by providing
72715         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72716
72717         * lib/quotearg.c (N_): New macro.
72718         (gettext_default): New function.
72719         (quotearg_buffer_restyled): Use
72720         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72721         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72722
72723 2000-07-09  Jim Meyering  <meyering@lucent.com>
72724
72725         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72726         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72727
72728         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72730
72731 2000-07-09  Jim Meyering  <meyering@lucent.com>
72732
72733         * lib/Most files: Update copyright dates to include 2000.
72734
72735 2000-07-08  Jim Meyering  <meyering@lucent.com>
72736
72737         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72738         if not defined.
72739         (xgethostname): Remove now-unnecessary #ifdef.
72740         Move declaration of `err' into loop where it's used.
72741
72742 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72743         and Bruno Haible  <haible@clisp.cons.org>
72744
72745         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72746         only if the test for an object-type mbstate_t fails.  This
72747         prevents us from mistakenly reporting that mbstate_t is a
72748         system object type after we "#define mbstate_t int" to work
72749         around its lack.
72750
72751 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72752         and Bruno Haible  <haible@clisp.cons.org>
72753
72754         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72755
72756 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72757
72758         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72759         to strerror_r.
72760         Include <ctype.h> for use of isalpha.
72761
72762 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72763
72764         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72765         by allocating a larger buffer. Test the gethostname return value for
72766         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72767         returns an error and ENAMETOOLONG isn't defined.
72768
72769 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72770
72771         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72772         dimension.
72773
72774 2000-07-04  Jim Meyering  <meyering@lucent.com>
72775
72776         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72777         of the deprecated AC_CHECKING.
72778
72779 2000-07-04  Jim Meyering  <meyering@lucent.com>
72780
72781         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72782         Reported by Bruno Haible.
72783
72784 2000-07-04  Jim Meyering  <meyering@lucent.com>
72785
72786         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72787         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72788         lacks mbrtowc.
72789
72790 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72791
72792         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72793         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72794
72795 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72796         and Bruno Haible  <haible@clisp.cons.org>
72797
72798         * lib/quotearg.c (mbrtowc):
72799         Assign to *pwc, and return 1 only if result is nonzero.
72800         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72801
72802 2000-07-03  Jim Meyering  <meyering@lucent.com>
72803
72804         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72805
72806 2000-07-03  Jim Meyering  <meyering@lucent.com>
72807
72808         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72809         This is necessary to get a definition of e.g., UTMP_FILE on
72810         HP-UX 10.20.
72811         From Bob Proulx.
72812
72813 2000-07-02  Jim Meyering  <meyering@lucent.com>
72814
72815         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72816
72817         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72818         AC_LIBOBJ(function_name).
72819         * m4/chown.m4: Likewise.
72820         * m4/fnmatch.m4: Likewise.
72821         * m4/ftruncate.m4: Likewise.
72822         * m4/getgroups.m4: Likewise.
72823         * m4/getline.m4: Likewise.
72824         * m4/group-member.m4: Likewise.
72825         * m4/jm-macros.m4: Likewise.
72826         * m4/lstat.m4: Likewise.
72827         * m4/malloc.m4: Likewise.
72828         * m4/memcmp.m4: Likewise.
72829         * m4/nanosleep.m4: Likewise.
72830         * m4/putenv.m4: Likewise.
72831         * m4/realloc.m4: Likewise.
72832         * m4/regex.m4: Likewise.
72833         * m4/stat.m4: Likewise.
72834         * m4/strftime.m4: Likewise.
72835
72836 2000-07-02  Jim Meyering  <meyering@lucent.com>
72837
72838         * lib/quotearg.c (mbstate_t): Don't define here.
72839
72840 2000-07-02  Jim Meyering  <meyering@lucent.com>
72841
72842         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72843
72844 2000-07-01  Jim Meyering  <meyering@lucent.com>
72845
72846         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72847
72848 2000-07-01  Jim Meyering  <meyering@lucent.com>
72849
72850         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72851         problem.
72852
72853 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72854
72855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72856         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72857
72858 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72859
72860         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72861         per change in ../m4/ls-mntd-fs.m4.
72862         (read_filesystem_list): Ignore symbolic links.
72863
72864 2000-06-29  Jim Meyering  <meyering@lucent.com>
72865
72866         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72867         for declaration of strcmp.
72868
72869         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72870
72871         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72872         Avoid warning by casting result to `char *' to remove `const'.
72873
72874 2000-06-28  Jim Meyering  <meyering@lucent.com>
72875
72876         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72877         included by quotearg.c, for which we perform this test.  From
72878         Bruno Haible.
72879
72880 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72881
72882         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72883         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72884         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72885
72886 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72887
72888         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72889
72890 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72891
72892         savedir now sets errno on failure and invokes xmalloc to get memory.
72893         Fix a couple of other minor bugs while we're at it.
72894
72895         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72896         (NAMLEN): Remove macro.
72897         (malloc, realloc): Remove decls.
72898         (stpcpy): Likewise.
72899         ("xalloc.h"): Include.
72900         (NAME_SIZE_DEFAULT): New macro.
72901         (savedir): Use xmalloc / xrealloc to allocate memory.
72902         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72903         Skip "" directory entries.
72904         Use strlen to calculate directory entry length, since the old method
72905         is rarely used these days and isn't worth supporting.
72906         Don't use a pointer after freeing it.
72907         Check for integer overflow when calculating allocation size.
72908         Use memcpy to copy entries, instead of stpcpy.
72909         Set errno properly when returning NULL.
72910         Check for readdir error.
72911
72912 2000-06-26  Jim Meyering  <meyering@lucent.com>
72913
72914         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72915
72916 2000-06-25  Jim Meyering  <meyering@lucent.com>
72917
72918         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72919         Linux header bug when _XOPEN_SOURCE is defined to 500.
72920
72921 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72922
72923         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72924         deficiency.
72925
72926 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72927
72928         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72929         Include xalloc.h.
72930         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72931
72932 2000-06-24  Jim Meyering  <meyering@lucent.com>
72933
72934         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72935         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72936         for which strerror does return char*, but which lacks a conveniently
72937         accessible declaration of the function.  If the compile-test says
72938         strerror_r doesn't work, then resort to a `run'-test that works on
72939         BeOS and segfaults on DEC Unix.
72940
72941 2000-06-24  Jim Meyering  <meyering@lucent.com>
72942
72943         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72944
72945 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72946
72947         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72948         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72949
72950 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72951
72952         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72953         (mbrtowc, mbstate_t): Define substitutes if
72954         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72955         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72956         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72957
72958 2000-06-23  Jim Meyering  <meyering@lucent.com>
72959
72960         * m4/afs.m4: Add missing AC_MSG_RESULT.
72961         Reported by Bruno Haible.
72962
72963         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72964         Suggestion from Bruno Haible.
72965
72966 2000-06-23  Jim Meyering  <meyering@lucent.com>
72967
72968         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72969
72970 2000-06-21  Jim Meyering  <meyering@lucent.com>
72971
72972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72973
72974 2000-06-21  Jim Meyering  <meyering@lucent.com>
72975
72976         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72977         (noinst_HEADERS): Add getstr.h.
72978
72979         * lib/getline.c (getstr): Move into a separate file.
72980         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72981         the following changes: new parameter, delim2; both delim[12]
72982         parameters have type `int', not `char'.  The latter would lose
72983         with 8-bit delimiters.
72984         * lib/getstr.h: New file.
72985
72986 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72987
72988         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72989         than 1024, return a memory chunk of least possible size, instead
72990         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72991         Use free/xmalloc instead of xrealloc to avoid copying for very long
72992         paths.
72993
72994 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72995
72996         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72997         the empty string.
72998
72999 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73000
73001         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73002         address, not strdup.  Include <stdlib.h> and don't declare free().
73003
73004 2000-06-19  Jim Meyering  <meyering@lucent.com>
73005
73006         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73007
73008 2000-06-18  Jim Meyering  <meyering@lucent.com>
73009
73010         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73011
73012         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73013         `checking whether...' message to be consistent with that of the
73014         lstat test.
73015
73016 2000-06-18  Jim Meyering  <meyering@lucent.com>
73017
73018         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73019         Besides, these days every porting target provides a mkdir function.
73020
73021         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73022         needed. (this snippet comes from src/system.h).
73023
73024 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73025
73026         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73027
73028 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73029
73030         * lib/human.c (adjust_value): New function.
73031         (human_readable_inexact): Apply rounding style even when
73032         printing approximate values.
73033
73034 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73035
73036         * lib/human.c (human_readable_inexact): Allow an input block
73037         size that is not a multiple of the output block size, and vice versa.
73038         Reported by Piergiorgio Sartor.
73039
73040 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73041
73042         * lib/getdate.y (get_date): Apply relative times after time
73043         zone indicator, not before.  Reported by Todd A. Jacobs.
73044
73045 2000-06-13  Jim Meyering  <meyering@lucent.com>
73046
73047         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73048
73049         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73050
73051 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73052
73053         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73054
73055 2000-06-12  Jim Meyering  <meyering@lucent.com>
73056
73057         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73058         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73059         optional argument.
73060         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73061         the optional argument, `lib'.
73062
73063 2000-06-08  Jim Meyering  <meyering@lucent.com>
73064
73065         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73066
73067 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73068
73069         Rewrite largefile configuration so that we don't need to run
73070         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73071         AC_CANONICAL_HOST in configure.in -- jmm]
73072
73073         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73074         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73075         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73076         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73077         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73078         All uses changed.
73079         Instead of inspecting the output of getconf, try to compile the
73080         test program without and with the macro definition.
73081         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73082         for getconf.  Instead, check for the needed flags by compiling
73083         test programs.
73084
73085 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73086
73087         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73088
73089 2000-06-04  Jim Meyering  <meyering@lucent.com>
73090
73091         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73092         SunOS 4.1.4 for which gid_t is an unsigned type.
73093
73094 2000-06-03  Jim Meyering  <meyering@lucent.com>
73095
73096         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73097         now that autoconf requires that.
73098
73099         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73100         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73101         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73102
73103 2000-06-03  Jim Meyering  <meyering@lucent.com>
73104
73105         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73106
73107 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73108
73109         * m4/glibc21.m4: New file.
73110         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73111
73112 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73113
73114         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73115         newer, don't install charset.alias.
73116         * lib/config.charset: Change the Linux/glibc rules so they become empty
73117         on glibc-2.1 or newer.
73118
73119 2000-06-02  Jim Meyering  <meyering@lucent.com>
73120
73121         * lib/mountlist.c: Back out last change.  Instead, do this...
73122         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73123         me_dummy member using the same `ignore'-testing code.
73124         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73125         fs_type strings.
73126         From Mark D. Roth.
73127
73128 2000-05-29  Jim Meyering  <meyering@lucent.com>
73129
73130         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73131         mounts with the `ignore' attribute.  Based on a patch from
73132         Mark D. Roth.
73133
73134 2000-05-28  Jim Meyering  <meyering@lucent.com>
73135
73136         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73137         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73138         * m4/stat.m4: Likewise.
73139         * m4/lstat.m4: Likewise.
73140         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73141
73142         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73143         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73144
73145 2000-05-26  Jim Meyering  <meyering@lucent.com>
73146
73147         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73148
73149 2000-05-24  Jim Meyering  <meyering@lucent.com>
73150
73151         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73152         autoconf requires that.
73153         * m4/lib-check.m4: Likewise.
73154         * m4/jm-macros.m4: Likewise.
73155         * m4/strftime.m4: Likewise.
73156
73157         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73158         AC_CHECK_DECLS, now that autoconf requires that.
73159
73160 2000-05-22  Jim Meyering  <meyering@lucent.com>
73161
73162         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73163         * m4/lstat.m4: Likewise.
73164
73165 2000-05-22  Jim Meyering  <meyering@lucent.com>
73166
73167         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73168
73169 2000-05-20  Jim Meyering  <meyering@lucent.com>
73170
73171         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73172         (jm_PREREQ): Use it.
73173
73174 2000-05-18  Jim Meyering  <meyering@lucent.com>
73175
73176         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73177         back, too, since it may have been modified by allocate_entry.
73178         (hash_delete): Rewrite to use neither the assignment operator
73179         nor the comma operator in an if-expression.
73180
73181 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73182
73183         * lib/closeout.c:
73184         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73185         Remove; no longer needed.
73186         "quotearg.h": Add include.
73187         (file_name): Do not bother to explicitly initialize to NULL; it's less
73188         efficient on some hosts.
73189         (close_stdout_status): Remove test as to whether stdout was already
73190         closed; it breaks for the case "echo x | sort >&-".
73191         Quote file name colons.
73192         Do not assume that _("write error") lacks format strings.
73193
73194 2000-05-15  Jim Meyering  <meyering@lucent.com>
73195
73196         * lib/version-etc.c (version_etc_copyright): Update the copyright
73197         string used in all --version output.
73198
73199 2000-05-14  Jim Meyering  <meyering@lucent.com>
73200
73201         * lib/closeout.c (close_stdout_set_file_name): New function.
73202         (close_stdout_status): Use new file-scoped global.
73203         Return right away if fstat says the stdout file descriptor is invalid.
73204         * lib/closeout.h (close_stdout_set_file_name): Declare.
73205
73206 2000-05-10  Jim Meyering  <meyering@lucent.com>
73207
73208         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73209         (close_stdout_set_status): New function.
73210         * lib/closeout.h (close_stdout_set_status): Declare.
73211
73212 2000-05-09  Jim Meyering  <meyering@lucent.com>
73213
73214         * m4/gettext.m4: Rename this...
73215         * m4/libintl.m4: ...to this.
73216
73217 2000-05-08  Jim Meyering  <meyering@lucent.com>
73218
73219         * lib/long-options.c: Don't include closeout.h.
73220         (parse_long_options): Don't call close_stdout for --version.
73221
73222 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73223
73224         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73225         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73226         2.1.3 bug.  This avoids a clash when files like regex.c define
73227         _GNU_SOURCE.
73228
73229 2000-05-06  Jim Meyering  <meyering@lucent.com>
73230
73231         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73232         (AC_REPLACE_FUNCS): Add strnlen.
73233
73234         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73235         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73236
73237         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73238         AC_SEARCH_LIBS call for nanosleep.
73239         (LIB_NANOSLEEP): Set and AC_SUBST.
73240
73241 2000-05-06  Jim Meyering  <meyering@lucent.com>
73242
73243         * lib/strnlen.c: Undefine __strnlen and strnlen.
73244         [!weak_alias]: Define __strnlen to strnlen.
73245
73246         * lib/atexit.c: New file, from libiberty.
73247
73248 2000-05-06  Jim Meyering  <meyering@lucent.com>
73249
73250         * lib/closeout.c (close_stdout_status): Also check for errors on the
73251         stderr stream.
73252
73253 2000-05-05  Jim Meyering  <meyering@lucent.com>
73254
73255         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73256         AC_SEARCH_LIBS call for clock_gettime.
73257         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73258
73259         * m4/search-libs.m4: Update from autoconf.
73260
73261         su doesn't work on Solaris 2.6.
73262         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73263         <shadow.h>.  Reported by Dragos Harabor.
73264
73265 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73266
73267         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73268         memcpy instead of xmalloc, xrealloc, path_concat.
73269         (locale_charset): Treat empty environment variables as absent.
73270         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73271
73272 2000-05-04  Jim Meyering  <meyering@lucent.com>
73273
73274         * lib/getopt.c: Update from glibc.
73275         * lib/obstack.c: Likewise.
73276         * lib/obstack.h: Likewise.
73277         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73278         file
73279
73280         * lib/regex.h: Likewise.
73281         * lib/strndup.c: Likewise.
73282         * lib/strnlen.c: New file, from glibc.
73283
73284 2000-05-03  Jim Meyering  <meyering@lucent.com>
73285
73286         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73287
73288 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73289
73290         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73291         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73292         compile-time test, rather than inspecting host and OS, to
73293         decide whether to define _LARGEFILE_SOURCE.
73294
73295 2000-05-01  Jim Meyering  <meyering@lucent.com>
73296
73297         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73298
73299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73300         Based on a patch from Bruno Haible.
73301
73302 2000-05-01  Jim Meyering  <meyering@lucent.com>
73303
73304         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73305
73306 2000-04-29  Jim Meyering  <meyering@lucent.com>
73307
73308         * lib/path-concat.c: Declare strdup only if it's not defined.
73309         * lib/canon-host.c: Likewise.
73310
73311 2000-04-28  Jim Meyering  <meyering@lucent.com>
73312
73313         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73314         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73315         is included first, then limits.h is included by locale.h by libintl.h.
73316         From John David Anglin.
73317
73318 2000-04-25  Jim Meyering  <meyering@lucent.com>
73319
73320         * lib/makepath.c (S_IRWXUGO): Define.
73321         (make_path): Always perform explicit chmod if MODE specifies any
73322         of the `special' permission bits.  Prompted by a bug report against
73323         install from Mate Wierdl and Joost van Baal.
73324
73325 2000-04-18  Jim Meyering  <meyering@lucent.com>
73326
73327         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73328         (jm_PREREQ): Use it.
73329
73330 2000-04-18  Jim Meyering  <meyering@lucent.com>
73331
73332         * lib/README: New file.
73333
73334         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73335         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73336
73337 2000-04-17  Jim Meyering  <meyering@lucent.com>
73338
73339         Get it right :-)
73340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73341         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73342         Suggestion from Akim Demaille.
73343
73344 2000-04-17  Jim Meyering  <meyering@lucent.com>
73345
73346         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73347         the definition of it to rpl_strftime also defined-away the system's
73348         declaration.
73349
73350 2000-04-15  Jim Meyering  <meyering@lucent.com>
73351
73352         Use `C' to denote so-called `contiguous' files, the same way
73353         that tar does.
73354         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73355         (ftypelet): Use S_ISCTG.
73356         From Michael Deutschmann.
73357
73358 2000-04-14  Jim Meyering  <meyering@lucent.com>
73359
73360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73361         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73362         clobbered.
73363
73364 2000-04-14  Jim Meyering  <meyering@lucent.com>
73365
73366         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73367
73368 2000-04-13  Jim Meyering  <meyering@lucent.com>
73369
73370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73371         AH_VERBATIM to insert required #ifndef into config.h.in.
73372         Suggestion from Akim Demaille.
73373
73374 2000-04-12  Jim Meyering  <meyering@lucent.com>
73375
73376         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73377         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73378         Christian Krackowizer.
73379
73380         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73381         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73382         (AC_SYS_LARGEFILE): Require.
73383         (AM_C_PROTOTYPES): Require.
73384
73385 2000-04-08  Jim Meyering  <meyering@lucent.com>
73386
73387         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73388         names don't conflict.  Reported by Eli Zaretskii.
73389
73390 2000-04-07  Jim Meyering  <meyering@lucent.com>
73391
73392         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73393         sys/types.h, to work around system header problems on AIX 3.2.5.
73394         From Bruno Haible.
73395
73396 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73397
73398         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73399         bug.  Deal with the different error behavior of Irix iconv.
73400
73401 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73402
73403         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73404         IRIX if the installer said otherwise.
73405
73406 2000-04-05  Jim Meyering  <meyering@lucent.com>
73407
73408         Portability tweaks required for ultrix4.3.
73409         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73410         (jm_CHECK_DECLS): Add getutent to the list of functions.
73411         (_jm_DECL_HEADERS): Add utmpx.h.
73412         From John David Anglin.
73413
73414         * m4/strftime.m4: Back out the 2000-04-02 change.
73415         Instead of that change, simply undefine putenv in the test program.
73416
73417 2000-04-05  Jim Meyering  <meyering@lucent.com>
73418
73419         Portability tweaks required for ultrix4.3.
73420         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73421         getutent.
73422         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73423         * lib/canon-host.c: Declare strdup.
73424         * lib/path-concat.c: Likewise.
73425         From John David Anglin.
73426
73427 2000-04-04  Jim Meyering  <meyering@lucent.com>
73428
73429         Be more DOS 8.3-friendly.
73430         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73431         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73432         * lib/Makefile.am: Reflect renaming.
73433         Reported by Eli Zaretskii.
73434
73435         Use a temporary file name that won't clash with `charset.alias'
73436         in the DOS 8.3 name space.
73437         * lib/Makefile.am (charset_tmp): Define.
73438         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73439         (uninstall-local): Likewise.
73440         Reported by Eli Zaretskii.
73441
73442 2000-04-03  Jim Meyering  <meyering@lucent.com>
73443
73444         * m4/gettext.m4: Fix typo in comment.
73445
73446         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73447         textutils/configure.in).  Suggestion from Paul Eggert.
73448         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73449
73450 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73451
73452         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73453         variable in the shell rather than using putenv, which isn't
73454         portable.  This avoids the configure-time inter-test dependency
73455         on the potentially-renamed putenv function.
73456
73457 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73458
73459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73460         before checking struct stat.st_blksize, so that
73461         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73462
73463 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73464
73465         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73466         since strftime.c uses HAVE_STRFTIME to decide whether to use
73467         the underlying strftime.
73468
73469 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73470
73471         * lib/time/strftime.c (my_strftime): Make sure we call the system
73472         strftime, not ourselves, when invoking the underlying strftime.
73473
73474 2000-03-24  Jim Meyering  <meyering@lucent.com>
73475
73476         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73477         (charset_alias): Define.
73478         (install-exec-local): Factor out common code.
73479         (uninstall-local): Split lines longer than 80.
73480         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73481         (SUFFIXES): Define.
73482         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73483         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73484
73485 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73486
73487         * lib/config.charset: Output a line containing "Packages using this
73488         file".
73489         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73490         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73491         ref-del.sed): New rules.
73492
73493 2000-03-17  Jim Meyering  <meyering@lucent.com>
73494
73495         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73496         Otherwise, include <strings.h>
73497
73498 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73499
73500         * lib/unicodeio.c (utf8_wctomb): New function.
73501         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73502         format instead of in UCS-4 with platform dependent endianness.
73503
73504 2000-03-10  Jim Meyering  <meyering@lucent.com>
73505
73506         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73507         From Marco Franzen.
73508
73509 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73510
73511         * lib/savedir.c (savedir): Work even if directory size is
73512         negative; this can happen with some screwy NFS configurations.
73513
73514 2000-03-06  Jim Meyering  <meyering@lucent.com>
73515
73516         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73517         if it's NULL (because we ran out of memory).  From Bruno Haible.
73518
73519 2000-03-05  Jim Meyering  <meyering@lucent.com>
73520
73521         * lib/localcharset.c ("path-concat.h"): Include.
73522         (get_charset_aliases): Use path_concat instead of ANSI string
73523         concatenation.
73524
73525         * lib/unicodeio.h (PARAMS): Define.
73526         Use it to guard prototype.
73527
73528 2000-03-04  Jim Meyering  <meyering@lucent.com>
73529
73530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73531         for lib/localcharset.c.
73532
73533 2000-03-04  Jim Meyering  <meyering@lucent.com>
73534
73535         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73536         installing into it.
73537         (uninstall-local): Uncomment this rule so `make distcheck' works
73538         once again.
73539
73540         * lib/unicodeio.c (<errno.h>): Include it.
73541         (errno): Declare if not defined.
73542
73543         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73544
73545         * lib/config.charset: New version, incorporating remarks from a linux
73546         i18n mailing list.  From Bruno Haible.
73547
73548 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73549
73550         * m4/codeset.m4: New file.
73551         * m4/iconv.m4: New file.
73552         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73553
73554 2000-03-03  Jim Meyering  <meyering@lucent.com>
73555
73556         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73557
73558 2000-03-02  Jim Meyering  <meyering@lucent.com>
73559
73560         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73561         the messages come out on separate lines.
73562
73563         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73564         rather than jm_CHECK_DECLARATIONS.
73565         * m4/decl.m4: Remove now-unused file.
73566
73567         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73568         geteuid.
73569
73570 2000-03-02  Jim Meyering  <meyering@lucent.com>
73571
73572         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73573
73574 2000-03-01  Jim Meyering  <meyering@lucent.com>
73575
73576         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73577         * lib/unicodeio.c: Likewise.
73578
73579 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73580
73581         * lib/config.charset: New file.
73582         * lib/localcharset.c: New file.
73583         * lib/unicodeio.h, lib/unicodeio.c: New files.
73584         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73585         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73586         (noinst_HEADERS): Add unicodeio.h.
73587         (all-local, install-exec-local, charset.alias): New targets.
73588
73589 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73590
73591         * lib/quotearg.c (ALERT_CHAR): New macro.
73592         (quotearg_buffer_restyled): Use it.
73593
73594 2000-02-27  Jim Meyering  <meyering@lucent.com>
73595
73596         * m4/check-decl.m4: Add getenv to the list.
73597
73598 2000-02-27  Jim Meyering  <meyering@lucent.com>
73599
73600         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73601         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73602
73603         * lib/backupfile.c: Guard inclusion of stdlib.h with
73604         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73605         Declare malloc if needed.
73606
73607         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73608         `#ifndef HAVE_DECL..'
73609         now that autoconf always defines the HAVE_DECL_ symbols.
73610         * lib/human.c: Likewise.
73611         * lib/same.c: Likewise.
73612         * lib/strtoumax.c: Likewise.
73613
73614         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73615         declaration check was not run.
73616         * lib/hash.c: Likewise.
73617         * lib/human.c: Likewise.
73618         * lib/same.c: Likewise.
73619         * lib/strtoumax.c: Likewise.
73620
73621         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73622         `.', then first look up the entire `.'-containing string as a login
73623         name.
73624
73625 2000-02-23  Jim Meyering  <meyering@lucent.com>
73626
73627         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73628         in place of my hack.
73629
73630 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73631
73632         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73633         (textint): New typedef.
73634         (parser_control): Member year changed from int to textint.
73635         All uses changed.
73636         (YYSTYPE): Removed; replaced by %union with int and textint members.
73637         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73638         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73639         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73640         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73641         (date, number, to_year): Use width of number in digits, not its value,
73642         to determine whether it's a 2-digit year, or a 2-digit time.
73643         (yylex): Store number of digits of numeric tokens.
73644         Reported by John Kendall.
73645
73646         (parser_control): Changed from struct parser_control to typedef (for
73647         consistency).  All uses changed.
73648
73649         (tID): Removed; not used.
73650         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73651
73652 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73653
73654         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73655         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73656
73657 2000-02-12  Jim Meyering  <meyering@lucent.com>
73658
73659         * lib/userspec.c (ISDIGIT): Define it.
73660         (isdigit): Remove definition.
73661         (is_number): Use ISDIGIT, not isdigit.
73662         <libintl.h>: Include.
73663         (_ and N_): Define.
73664         (parse_user_spec): Mark translatable strings.
73665
73666 2000-02-10  Jim Meyering  <meyering@lucent.com>
73667
73668         With these changes, nanosleep.[ch] are finally enough like the other
73669         lib/* replacement files to compile on a few more losing systems.
73670
73671         * lib/nanosleep.h: Don't include config.h.
73672         Remove prototype from declaration of nanosleep.
73673         (PARAMS): Remove now-unneeded definition.
73674         * lib/nanosleep.c: #undef nanosleep.
73675         (rpl_nanosleep): Rename from nanosleep.
73676
73677 2000-02-10  Jim Meyering  <meyering@lucent.com>
73678
73679         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73680         gnu_nanosleep to rpl_nanosleep.
73681
73682 2000-02-09  Jim Meyering  <meyering@lucent.com>
73683
73684         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73685         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73686
73687 2000-02-08  Akim Demaille  <akim@epita.fr>
73688
73689         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73690         `[' and `]' and remove uses of `changequote'.
73691         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73692         (AC_SYS_LARGEFILE): Likewise.
73693         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73694         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73695         of changequote.
73696         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73697         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73698         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73699         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73700
73701 2000-02-05  Jim Meyering  <meyering@lucent.com>
73702
73703         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73704         Remove explicit use of AC_HEADER_TIME.  It is required by
73705         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73706         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73707         in autoconf whereby the expansion of the latter ended up preceding
73708         the expansion of its prerequisite, AC_HEADER_TIME.
73709         Reported by Volker Borchert.
73710
73711 2000-02-03  Jim Meyering  <meyering@lucent.com>
73712
73713         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73714
73715 2000-02-03  Jim Meyering  <meyering@lucent.com>
73716
73717         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73718         rather than with `#if HAVE_UTMPNAME'.
73719
73720 2000-02-02  Jim Meyering  <meyering@lucent.com>
73721
73722         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73723         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73724         Reported by Eli Zaretskii.
73725
73726 2000-02-01  Jim Meyering  <meyering@lucent.com>
73727
73728         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73729
73730 2000-01-31  Jim Meyering  <meyering@lucent.com>
73731
73732         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73733         functions.  Add the time.h and sys/time.h headers along with the
73734         AC_REQUIRE'ment of AC_HEADER_TIME.
73735
73736 2000-01-31  Jim Meyering  <meyering@lucent.com>
73737
73738         * lib/nanosleep.h (nanosleep): Guard declaration with
73739         `#if ! HAVE_DECL_NANOSLEEP'.
73740         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73741         the declaration in that vendor's sys/timers.h.
73742         Reported by Christian Krackowizer.
73743
73744         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73745         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73746         (ISPRINT): Likewise.
73747         Reported by Tom Tromey.
73748
73749 2000-01-30  Jim Meyering  <meyering@lucent.com>
73750
73751         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73752
73753         * m4/prereq.m4 (utmp_includes): Define.
73754         Check for ut_user and ut_name members in both struct utmpx
73755         and struct utmp.
73756
73757 2000-01-30  Jim Meyering  <meyering@lucent.com>
73758
73759         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73760         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73761         header files where only utmpx.ut_user is declared.
73762
73763         * lib/readutmp.h (UT_USER): Define.
73764
73765 2000-01-29  Jim Meyering  <meyering@lucent.com>
73766
73767         * m4/lib-check.m4: New file containing library-related checks from
73768         fileutils and sh-utils (textutils had none).
73769
73770 2000-01-28  Jim Meyering  <meyering@lucent.com>
73771
73772         * m4/perl.m4: Change format of warning message to look more like that
73773         from the missing script.  Suggestion from François Pinard.
73774
73775 2000-01-25  Jim Meyering  <meyering@lucent.com>
73776
73777         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73778         well as time.h in the compile check.
73779         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73780         Fix typo in cross-compiling case: s/yes/no/.
73781
73782 2000-01-23  Jim Meyering  <meyering@lucent.com>
73783
73784         * m4/jm-macros.m4: Move df-related tests here from
73785         fileutils/configure.in
73786
73787         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73788         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73789
73790         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73791         s/space/ac_fsusage_space/.
73792         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73793
73794         * m4/ftruncate.m4: New file (derived from part of
73795         fileutils/configure.in).
73796         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73797         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73798
73799         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73800         AC_SUBST these here, rather than just in sh-util/configure.in, so
73801         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73802         all the same.
73803         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73804         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73805         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73806         (AC_SUBST(POW_LIBM)): Likewise.
73807         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73808
73809 2000-01-23  Jim Meyering  <meyering@lucent.com>
73810
73811         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73812         obstack.c.
73813
73814 2000-01-22  Jim Meyering  <meyering@lucent.com>
73815
73816         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73817
73818         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73819
73820         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73821         configure.in
73822         (AC_CHECK_HEADERS): Likewise for sh-utils.
73823         (AC_CHECK_HEADERS): Likewise for textutils.
73824         Merge the three lists of headers.
73825
73826         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73827         from fileutils' configure.in.
73828
73829         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73830         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73831         check-decl.m4.
73832
73833         * m4/check-decl.m4: Use #if rather than #ifdef.
73834         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73835         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73836         (_jm_DECL_HEADERS): Define new function.
73837         (jm_CHECK_DECLARATIONS): Require it.
73838
73839 2000-01-22  Jim Meyering  <meyering@lucent.com>
73840
73841         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73842         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73843         Required for some AIX systems.  Reported by Christian Krackowizer.
73844         [TESTING] (main): New function.
73845
73846         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73847         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73848         letters.
73849
73850         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73851         iswprint.
73852
73853         * lib/strverscmp.c (ISDIGIT): Define.
73854         (strverscmp): Use ISDIGIT, not isdigit.
73855
73856 2000-01-19  Jim Meyering  <meyering@lucent.com>
73857
73858         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73859         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73860         defines `struct timespec' in <sys/time.h>
73861
73862         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73863         Thanks to Akim for explaining.
73864
73865 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73866
73867         * lib/nanosleep.c (nanosleep):
73868         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73869         POSIX.1 doesn't require SA_INTERRUPT and some systems
73870         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73871         it's been part of POSIX.1 since day 1 (in 1988).
73872
73873 2000-01-17  Jim Meyering  <meyering@lucent.com>
73874
73875         * lib/interlock: Remove unused file.  Reported by François Pinard.
73876
73877 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73878
73879         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73880         alert, backslash, formfeed, and vertical tab unnecessarily in
73881         shell quoting style.
73882
73883 2000-01-16  Jim Meyering  <meyering@lucent.com>
73884
73885         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73886         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73887         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73888         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73889
73890 2000-01-16  Jim Meyering  <meyering@lucent.com>
73891
73892         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73893         because the latter didn't work.
73894
73895 2000-01-15  Jim Meyering  <meyering@lucent.com>
73896
73897         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73898         (AC_REPLACE_FUNCS): Add memcpy and memset.
73899         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73900         Add strpbrk.
73901         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73902
73903 2000-01-12  Jim Meyering  <meyering@lucent.com>
73904
73905         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73906         (jm_PREREQ): Use it.
73907         (jm_PREREQ_READUTMP): New macro.
73908         (jm_PREREQ): Use it.
73909
73910 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73911
73912         Quote multibyte characters correctly.
73913         * m4/c-bs-a.m4: New file.
73914         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73915         (jm_PREREQ): Use it.
73916
73917 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73918
73919         * m4/uintmax_t.m4: Port to autoconf 2.13.
73920
73921 2000-01-08  Jim Meyering  <meyering@ascend.com>
73922
73923         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73924         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73925
73926 2000-01-04  Jim Meyering  <meyering@ascend.com>
73927
73928         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73929         jm_STRUCT_DIRENT_D_TYPE.
73930         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73931         jm_STRUCT_DIRENT_D_INO.
73932         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73933         jm_STRUCT_UTIMBUF.
73934         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73935         renamings.
73936         * m4/utime.m4: Likewise.
73937
73938         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73939         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73940
73941 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73942
73943         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73944         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73945
73946 2000-01-02  Jim Meyering  <meyering@ascend.com>
73947
73948         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73949         remember if this is necessary.
73950
73951 1999-12-26  Jim Meyering  <meyering@ascend.com>
73952
73953         * m4/jm-macros.m4: Use it here.
73954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73955
73956 1999-12-23  Jim Meyering  <meyering@ascend.com>
73957
73958         * m4/jm-macros.m4: Check for clock_gettime (moved from
73959         fileutils/configure.in)
73960         Check for gettimeofday.
73961
73962 1999-12-20  Jim Meyering  <meyering@ascend.com>
73963
73964         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73965         autoconf-2.14a-1999-12-20.
73966
73967 1999-12-19  Jim Meyering  <meyering@ascend.com>
73968
73969         * m4/lstat-slash.m4: New file.
73970         * m4/jm-macros.m4: Use the new macro:
73971         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73972
73973 1999-12-07  Jim Meyering  <meyering@ascend.com>
73974
73975         * m4/perl.m4: Require that File::Compare be available, too.
73976         Too many systems seem to lack it.
73977
73978         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73979         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73980
73981 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73982
73983         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73984         problem with the QNX 4.25 shell, which doesn't propagate exit
73985         status of failed commands inside shell assignments.
73986
73987 1999-11-17  Jim Meyering  <meyering@ascend.com>
73988
73989         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73990
73991 1999-11-07  Jim Meyering  <meyering@ascend.com>
73992
73993         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73994
73995 1999-11-06  Jim Meyering  <meyering@ascend.com>
73996
73997         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73998         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73999
74000 1999-11-05  Jim Meyering  <meyering@ascend.com>
74001
74002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74003         configure.in of textutils, fileutils, and sh-utils into this one
74004         (shared between those packages) file.
74005         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74006         AC_STRUCT_ST_BLKSIZE.
74007
74008 1999-11-03  Jim Meyering  <meyering@ascend.com>
74009
74010         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74011         of AC_CHECK_TYPE checks includes unistd.h.
74012         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74013         Suggestion from Akim Demaille.
74014
74015 1999-10-30  Jim Meyering  <meyering@ascend.com>
74016
74017         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74018         m4-quoted string.
74019         * m4/ls-mntd-fs.m4: Likewise.
74020         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74021         * m4/jm-winsz1.m4: Likewise.
74022
74023         * m4/const.m4: Remove file, since the fix made it into the experimental
74024         version of autoconf.
74025         * m4/mktime.m4: Likewise.
74026
74027         * m4/check-type.m4: Remove file, now that the latest version of
74028         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74029
74030         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74031         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74032         AC_CHECK_TYPE.
74033
74034 1999-10-04  Jim Meyering  <meyering@ascend.com>
74035
74036         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74037
74038 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74039
74040         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74041         2.95.1 bug with HP-UX 10.20.
74042
74043 1999-09-17  Jim Meyering  <meyering@ascend.com>
74044
74045         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74046         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74047         due to missing strdup (against sh-utils-2.0).
74048
74049 1999-08-29  Jim Meyering  <meyering@ascend.com>
74050
74051         * m4/jm-macros.m4: Require jm_BISON.
74052         * m4/bison.m4: New file.
74053
74054 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74055
74056         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74057         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74058
74059 1999-08-05  Jim Meyering  <meyering@ascend.com>
74060
74061         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74062         to avoid conflicts with `conftest' on 8+3 filesystems.
74063         Suggestion from Eli Zaretskii.
74064
74065 1999-08-04  Jim Meyering  <meyering@ascend.com>
74066
74067         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74068         fileutils and sh-utils (textutils's getline test was inadequate).
74069         (AM_FUNC_GETLINE): Run this test.
74070         (AC_CHECK_FUNCS): Check for getdelim.
74071         Reported by Bob Proulx.
74072
74073 1999-08-02  Jim Meyering  <meyering@ascend.com>
74074
74075         * m4/jm-macros.m4: Add a comment.
74076
74077 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74078
74079         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74080         <inttypes.h> defines strtoumax as a macro (and not as a
74081         function).
74082
74083 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74084
74085         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74086         that we can shift, multiply and divide unsigned long long
74087         values; Ultrix cc can't do it.
74088
74089 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74090
74091         * m4/mktime.m4: New file, which is a preview of what should appear
74092         in the next public autoconf release.
74093
74094 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74095
74096         * m4/lfs.m4: Remove this file.
74097         * m4/largefile.m4: New file.  It contains the old contents of
74098         lfs.m4, except that all names with prefix AC_LFS have been
74099         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74100         compatible with future autoconf versions.  Also, some minor m4
74101         quoting problems have been fixed.
74102
74103 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74104
74105         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74106         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74107         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74108         and simplify the shell code.
74109
74110 1999-08-01  Jim Meyering  <meyering@ascend.com>
74111
74112         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74113         m4.
74114
74115 1999-07-20  Jim Meyering  <meyering@ascend.com>
74116
74117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74118
74119 1999-07-15  Jim Meyering  <meyering@ascend.com>
74120
74121         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74122
74123 1999-05-22  Jim Meyering  <meyering@ascend.com>
74124
74125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74126
74127 1999-05-20  Jim Meyering  <meyering@ascend.com>
74128
74129         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74130         Add a colon after each `then' in case $4 is empty.
74131
74132 1999-05-16  Jim Meyering  <meyering@ascend.com>
74133
74134         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74135
74136 1999-05-10  Jim Meyering  <meyering@ascend.com>
74137
74138         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74139
74140         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74141         AC_FUNC_MKTIME.
74142
74143 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74144
74145         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74146
74147 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74148
74149         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74150         not CPPFLAGS, so that linking works correctly in IRIX.
74151
74152 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74153
74154         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74155
74156 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74157
74158         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74159         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74160         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74161         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74162         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74163
74164         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74165
74166 1999-04-20  Jim Meyering  <meyering@ascend.com>
74167
74168         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74169         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74170         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74171
74172 1999-04-18  Jim Meyering  <meyering@ascend.com>
74173
74174         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74175         * m4/jm-macros.m4: Use it.
74176
74177 1999-04-06  Jim Meyering  <meyering@ascend.com>
74178
74179         * m4/strftime.m4: Remove test for %f.
74180
74181 1999-03-29  Jim Meyering  <meyering@ascend.com>
74182
74183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74184         superset of the AC_TYPE_* checks in the textutils, fileutils,
74185         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74186         AC_TYPE_PID_T.
74187
74188 1999-03-28  Jim Meyering  <meyering@ascend.com>
74189
74190         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74191         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74192         replaced e.g., in the *.sh files of the sh-utils.
74193
74194 1999-03-20  Jim Meyering  <meyering@ascend.com>
74195
74196         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74197         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74198         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74199
74200 1999-03-19  Jim Meyering  <meyering@ascend.com>
74201
74202         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74203
74204 1999-03-12  Jim Meyering  <meyering@ascend.com>
74205
74206         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74207
74208 1999-03-07  Jim Meyering  <meyering@ascend.com>
74209
74210         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74211         declared.
74212
74213 1999-02-17  Jim Meyering  <meyering@ascend.com>
74214
74215         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74216         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74217
74218 1999-02-07  Jim Meyering  <meyering@ascend.com>
74219
74220         * m4/group-member.m4: New file -- extracted from sh-utils'
74221         configure.in.
74222
74223         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74224         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74225
74226 1999-02-06  Jim Meyering  <meyering@ascend.com>
74227
74228         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74229         * m4/fnmatch.m4: Likewise.
74230         * m4/getgroups.m4: Likewise.
74231         * m4/lstat.m4: Likewise.
74232         * m4/malloc.m4: Likewise.
74233         * m4/putenv.m4: Likewise.
74234         * m4/realloc.m4: Likewise.
74235         * m4/regex.m4: Likewise.
74236         * m4/stat.m4: Likewise.
74237         * m4/strftime.m4: Likewise.
74238         Suggestion from Alain Magloire.
74239
74240         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74241         * m4/fnmatch.m4: Likewise.
74242         * m4/getgroups.m4: Likewise.
74243         * m4/getline.m4: Likewise.
74244         * m4/lstat.m4: Likewise.
74245         * m4/malloc.m4: Likewise.
74246         * m4/memcmp.m4: Likewise.
74247         * m4/putenv.m4: Likewise.
74248         * m4/realloc.m4: Likewise.
74249         * m4/regex.m4: Likewise.
74250         * m4/stat.m4: Likewise.
74251         * m4/strftime.m4: Likewise.
74252         Suggestion from Alain Magloire.
74253
74254         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74255         an argument.
74256
74257         * m4/regex.m4: Add a run-time Test for proper operation of
74258         re_compile_pattern.
74259
74260 1999-01-31  Jim Meyering  <meyering@ascend.com>
74261
74262         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74263
74264 1999-01-30  Jim Meyering  <meyering@ascend.com>
74265
74266         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74267
74268         * m4/jm-mktime.m4: Make this a wrapper around the official
74269         AM_FUNC_MKTIME rather than my private copy, now that the official one
74270         is up to date.
74271         * m4/mktime.m4: Remove file.
74272
74273         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74274         * m4/uptime.m4: Likewise.
74275         * m4/uintmax_t.m4: Likewise.
74276
74277 1999-01-28  Jim Meyering  <meyering@ascend.com>
74278
74279         * m4/jm-macros.m4: Use jm_AFS.
74280         * m4/afs.m4: New file (from fileutils' configure.in).
74281
74282         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74283         * m4/chown.m4: Likewise.
74284         * m4/d-ino.m4: Likewise.
74285         * m4/d-type.m4: Likewise.
74286         * m4/fnmatch.m4: Likewise.
74287         * m4/getgroups.m4: Likewise.
74288         * m4/gettext.m4: Likewise.
74289         * m4/jm-mktime.m4: Likewise.
74290         * m4/jm-winsz2.m4: Likewise.
74291         * m4/lcmessage.m4: Likewise.
74292         * m4/ls-mntd-fs.m4: Likewise.
74293         * m4/malloc.m4: Likewise.
74294         * m4/memcmp.m4: Likewise.
74295         * m4/putenv.m4: Likewise.
74296         * m4/realloc.m4: Likewise.
74297         * m4/st_mtim.m4: Likewise.
74298         * m4/strftime.m4: Likewise.
74299
74300 1999-01-16  Jim Meyering  <meyering@ascend.com>
74301
74302         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74303         (ARGMATCH_DIE_DECL): Define.
74304
74305 1999-01-12  Jim Meyering  <meyering@ascend.com>
74306
74307         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74308         Reported by Lars Hecking.
74309
74310 1999-01-10  Jim Meyering  <meyering@ascend.com>
74311
74312         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74313         gross kludge.
74314         * m4/inttypes_h.m4: Likewise.
74315         * m4/lstat.m4: Likewise.
74316         * m4/malloc.m4: Likewise.
74317         * m4/readdir.m4: Likewise.
74318         * m4/realloc.m4: Likewise.
74319         * m4/st_dm_mode.m4: Likewise.
74320         * m4/stat.m4: Likewise.
74321         * m4/utimbuf.m4: Likewise.
74322         * m4/utimes.m4: Likewise.
74323
74324         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74325         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74326         comments in config.h.in are meaningful.
74327
74328         * m4/jm-macros.m4: Require autoconf-2.13 here.
74329
74330         * m4/regex.m4: By default, don't use the included regex.c on systems
74331         with glibc 2.  Suggestion from Uli Drepper.
74332
74333 1999-01-02  Jim Meyering  <meyering@ascend.com>
74334
74335         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74336
74337 1998-12-18  Jim Meyering  <meyering@ascend.com>
74338
74339         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74340         Based on a suggestion from Lars Hecking.
74341
74342 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74343
74344         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74345
74346 1998-11-16  Jim Meyering  <meyering@ascend.com>
74347
74348         * m4/lfs.m4: Double-quote the `uname...` expression.
74349
74350 1998-11-14  Jim Meyering  <meyering@ascend.com>
74351
74352         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74353         * m4/stat.m4: Likewise.
74354
74355 1998-11-03  Jim Meyering  <meyering@ascend.com>
74356
74357         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74358         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74359
74360 1998-10-18  Jim Meyering  <meyering@ascend.com>
74361
74362         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74363
74364 1998-10-17  Jim Meyering  <meyering@ascend.com>
74365
74366         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74367         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74368         calls for those previously hard-coded headers.  Instead, take a new
74369         parameter.
74370         (jm_CHECK_DECLARATIONS): Reflect interface change.
74371         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74372         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74373
74374         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74375
74376 1998-10-14  Jim Meyering  <meyering@ascend.com>
74377
74378         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74379         instead of "TZ=America/Vancouver".  From Paul Eggert.
74380
74381 1998-10-11  Jim Meyering  <meyering@ascend.com>
74382
74383         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74384         This adds a test for a recently added compatibility fix for mktime.c.
74385         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74386
74387 1998-09-27  Jim Meyering  <meyering@ascend.com>
74388
74389         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74390
74391         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74392         ../configure.in, including a change from Gordon Matzigkeit to allow
74393         cross-compiling for the Hurd.
74394
74395         * m4/glibc.m4: New file/macro to test for the GNU C Library
74396         versions 1 and 2.  From Gordon Matzigkeit.
74397         Indent.
74398
74399 1998-09-21  Jim Meyering  <meyering@ascend.com>
74400
74401         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74402
74403 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74404
74405         Port nanosecond-resolution times to UnixWare 2.1.2 and
74406         pedantic Solaris 2.6.
74407
74408         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74409         AC_STRUCT_ST_MTIM.
74410         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74411         Generate name of ns member, instead of just 1 or undef.
74412         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74413
74414 1998-08-15  Jim Meyering  <meyering@ascend.com>
74415
74416         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74417         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74418         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74419         instead of jm_TYPE_SSIZE_T.
74420
74421 1998-08-12  Jim Meyering  <meyering@ascend.com>
74422
74423         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74424
74425 1998-08-02  Jim Meyering  <meyering@ascend.com>
74426
74427         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74428         in acconfig.h manually.
74429
74430 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74431
74432         * m4/st_mtim.m4: New file.
74433
74434 1998-07-28  Jim Meyering  <meyering@ascend.com>
74435
74436         * m4/utimes.m4: Undef stat.
74437
74438 1998-07-25  Jim Meyering  <meyering@ascend.com>
74439
74440         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74441         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74442
74443 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74444
74445         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74446         uid and gid actually remain unchanged.
74447
74448 1998-07-07  Jim Meyering  <meyering@ascend.com>
74449
74450         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74451
74452 1998-07-04  Jim Meyering  <meyering@ascend.com>
74453
74454         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74455         to prove that this macro can be used in packages without regex.c.
74456
74457 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74458
74459         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74460         is to be used.
74461
74462 1998-07-03  Jim Meyering  <meyering@ascend.com>
74463
74464         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74465
74466         * m4/gettext.m4: New file -- from gettext-0.10.35.
74467         * m4/lcmessage.m4: Likewise.
74468         * m4/progtest.m4: Likewise.
74469
74470         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74471         * m4/jm-macros.m4: Require the new macro.
74472
74473 1998-06-29  Jim Meyering  <meyering@ascend.com>
74474
74475         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74476         for the definition of NGROUPS (used in a system header included
74477         by sys/mount.h).
74478
74479 1998-06-28  Jim Meyering  <meyering@ascend.com>
74480
74481         * m4/ls-mntd-fs.m4: New file.
74482         * m4/fstypename.m4: New file.
74483
74484         * m4/jm-macros.m4: Require the new macro.
74485         * m4/jm-glibc-io.m4: New file.
74486
74487 1998-05-19  Jim Meyering  <meyering@ascend.com>
74488
74489         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74490         * m4/lchown.m4: New file.
74491
74492         * m4/Makefile.am.in: New file.
74493         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74494
74495 1998-05-14  Jim Meyering  <meyering@ascend.com>
74496
74497         * m4/Makefile.am (EXTRA_DIST): Add them.
74498         * m4/jm-macros.m4: New file.
74499         * m4/utimbuf.m4: New file.
74500
74501 1998-05-12  Jim Meyering  <meyering@ascend.com>
74502
74503         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74504
74505 1998-05-11  Jim Meyering  <meyering@ascend.com>
74506
74507         * m4/isc-posix.m4: New file.
74508
74509 1998-05-10  Jim Meyering  <meyering@ascend.com>
74510
74511         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74512
74513 1998-05-09  Jim Meyering  <meyering@ascend.com>
74514
74515         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74516         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74517         with automake.
74518
74519         * m4/ssize_t.m4: New file.
74520         * m4/mktime.m4: Remove file -- the new automake has this now.
74521
74522 1998-04-26  Jim Meyering  <meyering@ascend.com>
74523
74524         * m4/assert.m4: New file.
74525         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74526
74527 1998-04-05  Jim Meyering  <meyering@ascend.com>
74528
74529         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74530         (jm_PREREQ): Use it here.
74531
74532 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74533
74534         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74535         in acconfig.h.
74536
74537 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74538
74539         * m4/prereq.m4: New file.
74540         * m4/error.m4: New file.
74541         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74542
74543 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74544
74545         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74546         cache-check for the same variable -- that defeated the purpose of
74547         the test; the test program was never run.  This was a problem only
74548         on systems with losing getline functions -- HP-UX 10.20 is one.
74549         Reported by Bjorn Helgaas.
74550
74551 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74552
74553         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74554
74555 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74556
74557         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74558
74559         * m4/const.m4: New file.  Use an initializer in this declaration
74560         typedef int charset[2]; const charset x;
74561         Reported by Bob Glickstein.
74562
74563 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74564
74565         * m4/chown.m4: Fix reversed types on -1 args to chown.
74566         From Kaveh Ghazi.
74567
74568 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74569
74570         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74571         Add lseek and memchr.
74572
74573         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74574         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74575         have a 20-character limit on names.
74576
74577 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74578
74579         * m4/inttypes_h.m4: New file.
74580         * m4/uintmax_t.m4: New file.
74581         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74582
74583
74584         -----
74585
74586         Local Variables:
74587         coding: utf-8
74588         End:
74589
74590         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74591
74592         Copying and distribution of this file, with or without
74593         modification, are permitted provided the copyright notice
74594         and this notice are preserved.